You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2002/04/25 06:06:13 UTC
cvs commit: xml-xerces/perl Xerces.i
jasons 02/04/24 21:06:13
Modified: perl Xerces.i
Log:
* Xerces.i (Repository):
Fixed *InputSource constructors to use XMLCh* versions instead of
the char* versions (Unicode compliance)
Added support for XMLScanner
Revision Changes Path
1.20 +59 -6 xml-xerces/perl/Xerces.i
Index: Xerces.i
===================================================================
RCS file: /home/cvs/xml-xerces/perl/Xerces.i,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Xerces.i 28 Mar 2002 07:55:13 -0000 1.19
+++ Xerces.i 25 Apr 2002 04:06:13 -0000 1.20
@@ -144,6 +144,8 @@
%import "xercesc/framework/XMLEntityHandler.hpp"
%import "xercesc/validators/DTD/DocTypeHandler.hpp"
+
+
%pragma nodefault
// We have to define these in order to get past the occurrence of the
@@ -368,19 +370,71 @@
*/
%include "xercesc/sax/InputSource.hpp"
-%ignore MemBufInputSource(const XMLByte* const, const unsigned int, const XMLCh* const,const bool);
+%ignore MemBufInputSource(const XMLByte* const, const unsigned int, const char* const,const bool);
%include "xercesc/framework/MemBufInputSource.hpp"
%include "xercesc/framework/StdInInputSource.hpp"
%rename(LocalFileInputSource__constructor__base) LocalFileInputSource(const XMLCh* const,const XMLCh* const);
%include "xercesc/framework/LocalFileInputSource.hpp"
-%rename(URLInputSource__constructor__pub) URLInputSource(const XMLCh* const,const char* const,const char* const);
-%rename(URLInputSource__constructor__sys) URLInputSource(const XMLCh* const,const char* const);
-%ignore URLInputSource(const XMLCh* const,const XMLCh* const, const XMLCh* const);
-%ignore URLInputSource(const XMLCh* const,const XMLCh* const);
+%rename(URLInputSource__constructor__pub) URLInputSource(const XMLCh* const,const XMLCh* const,const XMLCh* const);
+%rename(URLInputSource__constructor__sys) URLInputSource(const XMLCh* const,const XMLCh* const);
+%ignore URLInputSource(const XMLCh* const,const char* const, const char* const);
+%ignore URLInputSource(const XMLCh* const,const char* const);
%include "xercesc/framework/URLInputSource.hpp"
+// we need XMLScanner to get access to the scanner methods of the Parsers
+
+// ignore the constructors for now
+%ignore XMLScanner::XMLScanner;
+
+// ignore all versions of the following
+%ignore XMLScanner::emitError;
+%ignore XMLScanner::getURIText;
+%ignore XMLScanner::scanDocument;
+%ignore XMLScanner::scanFirst;
+%ignore XMLScanner::setExternalNoNamespaceSchemaLocation;
+%ignore XMLScanner::setExternalSchemaLocation;
+
+// ignore these specific ones
+%ignore XMLScanner::getDocHandler() const;
+%ignore XMLScanner::getDocHandler();
+%ignore XMLScanner::getDocTypeHandler() const;
+%ignore XMLScanner::getDocTypeHandler();
+%ignore XMLScanner::getDoNamespaces() const;
+%ignore XMLScanner::getValidationScheme() const;
+%ignore XMLScanner::getDoSchema() const;
+%ignore XMLScanner::getValidationSchemaFullChecking() const;
+%ignore XMLScanner::getEntityHandler() const;
+%ignore XMLScanner::getEntityHandler();
+%ignore XMLScanner::getErrorReporter() const;
+%ignore XMLScanner::getErrorReporter();
+%ignore XMLScanner::getExitOnFirstFatal() const;
+%ignore XMLScanner::getValidationConstraintFatal() const;
+%ignore XMLScanner::getIDRefList();
+%ignore XMLScanner::getIDRefList() const;
+%ignore XMLScanner::getInException() const;
+%ignore XMLScanner::getLastExtLocation (XMLCh* const, const unsigned int,
+ XMLCh* const, const unsigned int,
+ unsigned int&, unsigned int&);
+%ignore XMLScanner::getLocator() const;
+// %ignore XMLScanner::getSrcOffset() const;
+%ignore XMLScanner::getStandalone() const;
+%ignore XMLScanner::getValidator() const;
+%ignore XMLScanner::getValidator();
+%ignore XMLScanner::getErrorCount();
+%ignore XMLScanner::getEntityDecl(const XMLCh* const) const;
+%ignore XMLScanner::getEntityEnumerator() const;
+%ignore XMLScanner::getEntityDeclPool();
+%ignore XMLScanner::getEntityDeclPool() const;
+%ignore XMLScanner::getURIStringPool() const;
+%ignore XMLScanner::getURIStringPool();
+%ignore XMLScanner::getHasNoDTD() const;
+%ignore XMLScanner::getExternalSchemaLocation() const;
+%ignore XMLScanner::getExternalNoNamespaceSchemaLocation() const;
+
+%include "xercesc/internal/XMLScanner.hpp"
+
/*
* PARSERS (PRETTY IMPORTANT)
*
@@ -536,7 +590,6 @@
croak("%s", "Handling Unknown exception");
}
}
-
%include "xercesc/sax2/SAX2XMLReader.hpp"
%include "xercesc/parsers/SAXParser.hpp"
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org