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