MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / FormatCodePoint

Function FormatCodePoint

data/dictionary/DictionaryCompatibilityIdeographsTest.cpp:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71std::string FormatCodePoint(uint32_t codePoint) {
72 char buffer[11];
73 snprintf(buffer, sizeof(buffer), "U+%04X", codePoint);
74 return buffer;
75}
76
77bool IsCjkCompatibilityIdeograph(uint32_t codePoint) {
78 return (codePoint >= 0xF900 && codePoint <= 0xFAFF) ||

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected