Re:Libgrapheme: A simple freestanding C99 library for Unicode
by HexDecOctBin on Tuesday November 15, 2022 @07:37PM
(#33617335)
Is there any similar C library that deals with Normalisation and Collation?
[ Parent
| on HN ]
Re:Libgrapheme: A simple freestanding C99 library for Unicode
by rockwotj on Tuesday November 15, 2022 @10:19PM
(#33618394)
https://github.com/JuliaStrings/utf8proc does normalization
Re:Libgrapheme: A simple freestanding C99 library for Unicode
by HexDecOctBin on Wednesday November 16, 2022 @12:18AM
(#33619226)
I was hoping for some alternative since the linked article mentions utf8proc as such:
> Some libraries, like libutf8proc and libunistring, are incorrect by basing their API on assumptions that haven't been true for years (e.g. offering stateless grapheme cluster segmentation even though the underlying algorithm is not stateless). As an additional factor, libutf8proc's UTF-8-decoder is unsafe, as it allows overlong encodings that can be easily used for exploits.