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

Function xmlGetDouble

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

Source from the content-addressed store, hash-verified

389}
390
391static double xmlGetDouble(const char *start, const char *end) {
392 double x = 0;
393 std::string decodedStr(xmlDecode(start, end));
394 const char *strPtr = decodedStr.c_str();
395 readDouble(x, strPtr);
396 return x;
397}
398
399#define SVG_NAME_IS(x) matchName(nameStart, nameEnd, x)
400#define SVG_DEC_VAL() xmlDecode(valueStart, valueEnd)

Callers 1

elementAttributeMethod · 0.85

Calls 3

xmlDecodeFunction · 0.85
readDoubleFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected