summaryrefslogtreecommitdiff
path: root/Source/cmXMLParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmXMLParser.h')
-rw-r--r--Source/cmXMLParser.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/cmXMLParser.h b/Source/cmXMLParser.h
index c72be5751..d916075e5 100644
--- a/Source/cmXMLParser.h
+++ b/Source/cmXMLParser.h
@@ -18,7 +18,7 @@ extern "C"
{
void cmXMLParserStartElement(void*, const char*, const char**);
void cmXMLParserEndElement(void*, const char*);
- void cmXMLParserCharacterDataHandler(void*, const char*, int);
+ void cmXMLParserCharacterDataHandler(void*, const char*, int);
}
/** \class cmXMLParser
@@ -37,7 +37,7 @@ public:
//! Parse given XML file
virtual int ParseFile(const char* file);
-
+
/**
* When parsing fragments of XML or streaming XML, use the following
* three methods. InitializeParser method initialize parser but does
@@ -47,7 +47,7 @@ public:
* them.
*/
virtual int InitializeParser();
- virtual int ParseChunk(const char* inputString,
+ virtual int ParseChunk(const char* inputString,
std::string::size_type length);
virtual int CleanupParser();
@@ -65,7 +65,7 @@ protected:
* terminating condition for parsing. Parsing always stops when the end of
* file is reached in the stream.
*/
-
+
virtual int ParsingComplete();
/**
@@ -75,28 +75,28 @@ protected:
* Even indices are attribute names, and odd indices are values.
*/
virtual void StartElement(const char* name, const char** atts);
-
+
//! Called at the end of an element in the XML source opened when
//StartElement was called.
virtual void EndElement(const char* name);
-
+
//! Called when there is character data to handle.
- virtual void CharacterDataHandler(const char* data, int length);
+ virtual void CharacterDataHandler(const char* data, int length);
//! Called by Parse to report an XML syntax error.
- virtual void ReportXmlParseError();
+ virtual void ReportXmlParseError();
/** Called by ReportXmlParseError with basic error info. */
virtual void ReportError(int line, int column, const char* msg);
//! Utility for convenience of subclasses. Wraps isspace C library
// routine.
- static int IsSpace(char c);
-
+ static int IsSpace(char c);
+
//! Send the given buffer to the XML parser.
- virtual int ParseBuffer(const char* buffer,
+ virtual int ParseBuffer(const char* buffer,
std::string::size_type length);
-
+
//! Send the given c-style string to the XML parser.
int ParseBuffer(const char* buffer);