summaryrefslogtreecommitdiff
path: root/src/Normalize.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allocation Failure TestsGravatar Sam Atman2025-04-301-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.
* Setup variants for all allocating modulesGravatar Sam Atman2025-04-301-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.
* Remove FoldData, make CaseFoldingGravatar Sam Atman2025-04-301-1/+15
| | | | | CaseFolding now has the FoldData, and can be initialized with a copy of Normalize if wanted.
* Merge NormData with NormalizeGravatar Sam Atman2025-04-301-85/+108
|
* Factor out 'Data' for grapheme and DisplayWidthGravatar Sam Atman2025-04-301-15/+14
| | | | | In the process of refactoring the whole library, so that it doesn't expose anything called "Data" separately from user functionality.
* Add general tests stepGravatar Sam Atman2025-04-291-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.
* Add result.toOwned() to Normalize.zigGravatar Sam Atman2025-04-291-0/+9
| | | | | | Closes #29 The README is also updated to reflect this change.
* All the std.mem.Allocators that were stored just for init and deinitGravatar lch3612025-04-291-5/+5
| | | | methods were removed, mem.Allocators were added to deinit as arguments.
* Normalize: Mark utf8Encode errors as unreachable, use explicit error setsGravatar Ryan Liptak2024-06-251-11/+11
| | | | These utf8Encode calls are converting normalized codepoints back into UTF-8, so the codepoints can be assumed to be valid.
* NormData init now takes pointer to uninitialized Self to avoid stack copy ↵Gravatar Jose Colon Rodriguez2024-04-021-8/+16
| | | | issues.
* Updated READMEGravatar Jose Colon Rodriguez2024-03-311-41/+0
|
* Split out Unicode tests to separate fileGravatar Jose Colon Rodriguez2024-03-281-120/+1
|
* ScriptsData and made all Datas constGravatar Jose Colon Rodriguez2024-03-271-29/+29
|
* GraphemeData and Normalize non-pub fnsGravatar Jose Colon Rodriguez2024-03-261-6/+6
|
* Rename CaseFold and NormalizeGravatar Jose Colon Rodriguez2024-03-231-0/+774