IString (ITF) ¶ INTERFACE IString EXTENDS IDisposable , IStringRepresentation Handle a UTF-8 encoded immutable string segment Methods: GetSegment IsValid Len ObjectDispose , inherited from IDisposable ObjectRelease , inherited from IDisposable ObjectRetain , inherited from IDisposable Structure: GetSegment (Method) IsValid (Method) Len (Method)
IString.GetSegment (METH) ¶ METHOD 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
IString.IsValid (METH) ¶ METHOD 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
IString.Len (METH) ¶ METHOD Len : UDINT Returns the number of bytes required for the UTF-8 encoded string segment of this IString instance. InOut: Scope Name Type Comment Return Len UDINT Output eErrorID ERROR Check error message for better diagnostics
IStringPool (ITF) ¶ INTERFACE IStringPool EXTENDS IDisposable Methods: GetString ObjectDispose , inherited from IDisposable ObjectRelease , inherited from IDisposable ObjectRetain , inherited from IDisposable Structure: GetString (Method)
IStringPool.GetString (METH) ¶ METHOD GetString : IString Returns a IString instance out of the related StringPool InOut: Scope Name Type Initial Comment Return GetString IString Input psValue POINTER TO BYTE 0 Pointer to the first byte of the memory Output udiSize UDINT Size of string in bytes eErrorID ERROR Check error message for better diagnostics
IStringRepresentation (ITF) ¶ INTERFACE IStringRepresentation EXTENDS __SYSTEM.IQueryInterface Methods: Len ToIString Structure: Len (Method) ToIString (Method)
IStringRepresentation.Len (METH) ¶ METHOD Len : UDINT Returns the number of bytes See RuneCount for calculating the number of runes InOut: Scope Name Type Return Len UDINT Output eErrorID ERROR
Range.Reset (METH) ¶ METHOD FINAL Reset : ERROR Set back the original state of this IRange instance InOut: Scope Name Type Return Reset ERROR
Range.UngetLastRune (METH) ¶ METHOD FINAL UngetLastRune : ERROR Undo the last call of GetNextRune . This allow to restore the state of this Range instance. InOut: Scope Name Type Return UngetLastRune ERROR