You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by jp...@locus.apache.org on 2000/08/10 00:08:52 UTC
cvs commit: xml-xerces/c/src/validators/DTD DTDValidator.cpp DTDValidator.hpp
jpolast 00/08/09 15:08:51
Modified: c/src/validators/DTD DTDValidator.cpp DTDValidator.hpp
Log:
added const XMLCh* getURIText() as per XMLValidator.
allows parsers to use const URIs instead of appending
to a XMLBuffer.
Revision Changes Path
1.10 +10 -1 xml-xerces/c/src/validators/DTD/DTDValidator.cpp
Index: DTDValidator.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/DTD/DTDValidator.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DTDValidator.cpp 2000/07/25 22:43:40 1.9
+++ DTDValidator.cpp 2000/08/09 22:08:48 1.10
@@ -55,7 +55,7 @@
*/
/*
- * $Id: DTDValidator.cpp,v 1.9 2000/07/25 22:43:40 aruna1 Exp $
+ * $Id: DTDValidator.cpp,v 1.10 2000/08/09 22:08:48 jpolast Exp $
*/
@@ -466,6 +466,15 @@
return true;
}
+const XMLCh* DTDValidator::getURIText(const unsigned int uriId) const
+{
+ // Look up the URI in the string pool and return its id
+ const XMLCh* value = fURIStringPool.getValueForId(uriId);
+ if (!value)
+ return XMLUni::fgEmptyString;
+
+ return value;
+}
void DTDValidator::postParseValidation()
{
1.6 +9 -0 xml-xerces/c/src/validators/DTD/DTDValidator.hpp
Index: DTDValidator.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/validators/DTD/DTDValidator.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DTDValidator.hpp 2000/04/06 19:00:07 1.5
+++ DTDValidator.hpp 2000/08/09 22:08:48 1.6
@@ -56,6 +56,11 @@
/*
* $Log: DTDValidator.hpp,v $
+ * Revision 1.6 2000/08/09 22:08:48 jpolast
+ * added const XMLCh* getURIText() as per XMLValidator.
+ * allows parsers to use const URIs instead of appending
+ * to a XMLBuffer.
+ *
* Revision 1.5 2000/04/06 19:00:07 roddey
* Added a getter for the doc type handler.
*
@@ -251,6 +256,12 @@
const unsigned int uriId
, XMLBuffer& uriBufToFill
) const;
+
+ virtual const XMLCh* getURIText
+ (
+ const unsigned int uriId
+ ) const;
+
virtual void postParseValidation();