|
|
Also, the docs for the two fl_utf8len*() functions should cover the fact that a '\0' (null) passed to them
currently returns 1. I'd offer they should both return a length of 0 instead, but either way, the return value
should be documented for this corner case.
A char with value 0 in an UTF-8 string represents the Unicode character U+0000 and is nothing special at all. Yes, the NUL char is used in C as "string terminator" (and is considered as not part of the string) but that's a C thing, not a Unicode thing. If you have a C++ std::string than NUL char's in it are completely okay.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
[ Direct Link to Message ] | |
|
| |