MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / text

Function text

native/thirdpart/tinyxml2/tixml2ex.h:465–474  ·  view source on GitHub ↗

helper function to get element text as a string, blank if none

Source from the content-addressed store, hash-verified

463
464 // helper function to get element text as a string, blank if none
465 inline std::string text (const XMLElement * element)
466 {
467 if (!element)
468 throw XmlException ("null element"s);
469
470 if (auto value = element -> GetText())
471 return std::string (value);
472 else
473 return ""s;
474 }
475
476
477 // append / prepend element

Callers

nothing calls this directly

Calls 2

XmlExceptionClass · 0.85
GetTextMethod · 0.80

Tested by

no test coverage detected