Wide-character-string traversal
A wide-character string consists of fixed-length characters. The library does not need to provide traversal functions for wide-character strings because you can traverse the string with the built-in scaling of the C compiler. However, the library does provide the ifx_gl_wcslen() function, which determines the number of bytes in a wide-character string.
The library
supports wide-character string traversal in the following directions:
- Forward
gl_wchar_t buf[], *p; for ( p = buf; *p != ‘\0' ; p++ ) process_wchar(*p);
- Backward
gl_wchar_t buf[], *p; for ( p = buf + ifx_gl_wcslen(buf) - 1; p >= buf; p-- ) process_wchar(*p);