19 #include "taghandler.h"
56 int feed( std::string& data );
63 void cleanup(
bool deleteRoot =
true );
66 enum ParserInternalState
76 TagNameAlmostComplete,
92 ForwardInsufficientSize
106 bool isWhitespace(
unsigned char c );
107 bool isValid(
unsigned char c );
108 void streamEvent(
Tag* tag );
109 ForwardScanState forwardScan( std::string::size_type& pos,
const std::string& data,
110 const std::string& needle );
111 DecodeState decode( std::string::size_type& pos,
const std::string& data );
118 ParserInternalState m_state;
122 std::string m_attrib;
125 std::string m_tagPrefix;
126 std::string m_attribPrefix;
127 std::string m_backBuffer;
130 bool m_haveTagPrefix;
131 bool m_haveAttribPrefix;
132 bool m_attribIsXmlns;