4.5.7 Searching for a substring in a NUL terminated Unicode string
The following functions search whether a given Unicode string is a substring
of another Unicode string.
- Function: uint8_t * u8_strstr (const uint8_t *haystack, const uint8_t *needle) ¶
- Function: uint16_t * u16_strstr (const uint16_t *haystack, const uint16_t *needle) ¶
- Function: uint32_t * u32_strstr (const uint32_t *haystack, const uint32_t *needle) ¶
Finds the first occurrence of needle in haystack.
This function is similar to strstr
and wcsstr
, except
that it operates on Unicode strings.
- Function: bool u8_startswith (const uint8_t *str, const uint8_t *prefix) ¶
- Function: bool u16_startswith (const uint16_t *str, const uint16_t *prefix) ¶
- Function: bool u32_startswith (const uint32_t *str, const uint32_t *prefix) ¶
Tests whether str starts with prefix.
- Function: bool u8_endswith (const uint8_t *str, const uint8_t *suffix) ¶
- Function: bool u16_endswith (const uint16_t *str, const uint16_t *suffix) ¶
- Function: bool u32_endswith (const uint32_t *str, const uint32_t *suffix) ¶
Tests whether str ends with suffix.