3 ms·
> and the stdlib has functions for working with unicode and strings. Last time I looked I don't think it did. It looks like there is a unicode namespace now, b
by thayne 3y ago
> and the stdlib has functions for working with unicode and strings.
Last time I looked I don't think it did. It looks like there is a unicode namespace now, but it is very primative. It doesn't have a simple way to iterate over codepoints, much less graphemes. Nor does it have anything to inspect the category a codepoint belongs to.
- slimsag 3y ago`std.unicode` supports validation, codepoint iteration, conversion from UTF8 <-> other encodings, etc. It doesn't have graphemes (neither does Go or Rust), or other advanced unicode support. Instead that is provided by ziglyph[0] [0] https://codeberg.org/dude_the_builder/ziglyph https://codeberg.org/dude_the_builder/ziglyph