diff options
| author | 2024-08-30 12:23:33 +0200 | |
|---|---|---|
| committer | 2024-08-30 16:46:05 +0200 | |
| commit | 70bc70375f8e82843830d93631ab005302057a15 (patch) | |
| tree | 0553ae38d11a3d52696c898fceafd312e7ff284a /clap/parsers.zig | |
| parent | feat: Allow for the assignment separator to be configured (diff) | |
| download | zig-clap-70bc70375f8e82843830d93631ab005302057a15.tar.gz zig-clap-70bc70375f8e82843830d93631ab005302057a15.tar.xz zig-clap-70bc70375f8e82843830d93631ab005302057a15.zip | |
count codepoints instead of bytes, to determine width
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
Diffstat (limited to 'clap/parsers.zig')
0 files changed, 0 insertions, 0 deletions