summaryrefslogtreecommitdiff
path: root/src/FoldData.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove FoldData, make CaseFoldingGravatar Sam Atman2025-04-301-99/+0
| | | | | CaseFolding now has the FoldData, and can be initialized with a copy of Normalize if wanted.
* Merge NormData with NormalizeGravatar Sam Atman2025-04-301-39/+39
|
* All the std.mem.Allocators that were stored just for init and deinitGravatar lch3612025-04-291-7/+6
| | | | methods were removed, mem.Allocators were added to deinit as arguments.
* Fix leak of cwcf_exceptions in FoldDataGravatar Ryan Liptak2024-12-041-0/+2
| | | | Closes #20
* FoldData: Minimize Changes_When_Casefolded dataGravatar Ryan Liptak2024-06-271-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
* Removed all inlinesGravatar Jose Colon Rodriguez2024-06-261-4/+6
|
* Added changes when casefolded backGravatar Jose Colon Rodriguez2024-06-261-2/+6
|
* Implemented sqeek502s case foldGravatar Jose Colon Rodriguez2024-06-261-35/+51
|
* Updated READMEGravatar Jose Colon Rodriguez2024-03-311-3/+2
|
* PropsData and errdefers for init fnsGravatar Jose Colon Rodriguez2024-03-281-0/+8
|
* ScriptsData and made all Datas constGravatar Jose Colon Rodriguez2024-03-271-1/+1
|
* Changes when case folded check; 20ms fasterGravatar Jose Colon Rodriguez2024-03-011-2/+12
|
* Normalizer.eqlIgnoreCase compatibility caseless matchingGravatar Jose Colon Rodriguez2024-03-011-0/+48