Hi Bruno,

Small questions regarding casefolding in UTF-8:

— Function: uint8_t * u8_casefold (const uint8_t *s, size_t n, const
char *iso639_language, uninorm_t nf, uint8_t *resultbuf, size_t
*lengthp)

What if the resultbuf passed doesn't have enough space for the
case-folded and normalized string? Will the function just return NULL
and need to re-size the buffer and try again?

And, if NFC normalization desired in the output, would it be safe to say
that the output length will be less or equal than the input length?

Cheers,

-- 
Aleksander



Reply via email to