
The Function Block STRSPN determines the length of the initial section of a string that consists exclusively of characters contained in a passed mask.
Note: This function is Binary-Safe. This means that UTF8 characters cannot be processed directly.
Defines the string to be examined.
Defines the mask as a set of allowed characters.
Defines the position as an integer at which the search begins.
If the offset is negative, the search begins with calculated offset from the end of the string at input STR.
The length to be examined of the section from input STR.
If no length has been defined, the examination continues until the end of the string.
The output returns the number of occurrences of characters CHARS in STR.