WCharToUpper (FUN) ¶ FUNCTION WCharToUpper : WORD This function converts a character of a wstring to uppercase. InOut: Scope Name Type Return WCharToUpper WORD Input wdChar WORD
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 01.04.2022, 08:11:09 companyName string 3S-Smart Software Solutions GmbH libraryFile StringUtils.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile StringUtils.clean.json version version 2.0.0.0 ProjectInformation IECCodeConverter bool True PreserveCompiledLibComments True Released True LastModificationDateTime date 01.04.2022, 08:11:09 LibraryCategories library-category-list Intern|Utils Author string 3S-Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 DefaultNamespace Stu Description See: Description DocFormat reStructuredText Placeholder StringUtils Project StringUtils Title StringUtils Version version 3.5.18.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. CmpErrors2 Interfaces ¶ Library Identification ¶ Name: CmpErrors2 Interfaces Version: newest Company: System Namespace: CmpErrors Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpErrors2 Interfaces, * (System) Component Manager ¶ Library Identification ¶ Placeholder: Component Manager Default Resolution: Component Manager, * (System) Namespace: Component_Manager Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Component Manager Standard ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysMem ¶ Library Identification ¶ Placeholder: SysMem Default Resolution: SysMem, * (System) Namespace: SysMem Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysMem SysTimeRtc ¶ Library Identification ¶ Placeholder: SysTimeRtc Default Resolution: SysTimeRtc, * (System) Namespace: SysTimeRtc Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTimeRtc
StrFindA (FUN) ¶ FUNCTION StrFindA : INT Similar semantics as Find from the standard.library. A null pointer will lead to a return of -1 InOut: Scope Name Type Comment Return StrFindA INT Input pst1 POINTER TO STRING(255) pst2 POINTER TO STRING(255) uiSearchStart UINT a position relative to 1, where the search starts
StrIsNullOrEmptyA (FUN) ¶ FUNCTION StrIsNullOrEmptyA : BOOL This function determines if the given string is null or empty InOut: Scope Name Type Comment Return StrIsNullOrEmptyA BOOL Input pstData CharBufferPtr simply a pointer to byte
StrLenA (FUN) ¶ FUNCTION StrLenA : DINT This function determines the length of a string by searching for a terminating zero character. The function will do its work either with native IEC-Strings or with strings coming from external functions. It will return -1 if the given pointer to String is equal NULL InOut: Scope Name Type Comment Return StrLenA DINT Input pstData CharBufferPtr simply a pointer to byte
StrMidA (FUN) ¶ FUNCTION StrMidA Return <iLength> characters of <pst>, beginning at the <iPosition>-th character position. <iPosition> = 1 is the first character. This function has been adapted from StrMidW InOut: Scope Name Type Comment Input pst POINTER TO BYTE uiInputBufferSize UINT The size of the buffer, where pwst points to iLength INT iPosition INT pstResult POINTER TO BYTE The buffer, where the result will be returned uiResultBufferSize UINT The size of the buffer (in bytes), where the result will be returned
StrPadLeftA (FUN) ¶ FUNCTION StrPadLeftA : BOOL This function generate a padding string and concatenates it with pstFrom to pstTo if the iBufferSize 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 StrPadLeftA BOOL Input byPadChar BYTE The padding character filling the space from left pstFrom CharBufferPtr simply a pointer to byte pstTo CharBufferPtr simply a pointer to byte diBufferSize DINT the buffer size of pstTo
StrPadRightA (FUN) ¶ FUNCTION StrPadRightA : BOOL This function generate a padding string and concatenates it with pstFrom to pstTo if the iBufferSize 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 StrPadRightA BOOL Input byPadChar BYTE The padding character filling the space from right pstFrom CharBufferPtr simply a pointer to byte pstTo CharBufferPtr simply a pointer to byte diBufferSize DINT the buffer size of pstTo
StrReplaceA (FUN) ¶ FUNCTION StrReplaceA Replaces <iLengthToReplace> characters of pstInput by pstReplaceWith, starting at the <iPosition>-th character position iPosition = 1 is the first character. This function was adapted from function StrReplaceW InOut: Scope Name Type Comment Input pstInput POINTER TO STRING(255) uiInputBufferSize UINT The size of the buffer, where pstInput points to pstReplaceWith POINTER TO STRING(255) iLengthInput INT iLengthToReplace INT iLengthToReplaceWith INT iPosition INT