summaryrefslogtreecommitdiff
path: root/src/FoldData.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-04-30Remove FoldData, make CaseFoldingGravatar Sam Atman1-99/+0
CaseFolding now has the FoldData, and can be initialized with a copy of Normalize if wanted.
2025-04-30Merge NormData with NormalizeGravatar Sam Atman1-39/+39
2025-04-29All the std.mem.Allocators that were stored just for init and deinitGravatar lch3611-7/+6
methods were removed, mem.Allocators were added to deinit as arguments.
2024-12-04Fix leak of cwcf_exceptions in FoldDataGravatar Ryan Liptak1-0/+2
Closes #20
2024-06-27FoldData: Minimize Changes_When_Casefolded dataGravatar Ryan Liptak1-5/+16
Only a few codepoints have a mapping in CaseFolding.txt but do not have the Changes_When_Casefolded property set. So, FoldData can just store a list of those particular codepoints and then re-use the encoded CaseFolding.txt data alongside it in order to implement changesWhenCaseFolded. This reduces the size of fold.bin.z from 4,387 bytes (4.28KiB) to 1,165 bytes (1.13KiB). This also seemingly introduced a very slight performance regression in zg_caseless. Before: zg CaseFold.compatCaselessMatch: result: 626, took: 258ns zg CaseFold.canonCaselessMatch: result: 626, took: 129ns After: zg CaseFold.compatCaselessMatch: result: 626, took: 263ns zg CaseFold.canonCaselessMatch: result: 626, took: 131ns
2024-06-26Removed all inlinesGravatar Jose Colon Rodriguez1-4/+6
2024-06-26Added changes when casefolded backGravatar Jose Colon Rodriguez1-2/+6
2024-06-26Implemented sqeek502s case foldGravatar Jose Colon Rodriguez1-35/+51
2024-03-31Updated READMEGravatar Jose Colon Rodriguez1-3/+2
2024-03-28PropsData and errdefers for init fnsGravatar Jose Colon Rodriguez1-0/+8
2024-03-27ScriptsData and made all Datas constGravatar Jose Colon Rodriguez1-1/+1
2024-03-01Changes when case folded check; 20ms fasterGravatar Jose Colon Rodriguez1-2/+12
2024-03-01Normalizer.eqlIgnoreCase compatibility caseless matchingGravatar Jose Colon Rodriguez1-13/+11
2024-02-28Using slices for decompositions in NormalizerGravatar Jose Colon Rodriguez1-1/+1
2024-02-26Using NormData nfkdGravatar Jose Colon Rodriguez1-0/+50