MCPcopy Create free account
hub / github.com/MyGUI/mygui / parseUnicode

Function parseUnicode

MyGUIEngine/src/msdfgen/main.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156#ifdef MSDFGEN_EXTENSIONS
157static bool parseUnicode(unicode_t &unicode, const char *arg) {
158 unsigned uuc;
159 if (parseUnsignedDecOrHex(uuc, arg)) {
160 unicode = uuc;
161 return true;
162 }
163 if (arg[0] == '\'' && arg[1] && arg[2] == '\'' && !arg[3]) {
164 unicode = (unicode_t) (unsigned char) arg[1];
165 return true;
166 }
167 return false;
168}
169
170#ifndef MSDFGEN_DISABLE_VARIABLE_FONTS
171static FontHandle *loadVarFont(FreetypeHandle *library, const char *filename) {

Callers 1

mainFunction · 0.85

Calls 1

parseUnsignedDecOrHexFunction · 0.85

Tested by

no test coverage detected