X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..374ca955a76ecab1204ca8bfa63ff9238d998416:/icuSources/samples/xml2txt/DOMTreeErrorReporter.cpp diff --git a/icuSources/samples/xml2txt/DOMTreeErrorReporter.cpp b/icuSources/samples/xml2txt/DOMTreeErrorReporter.cpp deleted file mode 100644 index 9e503e39..00000000 --- a/icuSources/samples/xml2txt/DOMTreeErrorReporter.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/****************************************************************************** - * Copyright (C) 2002, International Business Machines Corporation and - * others. All Rights Reserved. - ******************************************************************************/ -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- -#include -#include "DOMTreeErrorReporter.hpp" -#include -#include -#include -#include - -extern ostream& operator<<(ostream& target, const DOMString& s); - -void DOMTreeErrorReporter::warning(const SAXParseException&) -{ -} - -void DOMTreeErrorReporter::error(const SAXParseException& toCatch) -{ - fSawErrors = true; - cerr << "Error at file \"" << DOMString(toCatch.getSystemId()) - << "\", line " << toCatch.getLineNumber() - << ", column " << toCatch.getColumnNumber() - << "\n Message: " << DOMString(toCatch.getMessage()) << endl; -} - -void DOMTreeErrorReporter::fatalError(const SAXParseException& toCatch) -{ - fSawErrors = true; - cerr << "Fatal Error at file \"" << DOMString(toCatch.getSystemId()) - << "\", line " << toCatch.getLineNumber() - << ", column " << toCatch.getColumnNumber() - << "\n Message: " << DOMString(toCatch.getMessage()) << endl; -} - -void DOMTreeErrorReporter::resetErrors() -{ -}