Function Block STRCSPN

The Function Block STRCSPN determines the number of non-matching characters.

Note: This function is Binary-Safe. This means that UTF8 characters cannot be processed directly.

Input STR

Defines the string to be examined.

Input CHARS

Defines the not allowed characters.

Input OFFSET

Defines the integer position at which the search begins.

If the offset is negative, the search starts with calculated offset from the end of the string at input STR.

Input LEN

The length to be examined of the section from input STR.

If no length has been defined, then it is examined until the end of the string.

Output

The output returns the length of the initial segment of the string STR that consists exclusively of characters not occurring in CHARS.