UnicodeToShort Routine
Converts unicode string to short according to specified encoding and byte order.

Unit
IcXMLStrings

Declaration
Function UnicodeToShort(s : TDOMString; cp : TEncoding; bo : TByteOrder): string;

Description
For UTF-16 encoding strings are copied byte-per-byte, so that one wide char is repleaced with two short chars. Order of short chars depends specified byte order. For UTF-8 one char is repleaced with belong chars. For other encodings chars are converted according to encoding convertion tables.


HTML generated by Time2HELP
http://www.time2help.com