_UTF8String.GetSegment (METH) ¶ METHOD FINAL GetSegment : POINTER TO BYTE This method returns the memory segment of string instance Return value POINTER TO BYTE is the pointer to the first byte of the memory InOut: Scope Name Type Comment Return GetSegment POINTER TO BYTE Output udiSize UDINT Size of the memory in bytes eErrorID ERROR Check error message for better diagnostics
_UTF8String.IsValid (METH) ¶ METHOD FINAL IsValid : BOOL Reports whether this IString instance consists entirely of valid UTF-8-encoded runes. InOut: Scope Name Type Comment Return IsValid BOOL Output eErrorID ERROR Check error message for better diagnostics
_UTF8String.Len (METH) ¶ METHOD FINAL Len : UDINT Returns the number of bytes required for the UTF-8 encoded segment of this IString instance. InOut: Scope Name Type Return Len UDINT Output eErrorID ERROR
_UTF8String.ToIString (METH) ¶ METHOD FINAL ToIString : IString Returns the string representation InOut: Scope Name Type Initial Comment Return ToIString IString Input itfString IString Defines the output target liStart LINT 0 Defines the rune index from which the content is output 0 => first rune, -1 => last rune [c_liMinIndex <= liStart <= c_liMaxIndex] liEnd LINT -1 Defines the rune index up to which the content is output 0 => first rune, -1 => last rune [c_liMinIndex <= liEnd <= c_liMaxIndex] Output eErrorID ERROR
IRangePool.GetPoolStatus (METH) ¶ METHOD GetPoolStatus : STATUS InOut: Scope Name Type Return GetPoolStatus STATUS Output eErrorID ERROR
RuneCount (FUN) ¶ FUNCTION RuneCount : UDINT Returns the number of runes in itfString . InOut: Scope Name Type Return RuneCount UDINT Input itfString IString Output eErrorID ERROR
SetSegment (FUN) ¶ FUNCTION SetSegment : IString Initializes the passed IString instance and uses the specified memory area for this purpose Example for a 80 byte IString instance: abyMemory : ARRAY[0..79) OF BYTE; myString : _UTF8String; itfString : IString := SetSegment(myString, ADR(abyMemory), SIZEOF(abyMemory), 0); InOut: Scope Name Type Comment Return SetSegment IString Input itfString IString String instance of an _UTF8String| pbyMemory POINTER TO BYTE Pointer to the first byte of the memory. This address should aligned to a __XWORD boundary! udiSize UDINT Size of the whole allocated memory udiLength UDINT Length of the segment in bytes Output eErrorID ERROR
Interfaces ¶ IDisposable (Interface) ObjectDispose (Method) ObjectRelease (Method) ObjectRetain (Method) IRange (Interface) GetNextRune (Method) Reset (Method) UngetLastRune (Method) IRangePool (Interface) GetRange (Method) Internal GetPoolStatus (Method) IRangeProvider (Interface) GetRange (Method) IString (Interface) GetSegment (Method) IsValid (Method) Len (Method) IStringPool (Interface) GetString (Method) IStringRepresentation (Interface) Len (Method) ToIString (Method)
IDisposable (ITF) ¶ INTERFACE IDisposable EXTENDS __SYSTEM.IQueryInterface Methods: ObjectDispose ObjectRelease ObjectRetain Structure: ObjectDispose (Method) ObjectRelease (Method) ObjectRetain (Method)
IDisposable.ObjectDispose (METH) ¶ METHOD ObjectDispose : ERROR InOut: Scope Name Type Return ObjectDispose ERROR