A modern C++23 library for safe, convenient UTF-8 string & character handling.
- Complete
UTF8Char&UTF8Stringtypes - Full Unicode-aware operations:
- Character classification (
is_alpha,is_digit,is_space, etc.) - Case conversion (
to_upper,to_lower) - Substring, trim, concatenation, comparison
- Iteration & index access by Unicode code points
- Character classification (
- Zero-overhead view-like design
- Clean C++23 module interface
- No external dependencies
- C++23 or later
- Compiler with modules support:
- GCC 14+
- Clang 17+
- MSVC (VS 2022)
g++ -std=c++23 -fmodules core.hpp test.cpp -o test
./testimport std;
import utf8;
int main() {
utf8::UTF8String str(u8"Hello 你好 🌍");
std::println("{}", str);
std::println("length (code points): {}", str.size());
}- azhz1107cat
- Satklomi
MIT