| 788 | } |
| 789 | |
| 790 | void TiXmlDocument::SetError( int err, const char* pError, TiXmlParsingData* data, TiXmlEncoding encoding ) |
| 791 | { |
| 792 | // The first error in a chain is more accurate - don't set again! |
| 793 | if ( error ) |
| 794 | return; |
| 795 | |
| 796 | assert( err > 0 && err < TIXML_ERROR_STRING_COUNT ); |
| 797 | error = true; |
| 798 | errorId = err; |
| 799 | errorDesc = errorString[ errorId ]; |
| 800 | |
| 801 | errorLocation.Clear(); |
| 802 | if ( pError && data ) |
| 803 | { |
| 804 | data->Stamp( pError, encoding ); |
| 805 | errorLocation = data->Cursor(); |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | |
| 810 | TiXmlNode* TiXmlNode::Identify( const char* p, TiXmlEncoding encoding ) |
no test coverage detected