Calculate the length of the initial segment of 'str' which consists entirely of characters not in 'reject'.
- Parameters
-
cs | Pointer to charset info. |
str | Pointer to multi-byte string. |
str_end | Pointer to end of multi-byte string. |
reject | Pointer to start of single-byte reject string. |
reject_length | Length of single-byte reject string. |
- Returns
- Length of segment of multi-byte string that doesn't contain any character of the single-byte reject string or zero if an invalid encoding of a character of the multi-byte string is found.
- Note
- The reject string points to single-byte characters so it is only possible to find the first occurrence of a single-byte character. Multi-byte characters in 'str' are treated as not matching any character in the reject string. This method returns zero if an invalid encoding of any character in the string 'str' using charset 'cs' is found.