Previous: , Up: Elementary string functions on NUL terminated strings   [Contents][Index]

4.5.8 Tokenizing a NUL terminated Unicode string

The following function does one step in tokenizing a Unicode string.

Function: uint8_t * u8_strtok (uint8_t *str, const uint8_t *delim, uint8_t **ptr)
Function: uint16_t * u16_strtok (uint16_t *str, const uint16_t *delim, uint16_t **ptr)
Function: uint32_t * u32_strtok (uint32_t *str, const uint32_t *delim, uint32_t **ptr)

Divides str into tokens separated by characters in delim.

This function is similar to strtok_r and wcstok, except that it operates on Unicode strings. Its interface is actually more similar to wcstok than to strtok.