Unicode ¶ StrCaseCmpW (Function) StrCaseFindW (Function) StrCmpW (Function) StrConcatW (Function) StrCpyW (Function) StrDeleteW (Function) StrFindW (Function) StrIsNullOrEmptyW (Function) StrLenW (Function) StrMidW (Function) StrPadLeftW (Function) StrPadRightW (Function) StrReplaceW (Function) StrTrimEndW (Function) StrTrimStartW (Function) StrTrimW (Function) WCharToUpper (Function)
StrCaseCmpW (FUN) ¶ FUNCTION StrCaseCmpW : INT Does a case insensitive comparison of two wstrings. Case insensitive is intended only for the comparison between two ASCII characters within the strings Return values: 0 -> the strings are equal -1 -> pwd1 is less than pwd2 1 -> pwd1 is larger than pwd2 InOut: Scope Name Type Return StrCaseCmpW INT Input pwd1 POINTER TO WORD pwd2 POINTER TO WORD
StrCmpW (FUN) ¶ FUNCTION StrCmpW : INT Does a case sensitive comparison of two strings Return values: 0 -> the strings are equal -1 -> pwd1 is less than pwd2 1 -> pwd1 is larger than pwd2 InOut: Scope Name Type Return StrCmpW INT Input pwd1 POINTER TO WORD pwd2 POINTER TO WORD
StrCaseFindW (FUN) ¶ FUNCTION StrCaseFindW : 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 StrCaseFindW INT Input pst1 POINTER TO WSTRING(255) pst2 POINTER TO WSTRING(255) uiSearchStart UINT a position relative to 1, where the search starts
StrConcatW (FUN) ¶ FUNCTION StrConcatW : BOOL This function concatenates pstFrom to pstTo if the iBufferSize from pstTo is big enough. 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 StrConcatW BOOL Input pstFrom CharBufferPtr simply a pointer to byte pstTo CharBufferPtr simply a pointer to byte iBufferSize INT the buffer size of pstTo
StrCpyW (FUN) ¶ FUNCTION StrCpyW : DINT Does a strcpy from the source string cbsSource to cbsTarget. cbsTarget’s buffer must not be NULL! Will return the number of copied characters including the terminating ‘\0’ or “\0” InOut: Scope Name Type Comment Return StrCpyW DINT Input pBuffer CharBufferPtr iBufferSize DINT the size in bytes of the buffer pStr CharBufferPtr the source as a pointer to string
StrDeleteW (FUN) ¶ FUNCTION StrDeleteW Deletes <iLength> characters of <pwst>, beginning at the <iPosition>-th character position. <iPosition> = 1 is the first character. InOut: Scope Name Type Input pwd POINTER TO WORD iLength INT iPosition INT
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