MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / ToUnsigned64

Method ToUnsigned64

externals/tinyxml2/tinyxml2.cpp:692–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691
692bool XMLUtil::ToUnsigned64(const char* str, uint64_t* value) {
693 unsigned long long v = 0; // horrible syntax trick to make the compiler happy about %llu
694 if(TIXML_SSCANF(str, IsPrefixHex(str) ? "%llx" : "%llu", &v) == 1) {
695 *value = static_cast<uint64_t>(v);
696 return true;
697 }
698 return false;
699}
700
701
702char* XMLDocument::Identify( char* p, XMLNode** node, bool first )

Callers

nothing calls this directly

Calls 1

IsPrefixHexFunction · 0.85

Tested by

no test coverage detected