utf8proc_decompose

The same as @ref utf8proc_decompose_char, but acts on a whole UTF-8 string and orders the decomposed sequences correctly.

If the @ref UTF8PROC_NULLTERM flag in options is set, processing will be stopped, when a NULL byte is encounted, otherwise strlen bytes are processed. The result (in the form of 32-bit unicode codepoints) is written into the buffer being pointed to by buffer (which must contain at least bufsize entries). In case of success, the number of codepoints written is returned; in case of an error, a negative error code is returned (@ref utf8proc_errmsg). See @ref utf8proc_decompose_custom to supply additional transformations.

If the number of written codepoints would be bigger than bufsize, the required buffer size is returned, while the buffer will be overwritten with undefined data.

version(DerelictUTF8Proc_Static)extern
utf8proc_ssize_t
utf8proc_decompose
(
const utf8proc_uint8_t* str
,
utf8proc_ssize_t strlen
,
utf8proc_int32_t* buffer
,
utf8proc_ssize_t bufsize
,
)

Meta