From bdc8b9e4b2063e4b4563938d5077ee3b826cf342 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Wed, 2 May 2018 08:15:02 -0400 Subject: Case folding fixes (#133) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- test/custom.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test/custom.c') 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; } -- cgit v1.2.3