summaryrefslogtreecommitdiff
path: root/src/Normalize.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-09-14Update codebase to Zig 0.15.1.Gravatar Michael Chaten1-5/+5
Removes compression support
2025-04-30Allocation Failure TestsGravatar Sam Atman1-15/+0
These turned up an excessive amount of allocations in CanonData and CompatData, which have been reduced to two through the somewhat squirrely use of 'magic numbers'. There are now allocation tests for every allocated structure in the library, and they run to completion in a reasonable amount of time. So, that's nice.
2025-04-30Setup variants for all allocating modulesGravatar Sam Atman1-7/+32
This harmonizes the allocating modules in a couple of ways. All can now be constructed by pointer, and all treat various miscellaneous read failures as `unreachable`, which indeed they should be. The README has been updated to inform users of this option.
2025-04-30Remove FoldData, make CaseFoldingGravatar Sam Atman1-1/+15
CaseFolding now has the FoldData, and can be initialized with a copy of Normalize if wanted.
2025-04-30Merge NormData with NormalizeGravatar Sam Atman1-85/+108
2025-04-30Factor out 'Data' for grapheme and DisplayWidthGravatar Sam Atman1-15/+14
In the process of refactoring the whole library, so that it doesn't expose anything called "Data" separately from user functionality.
2025-04-29Add general tests stepGravatar Sam Atman1-3/+4
After a considerable slog, all tests are reachable from the test step, and pass. Almost every failure was related to the change away from the inclusion of an allocator on this or that.
2025-04-29Add result.toOwned() to Normalize.zigGravatar Sam Atman1-0/+9
Closes #29 The README is also updated to reflect this change.
2025-04-29All the std.mem.Allocators that were stored just for init and deinitGravatar lch3611-5/+5
methods were removed, mem.Allocators were added to deinit as arguments.
2024-06-25Normalize: Mark utf8Encode errors as unreachable, use explicit error setsGravatar Ryan Liptak1-11/+11
These utf8Encode calls are converting normalized codepoints back into UTF-8, so the codepoints can be assumed to be valid.
2024-04-02NormData init now takes pointer to uninitialized Self to avoid stack copy ↵Gravatar Jose Colon Rodriguez1-8/+16
issues.
2024-03-31Updated READMEGravatar Jose Colon Rodriguez1-41/+0
2024-03-28Split out Unicode tests to separate fileGravatar Jose Colon Rodriguez1-120/+1
2024-03-27ScriptsData and made all Datas constGravatar Jose Colon Rodriguez1-29/+29
2024-03-26GraphemeData and Normalize non-pub fnsGravatar Jose Colon Rodriguez1-6/+6
2024-03-23Rename CaseFold and NormalizeGravatar Jose Colon Rodriguez1-0/+0
2024-03-01Added canonical caseless match to CaserGravatar Jose Colon Rodriguez1-0/+25
2024-03-01Moved case fold stuff to src/Caser.zigGravatar Jose Colon Rodriguez1-95/+3
2024-03-01Changes when case folded check; 20ms fasterGravatar Jose Colon Rodriguez1-4/+26
2024-03-01Normalizer.eqlIgnoreCase compatibility caseless matchingGravatar Jose Colon Rodriguez1-4/+99
2024-02-29Removed dupe tombstone check in NormalizerGravatar Jose Colon Rodriguez1-14/+0
2024-02-29Major Normalizer optimizationsGravatar Jose Colon Rodriguez1-60/+75
2024-02-28Added nfc latin1 check backGravatar Jose Colon Rodriguez1-70/+121
2024-02-28Using slices for decompositions in NormalizerGravatar Jose Colon Rodriguez1-96/+89
2024-02-27Using NormPropsData in NormData; No Ziglyph deps in NOrmalizerGravatar Jose Colon Rodriguez1-4/+5
2024-02-27Removed equality functions from NormalizerGravatar Jose Colon Rodriguez1-110/+3
2024-02-27Using HangulData in NormDataGravatar Jose Colon Rodriguez1-12/+11
2024-02-26Using NormData nfkdGravatar Jose Colon Rodriguez1-93/+36
2024-02-26Using NormData nfc and nfdGravatar Jose Colon Rodriguez1-25/+3
2024-02-26Using NormData and CanonData in NormalizerGravatar Jose Colon Rodriguez1-84/+71
2024-02-26Using separate data struct model.Gravatar Jose Colon Rodriguez1-41/+56
2024-02-20Replaced ccc_map with table. 20ms fasterGravatar Jose Colon Rodriguez1-0/+863