utf8proc_iterate

Reads a single codepoint from the UTF-8 sequence being pointed to by str. The maximum number of bytes read is strlen, unless strlen is negative (in which case up to 4 bytes are read).

If a valid codepoint could be read, it is stored in the variable pointed to by codepoint_ref, otherwise that variable will be set to -1. In case of success, the number of bytes read is returned; otherwise, a negative error code is returned.

version(DerelictUTF8Proc_Static)extern
utf8proc_ssize_t
utf8proc_iterate
(
const utf8proc_uint8_t* str
,
utf8proc_ssize_t strlen
,
utf8proc_int32_t* codepoint_ref
)

Meta