mcpp index

compat.sheenbidi

#include

SheenBidi 3.0.0 — the Unicode bidirectional algorithm (UAX #9, Unicode 17.0.0) in C, Apache-2.0, no dependencies

#include <SheenBidi/SheenBidi.h>
mcpp add compat.sheenbidi@3.0.0

用法

來自本倉庫自己的測試專案 —— CI 真的編譯並執行過,不是為了網站寫的。

// compat.sheenbidi — the Unicode bidirectional algorithm, on text that needs it.
//
// WHAT THIS ASSERTS AND WHY
//
// The Unicode tables are most of the package: Source/Data/*Lookup.c encode the
// Unicode Character Database, and a build that compiled none of them would not
// link — but one that compiled stale ones would, and would quietly get new
// scripts wrong. So every check asks the library a question whose answer is in
// a table or in the algorithm over it:
//
//   the version            SBVersionGetString, the linked library's own string
//   bidi types             BidiTypeLookup.c — L, R, AL, EN, AN
//   Unicode 17.0.0         a Sidetic letter (new in 17.0) is R and Sidetic
//   general category       GeneralCategoryLookup.c
//   mirroring, brackets    PairingLookup.c — "(" mirrors to ")"
//   scripts                ScriptLookup.c, the script locator over mixed text
//   paragraphs             the base level from the first strong character
//   lines and runs         UAX #9 itself: runs in visual order, with levels
//   the mirror locator     which characters of a line are drawn mirrored
//   UTF-8 and UTF-16       the same answer whatever the code units
//
// A pass means the tarball's committed tables were compiled, through the unity
// …

tests/examples/sheenbidi/tests/sheenbidi.cpp · 專案 tests/examples/sheenbidi

建置

targets
sheenbidi (lib)
language
c++23
C standard
c11
import std
no
include dirs
*/Headers

原始檔 (1)

  • */Source/SheenBidi.c

版本

版本平台 鏡像sha256
3.0.0 最新 LinuxWindowsmacOS CN GLOBAL 86c560140347…