File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 06.05.2024, 08:27:46 companyName string 3S-Smart Software Solutions GmbH libraryFile String Util Intern.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile String Util Intern.clean.json version version 2.0.0.0 ProjectInformation AutoResolveUnbound bool True IsEndUserLibrary False Released True SourceLibrary False LastModificationDateTime date 06.05.2024, 08:27:42 LibraryCategories library-category-list Intern Author string CODESYS Development GmbH Company CODESYS CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 2 DefaultNamespace MSU Description See: Description DocFormat reStructuredText LanguageModelAttribute qualified-access-only Placeholder String_Util_Intern Project String Util Intern Title String Util Intern Version version 1.10.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. Segmented Buffer Manager ¶ Library Identification ¶ Placeholder: SegBufferMan Default Resolution: Segmented Buffer Manager, * (3S - Smart Software Solutions GmbH) Namespace: SBM Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SegBufferMan SysMem ¶ Library Identification ¶ Placeholder: SysMem Default Resolution: SysMem, * (System) Namespace: SysMem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: SysMem
StringWriter.Clear (METH) ¶ METHOD Clear : ERROR The StringWriter is initialized for a new concatenation run. The internal user memory is released and initialized with a new free memory. InOut: Scope Name Type Return Clear ERROR
StringWriter.CopyString (METH) ¶ METHOD CopyString : ERROR The current user data is copied to the target memory area in one piece. The end of the user data is marked with 16#0000. InOut: Scope Name Type Comment Return CopyString ERROR Input pbyMemory POINTER TO BYTE udiSize UDINT Output udiNumberOfBytes UDINT number of bytes written
Functions ¶ FindString (Function) FindWString (Function) MidWString (Function) Replace (Function) StrConcatA (Function) StrConcatW (Function) StrLenA (Function) StrLenW (Function) StrMidA (Function) StrReplaceW (Function) StrToUpperA (Function) StrTrimW (Function)
FindString (FUN) ¶ FUNCTION FindString : UDINT Same semantics as Find from the standard.library. A null pointer will lead to a return of 0 and eError = ERROR.INVALID_PARAMETER InOut: Scope Name Type Comment Return FindString UDINT Input pst1 POINTER TO STRING(255) pst2 POINTER TO STRING(255) udiSearchStart UDINT a position relative to 1, where the search starts Output eError ERROR
FindWString (FUN) ¶ FUNCTION FindWString : UDINT Same semantics as Find from the standard.library. A null pointer will lead to a return of 0 and eError = ERROR.INVALID_PARAMETER InOut: Scope Name Type Comment Return FindWString UDINT Input pst1 POINTER TO WSTRING(255) pst2 POINTER TO WSTRING(255) udiSearchStart UDINT a position relative to 1, where the search starts Output eError ERROR
MidWString (FUN) ¶ FUNCTION MidWString : ERROR Return <iLength> characters of <pwst>, beginning at the <iPosition>-th character position. <iPosition> = 1 is the first character. InOut: Scope Name Type Comment Return MidWString ERROR Input pwst POINTER TO WORD udiLength UDINT udiPosition UDINT pwstResult POINTER TO WORD The buffer, where the result will be returned udiResultBufferSize UDINT The size of the buffer (in bytes), where the result will be returned
Replace (FUN) ¶ FUNCTION Replace Function to replace strings InOut: Scope Name Type Input pwsFrom POINTER TO WSTRING udiBufferSize UDINT pwsRelaceWhat POINTER TO WSTRING pwsRelaceWith POINTER TO WSTRING
StrConcatA (FUN) ¶ FUNCTION StrConcatA : BOOL This function concatenates pstFrom to pstTo if the diBufferSize from pstTo is big enough. The function will do its work either with native IEC-Strings or with strings coming from external functions. It will return FALSE and does no concatenation if one of the strings is NULL or the buffer size is not big enough. InOut: Scope Name Type Comment Return StrConcatA BOOL Input pstFrom CharBufferPtr simply a pointer to byte pstTo CharBufferPtr simply a pointer to byte udiBufferSize UDINT the buffer size of pstTo Output eError ERROR