Tlsa/ucs4 normalize (#88)
authorMichael Drake <mike@smoothartist.com>
Mon, 21 Nov 2016 14:22:39 +0000 (14:22 +0000)
committerSteven G. Johnson <stevenj@mit.edu>
Mon, 21 Nov 2016 14:22:39 +0000 (09:22 -0500)
commit70bbed8626e902d8c1e2b8277b0c61efb8a460bb
treee8a3bbc9ba7034cd38be424009b4845688fb9919
parentcaef918abd0a9425b3942df3859c7bea7b8986e0
Tlsa/ucs4 normalize (#88)

* Split codepoint sequence normalisation out into separate function.

This creates utf8proc_normalize_utf32() which takes and returns
a UTF-32 string, applying the following options:

- UTF8PROC_NLF2LS
- UTF8PROC_NLF2PS
- UTF8PROC_NLF2LF
- UTF8PROC_STRIPCC
- UTF8PROC_COMPOSE
- UTF8PROC_STABLE

The utf8proc_reencode() function has been updated to call the
new utf8proc_normalize_utf32().

* Update code documentation: utf8proc_reencode handles UTF8PROC_CHARBOUND.
utf8proc.c
utf8proc.h