summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* update data and algorithms for Unicode 11 (#140)Steven G. Johnson2018-07-241-1/+3
|
* charwidth=1 for soft hyphen and unassigned codepoints (#135)Steven G. Johnson2018-07-241-57/+63
| | | | | | | | | | | | | | | | * use width=1 for soft hyphen and for unassigned/PUA codepoints * don't count unassigned codepoints when comparing with system wcwidth * more tests * indentation fixes * NEWS for 135 * remove special-casing for arabic control characters affecting a span of numbers, which are sometimes zero-width and sometimes not * regenerate
* uppercase mapping ß (U+00df) to ẞ (U+1E9E) (#134)Steven G. Johnson2018-05-022-42/+74
| | | | | | | | * uppercase(0x00df) = 0x1e9e * tests for titlecase and u+00df uppercase * NEWS, another test
* Case folding fixes (#133)Steven G. Johnson2018-05-022-0/+20
| | | | | | | | | | | | | | | | | | | | | * 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
* missing return code, success message in test/misc.cSteven G. Johnson2018-04-271-0/+2
|
* make internal function staticSteven G. Johnson2018-04-271-1/+1
|
* added test for #128Steven G. Johnson2018-04-271-0/+25
|
* new utf8proc_map_custom for hooking in user-defined custom mappings (#89)Steven G. Johnson2016-11-301-0/+27
| | | | | | | | | | * new utf8proc_map_custom for hooking in user-defined custom mappings * whoops, add test program * NEWS, version bump for 2.1 * change test functions to static so that gcc doesn't complain about missing prototypes
* Smaller tables (#68)Benito van der Zander2016-07-121-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | * convert sequences to utf-16 (saves 25kb) * store sequence length in properties instead using -1 termination (saves 10kb) * cache index for slightly faster data creation * store lower/upper/title mapping in sequence array (saves 25kb). Add utf8proc_totitle, as title_mapping cannot be used to get the title codepoint anymore. Rename xxx_mapping to xxx_seqindex, so programs assuming a value with the old meaning fail at compile time * change combination array data type to uint16 (saves 40kb) * merge 1st and 2nd comb index (saves 50kb) * kill empty prefix/suffix in combination array (saves 50kb) * there was no need to have a separate combination start array, it can be merged in a single array * some fixes * mark the table as const again * and regen
* Fix overrunMichaël Meyer2016-02-041-2/+8
|
* Fix sscanf argument type for format %xPeter Colberg2015-10-301-1/+1
|
* Fix missing static declarations for internal functionsPeter Colberg2015-10-302-2/+2
|
* Fix implicit function declarationsPeter Colberg2015-10-301-0/+8
|
* Move common test functions to separate modulePeter Colberg2015-10-302-42/+50
| | | | This resolves warnings for missing function prototypes.
* Do not export internal unsafe_encode_char()Peter Colberg2015-10-291-2/+1
|
* fix #46 (make sure symbol-like codepoints have nonzero width even if they ↵Steven G. Johnson2015-06-241-4/+14
| | | | aren't in Unifont)
* add toupper/tolower functions (for JuliaLang/julia#11471)Steven G. Johnson2015-05-291-0/+50
|
* Add tests for valid codepoints and iterate functionScottPJones2015-05-292-0/+201
|
* Fix #34 handle 66 Unicode non-characters, also improve performance and ↵Scott Paul Jones2015-05-293-8/+11
| | | | surrogate handling
* Prefix other C99 typedefs with utf8proc_Tony Kelman2015-04-063-5/+5
|
* Use a new typedef utf8proc_ssize_t to avoid define collisionsTony Kelman2015-04-051-1/+1
| | | | with MSVC
* put the API version as #defines in the header file (as discussed in #30)Steven G. Johnson2015-03-271-0/+4
|
* fix #2: add charwidth functionSteven G. Johnson2015-03-122-4/+67
|
* directory cleanup: move tests and data into subdirectoriesSteven G. Johnson2015-03-064-0/+234