StartsWithCI (FUN) ¶ FUNCTION StartsWithCI : BOOL Returns if the string pS starts with the string pPrefix, ignoring case. InOut: Scope Name Type Comment Return StartsWithCI BOOL Input pS POINTER TO BYTE The string to test for a prefix udiLenS UDINT The length og pS pPrefix POINTER TO BYTE The prefix to test for udiLenPrefix UDINT The length of the prefix
StrCmpAlphabeticallyCI (FUN) ¶ FUNCTION StrCmpAlphabeticallyCI : INT Helper function for CmpInstancePaths: compares two strings alphabetically, ignoring case. See ASCII_to_SortIdx for the exact sorting order of all ASCII characters. Returns a value > 0 if identifier 1 comes after identifier 2, 0 if they are equal, and a value < 0 if identifier 1 comes before identifier 2. InOut: Scope Name Type Return StrCmpAlphabeticallyCI INT Input st1 STRING(512) st2 STRING(512)
StrLen (FUN) ¶ FUNCTION StrLen : DINT InOut: Scope Name Type Return StrLen DINT Input pSt POINTER TO BYTE
StringLiteral_To_String (FUN) ¶ FUNCTION StringLiteral_To_String : UDINT InOut: Scope Name Type Return StringLiteral_To_String UDINT Input pbyDst POINTER TO BYTE pbySrc POINTER TO BYTE udiDstSize UDINT
StringTokenizer (FB) ¶ FUNCTION_BLOCK StringTokenizer Function block that tokenizes a string, given a delimiter. Note: empty tokens (caused by consecutive delimiters) are returned. InOut: Scope Name Type Input bEnable BOOL pSt POINTER TO BYTE diLen DINT byDelim BYTE Output bHasToken BOOL pStToken POINTER TO BYTE diLenToken DINT
String_To_StringLiteral (FUN) ¶ FUNCTION String_To_StringLiteral : UDINT InOut: Scope Name Type Return String_To_StringLiteral UDINT Input pbyDst POINTER TO BYTE pbySrc POINTER TO BYTE udiDstSize UDINT
String_To_TypeClass (FUN) ¶ FUNCTION String_To_TypeClass : TypeClass InOut: Scope Name Type Return String_To_TypeClass TypeClass Input ps POINTER TO STRING(10)
String_To_TypedValue (FUN) ¶ FUNCTION String_To_TypedValue : BOOL Converts a string to a typed value. Works for all primitive scalar types. Does not work for strings and wstrings. InOut: Scope Name Type Return String_To_TypedValue BOOL Input ps POINTER TO STRING tc TypeClass p POINTER TO BYTE
ToUpper (FUN) ¶ FUNCTION ToUpper : BYTE Converts an ASCII character to upper case. All non-alphebetical characters are returned identically. InOut: Scope Name Type Return ToUpper BYTE Input byChar BYTE
TypeClass_IsInteger (FUN) ¶ FUNCTION TypeClass_IsInteger : BOOL InOut: Scope Name Type Return TypeClass_IsInteger BOOL Input tc TypeClass