How nemtrif/utfcpp works
UTF8-CPP is a header-only, generic C++ library for working with UTF-8 and UTF-16 text. A typical caller supplies text or iterators, then validates or repairs encoded input, traverses code points, or converts between UTF-8, UTF-16, and UTF-32. The checked API provides validation and error reporting; the unchecked API offers a separate unchecked path. Standard-version headers add string and view conveniences. The graph reflects the README and indexed imports; unsampled implementation details are not inferred.
Main entry points: utf8.h Header Facade · checked.h Checked Operations · unchecked.h Unchecked Operations · cpp11.h C++11 Strings
Components 8
UTF APIs
- Header Facade
source/utf8.h - Checked Operations
source/utf8/checked.h - Unchecked Operations
source/utf8/unchecked.h
Encoding Engine
- Decode and Validate
source/utf8/core.h
C++ Wrappers
- C++11 Strings
source/utf8/cpp11.h - C++17 Views
source/utf8/cpp17.h - C++20 UTF-8
source/utf8/cpp20.h
Other components
- C++ Caller
Connections 8
- C++ Caller → Header Facade: uses
README.md - Header Facade → Checked Operations: includes
source/utf8.h - Header Facade → Unchecked Operations: includes
source/utf8.h - Checked Operations → Decode and Validate: validates with
source/utf8/checked.h - Unchecked Operations → Decode and Validate: uses internals
source/utf8/unchecked.h - C++11 Strings → Checked Operations: wraps
source/utf8/cpp11.h - C++17 Views → C++11 Strings: extends
source/utf8/cpp17.h - C++20 UTF-8 → C++17 Views: extends
source/utf8/cpp20.h