Cyclone Scheme  0.9
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
sString to examine
codepointOut parameter, set to the codepoint.
cptsOut parameter, set to the number of code points
bytesOut parameter, set to the number of bytes
Returns
Returns CYC_UTF8_ACCEPT on success, otherwise CYC_UTF8_REJECT.