diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2018-05-02 08:15:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 08:15:02 -0400 |
commit | bdc8b9e4b2063e4b4563938d5077ee3b826cf342 (patch) | |
tree | b82ecf4a68d8b8841f4cb5aa4f903841f729bb47 /test/custom.c | |
parent | 48949bd3ebd66bb94a40f4c3fcfb26dd4bf2be2b (diff) | |
download | libutf8proc-bdc8b9e4b2063e4b4563938d5077ee3b826cf342.tar.gz libutf8proc-bdc8b9e4b2063e4b4563938d5077ee3b826cf342.tar.bz2 |
Case folding fixes (#133)
* Fixes allowing for “Full” folding and NFKC_CaseFold compliance.
* Only include C (Common) and F (Full) foldings from CaseFolding.txt. Removed S (Simple) since F & S are specified to be exclusive.
* Extend UTF8PROC_IGNORE to also ignore unassigned codepoints (such as \u2065) which are specified as being discarded by NFKC_CF.
* Document the changes to UTF8PROC_IGNORE in header.
* Add NFKC_CF helper function with documentation.
* restore old IGNORE behavior, add UTF8PROC_STRIPNA, rename to utf8proc_NFKC_Casefold, add a test
* success message
* test that IGNORE does not strip NA
* data update
* NFKC_Casefold shouldn't strip NA
Diffstat (limited to 'test/custom.c')
-rw-r--r-- | test/custom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/custom.c b/test/custom.c index f85b3cc..fe4239d 100644 --- a/test/custom.c +++ b/test/custom.c @@ -23,5 +23,6 @@ int main(void) check(strlen((char*) output) == 6, "incorrect output length"); check(!memcmp(correct, output, 7), "incorrect output data"); free(output); + printf("map_custom tests SUCCEEDED.\n"); return 0; } |