summaryrefslogtreecommitdiff
path: root/src/Graphemes.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-09-14Update codebase to Zig 0.15.1.Gravatar Michael Chaten1-3/+1
Removes compression support
2025-06-01Add graphemeAtIndex + iterate before and afterGravatar Sam Atman1-73/+147
That completes the set. I do think it's possible to bum a few more cycles from the implementation, but, I'm not going to. It passes the acceptance suite and that's what it needs to do.
2025-05-23Make offset size configurableGravatar Sam Atman1-9/+11
Hopefully I can talk users out of taking advantage of this configuration but I'll have better luck with that if it's available.
2025-05-15Begin conformance testGravatar Sam Atman1-0/+22
I'm not sure the details of this strategy can actually be made to work. But, something can.
2025-05-15Vastly simplify peek()Gravatar Sam Atman1-60/+3
Idiomatic Zig takes awhile, what can I say (yes I wrote the first one).
2025-05-15feat: add reverse grapheme iteratorGravatar Matteo Romano1-0/+220
Closes #53
2025-05-12fix: State.unset* did toggle the bit instead of unsetting itGravatar Matteo Romano1-3/+3
2025-04-30Setup variants for all allocating modulesGravatar Sam Atman1-15/+17
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.
2025-04-30grapheme now Graphemes, Data files goneGravatar Sam Atman1-0/+0
2025-04-30Factor out 'Data' for grapheme and DisplayWidthGravatar Sam Atman1-10/+99
In the process of refactoring the whole library, so that it doesn't expose anything called "Data" separately from user functionality.
2025-04-29Add general tests stepGravatar Sam Atman1-1/+1
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.
2025-04-29Bump copyright year, isolate iterator testsGravatar Sam Atman1-13/+18
2024-11-02Add peek() to Grapheme.IteratorGravatar Sam Atman1-0/+69
This does the expected thing: returns the next ?Grapheme without mutation of the iteration state.
2024-04-11grapheme: export grapheme.State structGravatar Tim Culverhouse1-1/+1
The public function `graphemeBreak` requires a reference to a State struct, however this type is not exported. Export the type to allow users of zg to use this type and call graphemeBreak.
2024-03-28Split out Unicode tests to separate fileGravatar Jose Colon Rodriguez1-65/+0
2024-03-27ScriptsData and made all Datas constGravatar Jose Colon Rodriguez1-2/+2
2024-03-26GraphemeData and Normalize non-pub fnsGravatar Jose Colon Rodriguez1-7/+7
2024-02-26Using separate data struct model.Gravatar Jose Colon Rodriguez1-41/+32
2024-02-19Cleaned up directory structureGravatar Jose Colon Rodriguez1-1/+1
2024-02-18Grapheme -> graphemeGravatar Jose Colon Rodriguez1-0/+0
2024-02-18Testing Ghostty's Utf8Decoder. A bit slowerGravatar Jose Colon Rodriguez1-14/+2
2024-02-18Code point code is now a method not a field.Gravatar Jose Colon Rodriguez1-2/+14
2024-02-18Code point and grapheme are now namespaces.Gravatar Jose Colon Rodriguez1-35/+32
2024-02-17display_width tweaksGravatar Jose Colon Rodriguez1-65/+71
2024-02-17GraphemeIterator ASCII optimization 3x fasterGravatar Jose Colon Rodriguez1-37/+42
2024-02-15build.zig module reorgGravatar Jose Colon Rodriguez1-2/+1
2024-02-15Removed inline from fnsGravatar Jose Colon Rodriguez1-11/+11
2024-02-15New single byte props tableGravatar Jose Colon Rodriguez1-27/+31
2024-02-14Combinedd Indic ifsGravatar Jose Colon Rodriguez1-17/+2
2024-02-14emoji direct array accessGravatar Jose Colon Rodriguez1-2/+4
2024-02-14gbp and indic direct array accessGravatar Jose Colon Rodriguez1-42/+47
2024-02-14Passing Unicode 15.1.0 Grapheme Break TestsGravatar Jose Colon Rodriguez1-21/+51
2024-02-14Removed readCodePoint and StreamingGraphemeIteratorGravatar Jose Colon Rodriguez1-182/+0
2024-02-14Removed unreachables from GraphemeGravatar Jose Colon Rodriguez1-10/+10
2024-02-14Code reorg; Added UCDGravatar Jose Colon Rodriguez1-11/+29
2024-02-13Removed unreachables from CodePointIteratorGravatar Jose Colon Rodriguez1-1/+1
2024-02-13Using emoji tableGravatar Jose Colon Rodriguez1-1/+2
2024-02-13Passing ziglyph testsGravatar Jose Colon Rodriguez1-3/+245
2024-02-12Flat arrayGravatar Jose Colon Rodriguez1-5/+2
2024-02-12Using Trie super slowGravatar Jose Colon Rodriguez1-2/+5