Registry / utility / utfcpp

utfcpp

JSON →
library4.1.0vcpkgunverified

UTF-8 with C++ in a Portable Way — a simple, lightweight library for handling UTF-8 encoded strings.

vcpkg install utfcpp
INSTALL
IMPORT
SIG · UTFCPP
U
utfcpp
utilitycppv4.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

utf8.h
✓ #include <utf8.h>

Validate a UTF-8 string.

#include <utf8.h> #include <iostream> #include <string> int main() { std::string utf8_string = u8"Hello, 世界"; std::string::iterator end = utf8::find_invalid(utf8_string.begin(), utf8_string.end()); if (end == utf8_string.end()) { std::cout << "Valid UTF-8" << std::endl; } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.1.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

utfcpp — pip install utfcpp · libregistry