EncodeRune (FUN) ¶ FUNCTION EncodeRune : UDINT Writes into pbyData (which must be large enough) the UTF-16 encoding of diRune . It returns the number of bytes written. InOut: Scope Name Type Initial Return EncodeRune UDINT Input diRune RUNE pbyData POINTER TO BYTE udiSize UDINT xHostByteOrder BOOL TRUE
EncodeSurrogate (FUN) ¶ FUNCTION EncodeSurrogate Returns the UTF-16 surrogate pair diRune1 , diRune2 for the given diRune . If the rune is not a valid Unicode code point or does not need encoding, EncodeRune returns U+FFFD ( c_diRuneError ). InOut: Scope Name Type Input diRune Rune Output diRune1 Rune diRune2 Rune
IsSurrogate (FUN) ¶ FUNCTION IsSurrogate : BOOL reports whether the specified Unicode code point can appear in a surrogate pair. InOut: Scope Name Type Return IsSurrogate BOOL Input diRune RUNE
Charmaps (GVL) ¶ InOut: Name Type Windows_1252 Win1252 UTF8_Encoding UTF_8
Functions ¶ BOM DecodeBOM (Function) EncodeBOM (Function) IsHostByteOrder (Function) Memory COPY_TO_MEMORY (Function) FROM_MEMORY (Function) STRING COPY_TO_STRING (Function) FROM_STRING (Function) WSTRING COPY_TO_WSTRING (Function) FROM_WSTRING (Function)
BOM ¶ DecodeBOM (Function) EncodeBOM (Function) IsHostByteOrder (Function)
DecodeBOM (FUN) ¶ FUNCTION DecodeBOM : UDINT Attempts to recognize a BOM in the first bytes of byData and then returns the corresponding ENCODING and its length in bytes. InOut: Scope Name Type Comment Return DecodeBOM UDINT Input pbyData POINTER TO BYTE Pointer to the first byte of the BOM udiSize UDINT Size of the BOM in bytes Output eEncoding ENCODING Encoding type of the BOM eErrorID ERROR Check error output value for better diagnostics
EncodeBOM (FUN) ¶ FUNCTION EncodeBOM : UDINT Writes into pbyData (which must be large enough) a BOM that matches the ENCODING It returns the number of bytes written. InOut: Scope Name Type Comment Return EncodeBOM UDINT Input eEncoding ENCODING Encoding type of the BOM pbyData POINTER TO BYTE Pointer to the first byte in memory udiSize UDINT Size of the memory in bytes Output eErrorID ERROR Check error output value for better diagnostics
IsHostByteOrder (FUN) ¶ FUNCTION IsHostByteOrder : BOOL Checks the ENCODING and returns an indication if the byte order of the host matches the byte order of the encoding InOut: Scope Name Type Comment Return IsHostByteOrder BOOL Input eEncoding ENCODING Encoding type to check byte order Output eErrorID ERROR Check error output value for better diagnostics
Memory ¶ COPY_TO_MEMORY (Function) FROM_MEMORY (Function)