mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-16 21:15:23 +03:00
d68f39b541
Originally inspired by Go's `utf8.Valid` function. Includes some test cases from Go's test suite. Further optimized to be faster in all tested cases (short/long ascii/UTF8), in all release modes. Takes advantage of SIMD for the ASCII fast path.