bug-libunistring
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-libunistring] case folding output size?


From: Aleksander Morgado
Subject: [bug-libunistring] case folding output size?
Date: Tue, 27 Apr 2010 22:02:04 +0200

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

[Prev in Thread] Current Thread [Next in Thread]