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