zigstr
zigstr copied to clipboard
Zigstr is a UTF-8 string type for Zig programs.
Motivational example http://www.rosettacode.org/wiki/Substring Quite related would be the comptime-construction of indexes. The typical approach is to iterate through the string. One could save time by have a comptime lookup-table for...
This article describes the problem of alphabets where toLower and toUpper are no bijective mapping. https://www.codeproject.com/Articles/5259868/Doing-UTF-8-in-Windows-Part-2-Tolower-or-Not-to-Lo The c++ toLower function also describes the problem. see **Notes** https://en.cppreference.com/w/cpp/locale/ctype/tolower 1. Can you...