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

Function xmlDecode

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

Source from the content-addressed store, hash-verified

376}
377
378static std::string xmlDecode(const char *start, const char *end) {
379 if (!dropXML::decode(start, end, nullptr, nullptr)) {
380 std::string buffer(end-start+1, '\0');
381 if (!dropXML::decode(start, end, &buffer[0], &buffer[buffer.size()-1]))
382 return std::string();
383 if (start == buffer.data()) {
384 buffer.resize(end-start, '\0');
385 return (std::string &&) buffer;
386 }
387 }
388 return std::string(start, end);
389}
390
391static double xmlGetDouble(const char *start, const char *end) {
392 double x = 0;

Callers 2

xmlGetDoubleFunction · 0.85
loadSvgShapeFunction · 0.85

Calls 3

sizeMethod · 0.45
dataMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected