summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Various small iterator improvementswork-branchGravatar Sam Atman2025-05-131-9/+46
|
* Add reverse CodePoint iteratorGravatar Sam Atman2025-05-091-6/+75
|
* Make DisplayWidth.setup publicv0.14.0-rc2Gravatar Sam Atman2025-05-041-1/+7
| | | | Also adds setupWithGraphemes variant.
* Remove inner setup from GeneralCategoriesGravatar Sam Atman2025-05-012-11/+2
| | | | | It was one `try` block away from only returning Allocator.Error, so now there's no need to filter errors in an outer `catch`.
* ProofreadsGravatar Sam Atman2025-05-011-1/+1
|
* ProofreadsGravatar Sam Atman2025-05-011-3/+3
|
* ProofreadsGravatar Sam Atman2025-05-011-1/+1
|
* ProofreadsGravatar Sam Atman2025-05-012-1/+6
|
* Version set for rc1v0.14.0-rc1Gravatar Sam Atman2025-05-012-2/+2
| | | | Closes #52
* Update CONTRIBUTORS.md, update build.zig.zonGravatar Sam Atman2025-04-306-311/+43
| | | | | Also replaces the obsolete HTML/CSS version of the Unicode License with the plain text version found on unicode.org.
* Update Unicode version in README.mdGravatar Sam Atman2025-04-302-2/+3
| | | | | | | Lets me slip these in: Closes #12 Closes #14
* Unicode 16.0Gravatar Sam Atman2025-04-3075-12492/+76568
| | | | | Went smoothly, needed to add some scripts and adjust the magic numbers, but other than that, all set.
* Allocation Failure TestsGravatar Sam Atman2025-04-3012-105/+279
| | | | | | | | | | 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-308-146/+248
| | | | | | | | 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.
* Update README.md to new APIGravatar Sam Atman2025-04-302-115/+121
|
* Rest of the RenamingsGravatar Sam Atman2025-04-306-38/+38
| | | | These get different names, but don't otherwise change.
* Remove FoldData, make CaseFoldingGravatar Sam Atman2025-04-305-176/+220
| | | | | CaseFolding now has the FoldData, and can be initialized with a copy of Normalize if wanted.
* Merge NormData with NormalizeGravatar Sam Atman2025-04-3011-299/+274
|
* grapheme now Graphemes, Data files goneGravatar Sam Atman2025-04-305-195/+6
|
* Factor out 'Data' for grapheme and DisplayWidthGravatar Sam Atman2025-04-309-169/+384
| | | | | 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-298-44/+204
| | | | | | 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-292-2/+22
| | | | | | Closes #29 The README is also updated to reflect this change.
* README.md was updated to reflect last changes in API.Gravatar lch3612025-04-291-13/+13
|
* All the std.mem.Allocators that were stored just for init and deinitGravatar lch3612025-04-2915-102/+86
| | | | methods were removed, mem.Allocators were added to deinit as arguments.
* Bump copyright year, isolate iterator testsGravatar Sam Atman2025-04-292-14/+19
|
* Add c0 and c1 control width optionsGravatar Sam Atman2025-03-205-42/+63
| | | | | | | This allows a build of DisplayWidth to give characters in those classes a width, for cases where they'll be printed with a substitute in the final display. It also raises the size of possible characters from an i3 to an i4, to accommodate printing C1s as e.g. <80> or \u{80}.
* Update LICENSE, add CONTRIBUTORS.mdGravatar Sam Atman2025-03-202-0/+15
|
* Version bump for 0.14 compatibilityv0.13.5Gravatar Sam Atman2025-03-202-2/+2
|
* Merge pull request 'zon update on Zig 0.14.0' (#27) from TUSF/zg:zig-0.14.0 ↵Gravatar atman2025-03-211-2/+3
|\ | | | | | | | | | | into master Reviewed-on: https://codeberg.org/atman/zg/pulls/27
| * zon update on Zig 0.14.0Gravatar Jeremia Dominguez2025-03-051-2/+3
|/
* Merge pull request 'fix removed b.host on v0.14.0-dev.2568+42dac40b3' (#25) ↵Gravatar atman2025-01-261-16/+16
|\ | | | | | | | | | | from e0328eric/zg:master into master Reviewed-on: https://codeberg.org/atman/zg/pulls/25
| * fix removed b.host on v0.14.0-dev.2568+42dac40b3Gravatar Sungbae Jeong2024-12-281-16/+16
|/
* README + zon update v0.13.4v0.13.4Gravatar Sam Atman2024-12-132-6/+6
|
* Merge pull request 'Fix leak of cwcf_exceptions in FoldData' (#21) from ↵Gravatar atman2024-12-131-0/+2
|\ | | | | | | | | | | squeek502/zg:folddata-leak into master Reviewed-on: https://codeberg.org/atman/zg/pulls/21
| * Fix leak of cwcf_exceptions in FoldDataGravatar Ryan Liptak2024-12-041-0/+2
|/ | | | Closes #20
* Update URL in READMEGravatar Sam Atman2024-11-261-14/+38
| | | | Also documents the `cjk` option, and how to enable it.
* Update README.mdGravatar dude_the_builder2024-11-111-4/+0
|
* Needs MaintainerGravatar Jose Colon Rodriguez2024-11-081-0/+4
|
* Updated rEADMEGravatar Jose Colon Rodriguez2024-11-031-2/+2
|
* Merge pull request 'grapheme-peek' (#18) from atman/zg:grapheme-peek into masterGravatar Jose Colon2024-11-032-8/+103
|\ | | | | | | Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/18
| * Add peek() to Grapheme.IteratorGravatar Sam Atman2024-11-022-0/+95
| | | | | | | | | | This does the expected thing: returns the next ?Grapheme without mutation of the iteration state.
| * Replace deprecated uses of std.mem.splitGravatar Sam Atman2024-11-021-8/+8
|/
* Merge pull request 'GraphemeData and WidthData: make init read errors ↵Gravatar Jose Colon2024-10-202-12/+12
|\ | | | | | | | | | | unreachable and define return errorset' (#16) from rockorager/zg:master into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/16
| * WidthData: define error set as mem.Allocator.ErrorGravatar Tim Culverhouse2024-10-141-5/+5
| | | | | | | | | | | | | | The reader is a static embedded file. All of the reads are readInt. This function should not ever fail at runtime with a read error. Make all read errors unreachable, leaving only allocation errors as the error set.
| * GraphemeData: define error set as mem.Allocator.ErrorGravatar Tim Culverhouse2024-10-141-7/+7
|/ | | | | | | The reader is a static embedded file. All of the reads are either a readInt or a readAll into a previously allocated buffer. This function should not ever fail at runtime with a read error. Make all read errors unreachable, leaving only allocation errors as the error set.
* Fixed benchmark duration printingGravatar Jose Colon Rodriguez2024-07-1812-23/+23
|
* Merge pull request 'refactor CodePoint.Iterator into a reusable fn' (#11) ↵Gravatar Jose Colon2024-07-061-57/+79
|\ | | | | | | | | | | from lygaret/zg:master into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/11
| * refactor CodePoint.Iterator into a reusable fnGravatar Jonathan Raphaelson2024-07-051-57/+79
|/ | | | | | without changing the algorithm at all, move the responsibility of decoding a u8 slice out of the iterator, and into a reusable function so that it can be used by consumers of the library
* README updata to v0.13.2v0.13.2Gravatar Jose Colon Rodriguez2024-06-281-1/+1
|
* Merge pull request 'bench: Fix for Windows and use fmtDuration' (#9) from ↵Gravatar Jose Colon2024-06-2712-71/+71
|\ | | | | | | | | | | squeek502/zg:bench-windows-and-fmt into master Reviewed-on: https://codeberg.org/dude_the_builder/zg/pulls/9