compat.utf8proc
#includeClean, small, and portable C library for processing UTF-8 Unicode data
#include <utf8proc.h>
mcpp add compat.utf8proc@2.10.0
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
#include <utf8proc.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <string_view>
namespace {
bool Expect(bool ok, const char* msg) {
if (!ok) {
std::cerr << "FAIL: " << msg << "\n";
}
return ok;
}
} // namespace
int main() {
bool ok = true;
// …
tests/examples/utf8proc/tests/utf8proc.cpp · 项目 tests/examples/utf8proc
构建
- targets
utf8proc (lib)- language
c++23- C standard
c11- import std
- no
- include dirs
*
特性
| 特性 | 声明了 |
|---|---|
| default | implies |
| staticlib | defines |
源文件 (1)
*/utf8proc.c