You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ro...@locus.apache.org on 2000/01/24 21:40:46 UTC
cvs commit: xml-xerces/c/src/internal ReaderMgr.hpp XMLScanner.hpp
roddey 00/01/24 12:40:45
Modified: c/src/internal ReaderMgr.hpp XMLScanner.hpp
Log:
Exposed the APIs to get to the byte offset in the source XML buffer. This stuff
is not tested yet, but I wanted to get the API changes in now so that the API
can be stablized.
Revision Changes Path
1.4 +10 -6 xml-xerces/c/src/internal/ReaderMgr.hpp
Index: ReaderMgr.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/internal/ReaderMgr.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ReaderMgr.hpp 2000/01/12 00:15:04 1.3
+++ ReaderMgr.hpp 2000/01/24 20:40:43 1.4
@@ -56,6 +56,11 @@
/**
* $Log: ReaderMgr.hpp,v $
+ * Revision 1.4 2000/01/24 20:40:43 roddey
+ * Exposed the APIs to get to the byte offset in the source XML buffer. This stuff
+ * is not tested yet, but I wanted to get the API changes in now so that the API
+ * can be stablized.
+ *
* Revision 1.3 2000/01/12 00:15:04 roddey
* Changes to deal with multiply nested, relative pathed, entities and to deal
* with the new URL class changes.
@@ -190,7 +195,6 @@
, const unsigned int dataLen
, const bool copyBuf
);
- unsigned int getSrcOffset() const;
bool isScanningPERefOutOfLiteral() const;
bool pushReader
(
@@ -210,6 +214,7 @@
XMLReader* getCurrentReader();
unsigned int getCurrentReaderNum() const;
void getLastExtEntityInfo(LastExtEntityInfo& lastInfo) const;
+ unsigned int getSrcOffset() const;
bool getThrowEOE() const;
@@ -288,11 +293,6 @@
return fCurReader->getReaderNum();
}
-inline unsigned int ReaderMgr::getSrcOffset() const
-{
- return fCurReader->getSrcOffset();
-}
-
inline bool ReaderMgr::getName(XMLBuffer& toFill)
{
toFill.reset();
@@ -308,6 +308,11 @@
inline bool ReaderMgr::getThrowEOE() const
{
return fThrowEOE;
+}
+
+inline unsigned int ReaderMgr::getSrcOffset() const
+{
+ return fCurReader->getSrcOffset();
}
inline bool ReaderMgr::lookingAtChar(const XMLCh chToCheck)
1.4 +13 -0 xml-xerces/c/src/internal/XMLScanner.hpp
Index: XMLScanner.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/internal/XMLScanner.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XMLScanner.hpp 2000/01/12 23:52:46 1.3
+++ XMLScanner.hpp 2000/01/24 20:40:43 1.4
@@ -56,6 +56,11 @@
/**
* $Log: XMLScanner.hpp,v $
+ * Revision 1.4 2000/01/24 20:40:43 roddey
+ * Exposed the APIs to get to the byte offset in the source XML buffer. This stuff
+ * is not tested yet, but I wanted to get the API changes in now so that the API
+ * can be stablized.
+ *
* Revision 1.3 2000/01/12 23:52:46 roddey
* These are trivial changes required to get the C++ and Java versions
* of error messages more into sync. Mostly it was where the Java version
@@ -215,6 +220,7 @@
, unsigned int& lineToFill
, unsigned int& colToFill
);
+ unsigned int getSrcOffset() const;
bool getStandalone() const;
const XMLValidator* getValidator() const;
XMLValidator* getValidator();
@@ -627,6 +633,11 @@
inline const RefHashTableOf<XMLRefInfo>& XMLScanner::getIDRefList() const
{
return *fIDRefList;
+}
+
+inline unsigned int XMLScanner::getSrcOffset() const
+{
+ return fReaderMgr.getSrcOffset();
}
inline bool XMLScanner::getStandalone() const