|
int Cyc_utf8_count_code_points_and_bytes |
( |
uint8_t * |
s, |
|
|
char_type * |
codepoint, |
|
|
int * |
cpts, |
|
|
int * |
bytes |
|
) |
| |
Count the number of code points and bytes in a string.
- Parameters
-
s | String to examine |
codepoint | Out parameter, set to the codepoint. |
cpts | Out parameter, set to the number of code points |
bytes | Out parameter, set to the number of bytes |
- Returns
- Returns
CYC_UTF8_ACCEPT on success, otherwise CYC_UTF8_REJECT .
|