summaryrefslogtreecommitdiff
path: root/src/Words.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update codebase to Zig 0.15.1.Gravatar Michael Chaten2025-09-141-3/+1
| | | | Removes compression support
* Add Words.zig example to READMEGravatar Sam Atman2025-07-081-0/+17
|
* Add graphemeAtIndex + iterate before and afterGravatar Sam Atman2025-06-011-2/+2
| | | | | | 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.
* Make offset size configurableGravatar Sam Atman2025-05-231-6/+8
| | | | | Hopefully I can talk users out of taking advantage of this configuration but I'll have better luck with that if it's available.
* Add iterateBefore and iterateAfterGravatar Sam Atman2025-05-231-32/+66
| | | | | | | | | | | | | | These create reverse or forward iterators before or after a Word. So this way, the user can get the word at an index, then iterate forward or back from that word. Also: Fixes #59 Which was fixed awhile back, but I don't feel like doing repo surgery to tag the fix where it happened. We have blame for that kind of thing.
* Words moduleGravatar Sam Atman2025-05-161-21/+21
| | | | | | In keeping with the new nomenclature, we're calling the module "Words", not "WordBreak". The latter is Unicode jargon, the module provides word iterators. Words are the figure, word breaks are the ground.
* Move WordBreak to WordsGravatar Sam Atman2025-05-161-0/+720