summaryrefslogtreecommitdiff
path: root/codegen/fold.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-11-08Use takeDelimiterInclusive to support Zig 0.15.2Gravatar Jay1-2/+4
2025-09-14Embed data files in scripts rather than relying on filesystem access for ↵Gravatar Michael Chaten1-9/+4
easier packaging
2025-09-14Update codebase to Zig 0.15.1.Gravatar Michael Chaten1-27/+32
Removes compression support
2024-06-27FoldData: Minimize Changes_When_Casefolded dataGravatar Ryan Liptak1-3/+18
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-26Implements new case fold data encoding by @sqeek502 #8Gravatar Jose Colon Rodriguez1-5/+6
2024-06-26Added changes when casefolded backGravatar Jose Colon Rodriguez1-31/+49
2024-06-26Implemented sqeek502s case foldGravatar Jose Colon Rodriguez1-97/+192
2024-03-31Updated READMEGravatar Jose Colon Rodriguez1-3/+2
2024-03-01Changes when case folded check; 20ms fasterGravatar Jose Colon Rodriguez1-3/+51
2024-03-01Normalizer.eqlIgnoreCase compatibility caseless matchingGravatar Jose Colon Rodriguez1-18/+26
2024-02-26Using NormData and CanonData in NormalizerGravatar Jose Colon Rodriguez1-0/+68