StringPool.ObjectRetain (METH) ¶ METHOD FINAL ObjectRetain : STR.ERROR InOut: Scope Name Type Return ObjectRetain STR.ERROR
StringPool.GetString (METH) ¶ METHOD FINAL GetString : IString InOut: Scope Name Type Initial Return GetString IString Input psValue POINTER TO BYTE 0 Output udiSize UDINT eErrorID STR.ERROR
_StringPool (FB) ¶ FUNCTION_BLOCK FINAL _StringPool EXTENDS _Disposable IMPLEMENTS IStringPool Provides a pool of IString instances. Use the GetString method to get a new instance. InOut: Scope Name Type Initial Input Const udiStringSize UDINT 16#FFFFFFFF udiInitialCapacity UDINT 5 pbyPool POINTER TO BYTE udiPoolSize UDINT usiExtensionFactor USINT Methods: SetInitialValue GetString Structure: IStringPool GetString (Method) SetInitialValue (Method)
IStringPool ¶ GetString (Method)
_StringPool.SetInitialValue (METH) ¶ METHOD FINAL SetInitialValue : ERROR InOut: Scope Name Type Initial Return SetInitialValue ERROR Input udiStringSize UDINT udiInitialCapacity UDINT 0 pbyPool POINTER TO BYTE 0 udiPoolSize UDINT 0 usiExtensionFactor USINT 0
_UTF8String (FB) ¶ FUNCTION_BLOCK _UTF8String EXTENDS _Disposable IMPLEMENTS IString Managing a UTF-8 encoded “immutable” string segment Methods: GetSegment IsValid Len ToIString Structure: IString GetSegment (Method) IsValid (Method) IStringRepresentation Len (Method) ToIString (Method)
IString ¶ GetSegment (Method) IsValid (Method)
IStringRepresentation ¶ Len (Method) ToIString (Method)
Functions ¶ Compare (Function) Copy (Function) CreateRangePool (Function) CreateString (Function) CreateStringPool (Function) IsValidString (Function) Len (Function) Reset (Function) RuneCount (Function) SetSegment (Function)
Compare (FUN) ¶ FUNCTION Compare : DINT Returns an integer comparing two strings lexicographically. The result will be 0 if itfString1 = itfString2 , -1 if itfString1 < itfString2 , and +1 if itfString1 > itfString2 . InOut: Scope Name Type Return Compare DINT Input itfString1 IString itfString2 IString Output eErrorID ERROR