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

Function readDouble

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

Source from the content-addressed store, hash-verified

69}
70
71static bool readDouble(double &output, const char *&pathDef) {
72 skipExtraChars(pathDef);
73 char *end = NULL;
74 output = strtod(pathDef, &end);
75 if (end > pathDef) {
76 pathDef = end;
77 return true;
78 }
79 return false;
80}
81
82static bool readCoord(Point2 &output, const char *&pathDef) {
83 return readDouble(output.x, pathDef) && readDouble(output.y, pathDef);

Callers 6

readCoordFunction · 0.85
buildShapeFromSvgPathFunction · 0.85
loadSvgShapeFunction · 0.85
xmlGetDoubleFunction · 0.85
readTransformationOpFunction · 0.85
elementAttributeMethod · 0.85

Calls 1

skipExtraCharsFunction · 0.85

Tested by

no test coverage detected