| 767 | } |
| 768 | |
| 769 | void 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 | |
| 788 | TiXmlNode* TiXmlNode::Identify(const char* p, TiXmlEncoding encoding) |
| 789 | { |
no test coverage detected