StrFindW (FUN) ¶ FUNCTION StrFindW : INT Same semantics as Find from the standard.library. A null pointer will lead to a return of -1 InOut: Scope Name Type Comment Return StrFindW INT Input pst1 POINTER TO WSTRING(255) pst2 POINTER TO WSTRING(255) uiSearchStart UINT a position relative to 1, where the search starts
StrIsNullOrEmptyW (FUN) ¶ FUNCTION StrIsNullOrEmptyW : BOOL This function determines if the given string is null or empty InOut: Scope Name Type Comment Return StrIsNullOrEmptyW BOOL Input pstData CharBufferPtr simply a pointer to byte
StrLenW (FUN) ¶ FUNCTION StrLenW : 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-WStrings 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 StrLenW DINT Input pstData CharBufferPtr simply a pointer to byte
StrMidW (FUN) ¶ FUNCTION StrMidW Return <iLength> characters of <pwst>, beginning at the <iPosition>-th character position. <iPosition> = 1 is the first character. InOut: Scope Name Type Comment Input pwst POINTER TO WORD uiInputBufferSize UINT The size of the buffer, where pwst points to iLength INT iPosition INT pwstResult POINTER TO WORD The buffer, where the result will be returned uiResultBufferSize UINT The size of the buffer (in bytes), where the result will be returned
StrPadLeftW (FUN) ¶ FUNCTION StrPadLeftW : 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 StrPadLeftW BOOL Input wPadChar WORD 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
StrPadRightW (FUN) ¶ FUNCTION StrPadRightW : 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 StrPadRightW BOOL Input wPadChar WORD 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
StrReplaceW (FUN) ¶ FUNCTION StrReplaceW Replaces <iLengthToReplace> wcharacters of pstInput by pstReplaceWith, starting at the <iPosition>-th wcharacter position iPosition = 1 is the first character. InOut: Scope Name Type Comment Input pstInput POINTER TO WSTRING(255) uiInputBufferSize UINT The size of the buffer, where pstInput points to pstReplaceWith POINTER TO WSTRING(255) iLengthInput INT iLengthToReplace INT iLengthToReplaceWith INT iPosition INT
StrTrimEndW (FUN) ¶ FUNCTION StrTrimEndW Remove trailing whitespaces InOut: Scope Name Type Comment Input pString CharBufferPtr Pointer to the WSTRING to trim
StrTrimStartW (FUN) ¶ FUNCTION StrTrimStartW Remove leading whitespaces InOut: Scope Name Type Comment Input pString CharBufferPtr Pointer to the WSTRING to trim
StrTrimW (FUN) ¶ FUNCTION StrTrimW : BOOL Remove leading and trailing whitespaces InOut: Scope Name Type Comment Return StrTrimW BOOL Input pString CharBufferPtr Pointer to the WSTRING to trim