MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SetError

Method SetError

ogsr_engine/xrCore/XML_Parser/tinyxmlparser.cpp:769–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769void TiXmlDocument::SetError(int err, const char* pError, TiXmlParsingData* data, TiXmlEncoding encoding)
770{
771 // The first error in a chain is more accurate - don't set again!
772 if (error)
773 return;
774
775 assert(err > 0 && err < TIXML_ERROR_STRING_COUNT);
776 error = true;
777 errorId = err;
778 errorDesc = errorString[errorId];
779
780 errorLocation.Clear();
781 if (pError && data)
782 {
783 data->Stamp(pError, encoding);
784 errorLocation = data->Cursor();
785 }
786}
787
788TiXmlNode* TiXmlNode::Identify(const char* p, TiXmlEncoding encoding)
789{

Callers 9

LinkEndChildMethod · 0.80
InsertEndChildMethod · 0.80
InsertBeforeChildMethod · 0.80
InsertAfterChildMethod · 0.80
SetAttributeMethod · 0.80
IdentifyMethod · 0.80
StreamInMethod · 0.80
ParseMethod · 0.80
ReadValueMethod · 0.80

Calls 2

StampMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected