summaryrefslogtreecommitdiff
path: root/clap/codepoint_counting_writer.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Always access using full namespaceGravatar Jimmi Holst Christensen2024-10-221-4/+3
| | | | This is my new preferred style of programming Zig :)
* count codepoints instead of bytes, to determine widthGravatar owl2024-08-301-0/+102
A complete solution would be to count grapheme clusters, but that would require adding a dependency on something like zg. Counting codepoints will ensure that typical non-ASCII text is supported, but you can still throw it off with more complex Unicode constructions, which might not be so useful in help text. Fixes #75