_Builder.WriteString (METH) ¶ METHOD FINAL WriteString : UDINT Appends the contents of sValue to the buffer. It returns the number of bytes written. InOut: Scope Name Type Initial Comment Return WriteString UDINT Inout Const sValue STRING(255) String instance to be written in the builder Input itfCharmap ICharmap 0 Default: Windows-1252 Output eErrorID ERROR Check error message for better diagnostics
_Builder.WriteWString (METH) ¶ METHOD FINAL WriteWString : UDINT Appends the contents of wsValue to the buffer. It returns the number of bytes written. InOut: Scope Name Type Comment Return WriteWString UDINT Inout Const wsValue WSTRING(255) Encoding UCS-2 Output eErrorID ERROR Check error message for better diagnostics
RUNE (ALIAS) ¶ TYPE RUNE : UTF8.|dRUNE| The term rune appears in the libraries and source code, and means exactly the same as “unicode code point”, with one interesting addition. This library defines the word rune as an alias for the type DINT , so programs can be clear when an integer value represents a code point. Moreover, what you might think of as a character constant is called a rune constant. The type and value of the expression WSTRING#"⌘" is a rune with the integer value DINT#16#2318 .
Function Blocks ¶ _Builder (FunctionBlock) IBuilder Reset (Method) Segments GetCurrentSegment (Method) GetFirstSegment (Method) GetNextSegment (Method) ValidateSegment (Method) WriteIString (Method) WriteMemSegment (Method) WriteRune (Method) WriteString (Method) WriteWString (Method) IStringRepresentation Len (Method) ToIString (Method) SetInitialValue (Method)
_Builder (FB) ¶ FUNCTION_BLOCK FINAL _Builder EXTENDS STR._Disposable IMPLEMENTS IBuilder A Builder is used to efficiently build a string using Write methods. It minimizes memory copying. InOut: Scope Name Type Input Const itfString IString udiInitialCapacity UDINT pbyBuffer POINTER TO BYTE udiBufferSize UDINT usiExtensionFactor USINT Methods: SetInitialValue GetCurrentSegment GetFirstSegment GetNextSegment Len Reset ToIString ValidateSegment WriteIString WriteMemSegment WriteRune WriteString WriteWString Structure: IBuilder Reset (Method) Segments GetCurrentSegment (Method) GetFirstSegment (Method) GetNextSegment (Method) ValidateSegment (Method) WriteIString (Method) WriteMemSegment (Method) WriteRune (Method) WriteString (Method) WriteWString (Method) IStringRepresentation Len (Method) ToIString (Method) SetInitialValue (Method)
IBuilder ¶ Reset (Method) Segments GetCurrentSegment (Method) GetFirstSegment (Method) GetNextSegment (Method) ValidateSegment (Method) WriteIString (Method) WriteMemSegment (Method) WriteRune (Method) WriteString (Method) WriteWString (Method)
IStringRepresentation ¶ Len (Method) ToIString (Method)
_Builder.SetInitialValue (METH) ¶ METHOD FINAL SetInitialValue : ERROR InOut: Scope Name Type Initial Return SetInitialValue ERROR Input itfString IString 0 udiInitialCapacity UDINT 0 pbyBuffer POINTER TO BYTE 0 udiBufferSize UDINT 0 usiExtensionFactor USINT 0
Functions ¶ CreateRange (Function) CreateRangePool (Function)