From 191c6b9115e608cb79f54d9852745bbef8d752cd Mon Sep 17 00:00:00 2001 From: Tinny Ng <tng@apache.org> Date: Thu, 9 Jan 2003 19:07:44 +0000 Subject: [PATCH] [Bug 15802] Add "const" qualifier to getURIText. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174604 13f79535-47bb-0310-9956-ffa450edef68 --- src/xercesc/dom/deprecated/DOMParser.cpp | 2 +- src/xercesc/dom/deprecated/DOMParser.hpp | 2 +- src/xercesc/parsers/SAX2XMLReaderImpl.hpp | 7 +++++-- src/xercesc/parsers/SAXParser.cpp | 5 ++++- src/xercesc/parsers/SAXParser.hpp | 5 ++++- src/xercesc/parsers/XercesDOMParser.cpp | 2 +- src/xercesc/parsers/XercesDOMParser.hpp | 2 +- src/xercesc/sax2/SAX2XMLReader.hpp | 5 ++++- 8 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/xercesc/dom/deprecated/DOMParser.cpp b/src/xercesc/dom/deprecated/DOMParser.cpp index 00395c470..a8476d834 100644 --- a/src/xercesc/dom/deprecated/DOMParser.cpp +++ b/src/xercesc/dom/deprecated/DOMParser.cpp @@ -263,7 +263,7 @@ Grammar* DOMParser::getRootGrammar() return fScanner->getRootGrammar(); } -const XMLCh* DOMParser::getURIText(unsigned int uriId) +const XMLCh* DOMParser::getURIText(unsigned int uriId) const { return fScanner->getURIText(uriId); } diff --git a/src/xercesc/dom/deprecated/DOMParser.hpp b/src/xercesc/dom/deprecated/DOMParser.hpp index ff5738cca..a1e49db79 100644 --- a/src/xercesc/dom/deprecated/DOMParser.hpp +++ b/src/xercesc/dom/deprecated/DOMParser.hpp @@ -446,7 +446,7 @@ public : * @param uriId id of the string in the URI string pool. * @return URI string corresponding to the URI id. */ - const XMLCh* getURIText(unsigned int uriId); + const XMLCh* getURIText(unsigned int uriId) const; /** * Returns the current src offset within the input source. diff --git a/src/xercesc/parsers/SAX2XMLReaderImpl.hpp b/src/xercesc/parsers/SAX2XMLReaderImpl.hpp index d8f52656d..3f0a64638 100644 --- a/src/xercesc/parsers/SAX2XMLReaderImpl.hpp +++ b/src/xercesc/parsers/SAX2XMLReaderImpl.hpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.17 2003/01/09 19:07:08 tng + * [Bug 15802] Add "const" qualifier to getURIText. + * * Revision 1.16 2002/12/23 15:23:18 knoaman * Added a public api to various parsers to return the src offset within the input * source. @@ -651,7 +654,7 @@ public : * @param uriId id of the string in the URI string pool. * @return URI string corresponding to the URI id. */ - virtual const XMLCh* getURIText(unsigned int uriId); + virtual const XMLCh* getURIText(unsigned int uriId) const; /** * Returns the current src offset within the input source. @@ -1827,7 +1830,7 @@ inline Grammar* SAX2XMLReaderImpl::getRootGrammar() return fScanner->getRootGrammar(); } -inline const XMLCh* SAX2XMLReaderImpl::getURIText(unsigned int uriId) +inline const XMLCh* SAX2XMLReaderImpl::getURIText(unsigned int uriId) const { return fScanner->getURIText(uriId); } diff --git a/src/xercesc/parsers/SAXParser.cpp b/src/xercesc/parsers/SAXParser.cpp index 77778cdcb..9338357d9 100644 --- a/src/xercesc/parsers/SAXParser.cpp +++ b/src/xercesc/parsers/SAXParser.cpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.14 2003/01/09 19:07:08 tng + * [Bug 15802] Add "const" qualifier to getURIText. + * * Revision 1.13 2003/01/03 20:09:36 tng * New feature StandardUriConformant to force strict standard uri conformance. * @@ -465,7 +468,7 @@ Grammar* SAXParser::getRootGrammar() return fScanner->getRootGrammar(); } -const XMLCh* SAXParser::getURIText(unsigned int uriId) +const XMLCh* SAXParser::getURIText(unsigned int uriId) const { return fScanner->getURIText(uriId); } diff --git a/src/xercesc/parsers/SAXParser.hpp b/src/xercesc/parsers/SAXParser.hpp index 817af0001..ac20a4076 100644 --- a/src/xercesc/parsers/SAXParser.hpp +++ b/src/xercesc/parsers/SAXParser.hpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.19 2003/01/09 19:07:08 tng + * [Bug 15802] Add "const" qualifier to getURIText. + * * Revision 1.18 2003/01/03 20:09:36 tng * New feature StandardUriConformant to force strict standard uri conformance. * @@ -537,7 +540,7 @@ public : * @param uriId id of the string in the URI string pool. * @return URI string corresponding to the URI id. */ - const XMLCh* getURIText(unsigned int uriId); + const XMLCh* getURIText(unsigned int uriId) const; /** * Returns the current src offset within the input source. diff --git a/src/xercesc/parsers/XercesDOMParser.cpp b/src/xercesc/parsers/XercesDOMParser.cpp index 097057460..f69902d9c 100644 --- a/src/xercesc/parsers/XercesDOMParser.cpp +++ b/src/xercesc/parsers/XercesDOMParser.cpp @@ -120,7 +120,7 @@ Grammar* XercesDOMParser::getRootGrammar() return getScanner()->getRootGrammar(); } -const XMLCh* XercesDOMParser::getURIText(unsigned int uriId) +const XMLCh* XercesDOMParser::getURIText(unsigned int uriId) const { return getScanner()->getURIText(uriId); } diff --git a/src/xercesc/parsers/XercesDOMParser.hpp b/src/xercesc/parsers/XercesDOMParser.hpp index 4b06cce23..a8feab526 100644 --- a/src/xercesc/parsers/XercesDOMParser.hpp +++ b/src/xercesc/parsers/XercesDOMParser.hpp @@ -199,7 +199,7 @@ public : * @param uriId id of the string in the URI string pool. * @return URI string corresponding to the URI id. */ - const XMLCh* getURIText(unsigned int uriId); + const XMLCh* getURIText(unsigned int uriId) const; /** * Returns the current src offset within the input source. diff --git a/src/xercesc/sax2/SAX2XMLReader.hpp b/src/xercesc/sax2/SAX2XMLReader.hpp index a60232739..1cea8cf3a 100644 --- a/src/xercesc/sax2/SAX2XMLReader.hpp +++ b/src/xercesc/sax2/SAX2XMLReader.hpp @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.9 2003/01/09 19:07:27 tng + * [Bug 15802] Add "const" qualifier to getURIText. + * * Revision 1.8 2002/12/23 15:23:18 knoaman * Added a public api to various parsers to return the src offset within the input * source. @@ -619,7 +622,7 @@ public: * @param uriId id of the string in the URI string pool. * @return URI string corresponding to the URI id. */ - virtual const XMLCh* getURIText(unsigned int uriId) = 0; + virtual const XMLCh* getURIText(unsigned int uriId) const = 0; /** * Returns the current src offset within the input source. -- GitLab