String-length determination
The following table lists the multibyte functions
and their wide-character equivalents that determine string length
or number of characters.
String-length task | Multibyte-character function | Wide-character function |
---|---|---|
Determine the number of characters in the string, not including any terminating null characters. | ifx_gl_mbslen() | ifx_gl_wcslen() |
Determine the number of bytes in a multibyte string, not including any trailing space characters. | ifx_gl_mbsntsbytes() | None |
Determine the number of characters in a string, not including the trailing space characters. | ifx_gl_mbsntslen() | ifx_gl_wcsntslen() |
Determine the number of characters in the initial substring of one string that consists entirely of characters in a second specified character string. | ifx_gl_mbsspn() | ifx_gl_wcsspn() |
Determine the number of characters in the initial substring of one string that consists entirely of characters not in a specified second character string. | ifx_gl_mbscspn() | ifx_gl_wcscspn() |