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