COPY_TO_MEMORY (FUN) ¶ FUNCTION COPY_TO_MEMORY : UDINT Copies an IStringRepresentation into a desired memory block. Type of the itfString can be IBuilder, IString or just an IStringRepresentation. InOut: Scope Name Type Initial Comment Return COPY_TO_MEMORY UDINT Input itfString IStringRepresentation String interface, which is written in memory pbyMemory POINTER TO BYTE Pointer to the first byte of memory block udiSize UDINT Size of the memory block in bytes eEncoding ENCODING ENCODING.UTF8 Encoding type, default value is utf8 Output eErrorID ERROR Check error output value for better diagnostics
FROM_MEMORY (FUN) ¶ FUNCTION FROM_MEMORY : IString Returns an IString instance out of a desired memory InOut: Scope Name Type Initial Comment Return FROM_MEMORY IString Input pbyMemory POINTER TO BYTE Pointer to the first byte of memory block udiSize UDINT Size of the memory block in bytes. In case of UTF16 the size must be a straight number because UTF16 is based on WORDs. eEncoding ENCODING ENCODING.UTF8 Type of encoding, default value is utf8 itfString IString Result, in the end the same instance like return value of this function Output eErrorID ERROR Check error output value for better diagnostics
STRING ¶ COPY_TO_STRING (Function) FROM_STRING (Function)
StrConv ¶ Aliases Constants (GVL) ENCODING (Alias) ERROR (Alias) IBuilder (Alias) ICharmap (Alias) IString (Alias) IStringRepresentation (Alias) RUNE (Alias) Charmaps (GVL) 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) Internals GetDefaultCharmap (Function)
Aliases ¶ Constants (GVL) ENCODING (Alias) ERROR (Alias) IBuilder (Alias) ICharmap (Alias) IString (Alias) IStringRepresentation (Alias) RUNE (Alias)
Constants (GVL) ¶ InOut: Scope Name Type Initial Comment Constant c_diRuneError RUNE UTF8.c_diRuneError The “error” Rune or “Unicode replacement character” c_diMaxRune DINT UTF8.c_diMaxRune
ENCODING (ALIAS) ¶ TYPE ENCODING : SBB.|dENCODING|
ERROR (ALIAS) ¶ TYPE ERROR : SBB.|dERROR|
IBuilder (ALIAS) ¶ TYPE IBuilder : SBB.|dIBuilder|
ICharmap (ALIAS) ¶ TYPE ICharmap : SBB.|dICharmap|