utf8strichr()

Search for a UTF-8 character in a string, ignoring case

Synopsis:

char *utf8strichr( char const *string,
                   char const *mbchar,
                   int *count );

Arguments:

string
A pointer to the string to search.
mbchar
The character to look for.
count
A pointer to the location where utf8strrchr() stores the number of UTF-8 characters the matching character is from the start of the search.

Library:

ph

Description:

The utf8strichr() searches for a character in string that matches mbchar disregarding the case. If such a match occurs in string, then count (if provided) is set to the number of characters spanned to find the match.

Returns:

A pointer to the beginning of the matching character within string, or NULL if no match is found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

utf8strchr(), utf8strnchr(), utf8strnichr(), utf8strrchr(), utf8strirchr()

Unicode Multilingual Support in the Photon Programmer's Guide