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

Function readNodeType

MyGUIEngine/src/msdfgen/ext/import-svg.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static bool readNodeType(char &output, const char *&pathDef) {
61 skipExtraChars(pathDef);
62 char nodeType = *pathDef;
63 if (nodeType && nodeType != '+' && nodeType != '-' && nodeType != '.' && nodeType != ',' && (nodeType < '0' || nodeType > '9')) {
64 ++pathDef;
65 output = nodeType;
66 return true;
67 }
68 return false;
69}
70
71static bool readDouble(double &output, const char *&pathDef) {
72 skipExtraChars(pathDef);

Callers 1

buildShapeFromSvgPathFunction · 0.85

Calls 1

skipExtraCharsFunction · 0.85

Tested by

no test coverage detected