textwolf
0.2
|
Class for parsing the header to get the character set encoding. More...
#include <xmlhdrparser.hpp>
Public Member Functions | |
XmlHdrParser () | |
Constructor. More... | |
XmlHdrParser (const XmlHdrParser &o) | |
Copy constructor. More... | |
void | putInput (const char *src_, std::size_t srcsize_) |
Add another input chunk to process. More... | |
const std::string & | consumedData () const |
Get the whole original data added with subsequent calls of putInput(const char*,std::size_t) More... | |
bool | parse () |
Call the first/next iteration of parsing the header. More... | |
const char * | lasterror () const |
Get the last error occurred. More... | |
const char * | encoding () const |
Get the encoding specified as attribute in the header. More... | |
std::size_t | charsConsumed () const |
Get the number of ASCII characters consumed. More... | |
void | clear () |
Clear the data, reset the state. More... | |
Additional Inherited Members | |
Public Types inherited from textwolf::throws_exception | |
enum | Cause { Unknown, DimOutOfRange, StateNumbersNotAscending, InvalidParamState, InvalidParamChar, DuplicateStateTransition, InvalidState, IllegalParam, IllegalAttributeName, OutOfMem, ArrayBoundsReadWrite, NotAllowedOperation, FileReadError, IllegalXmlHeader, InvalidTagOffset, CorruptTagStack, CodePageIndexNotSupported } |
Enumeration of error cases. More... | |
Class for parsing the header to get the character set encoding.
|
inline |
Constructor.
|
inline |
Copy constructor.
param[in] o object to copy
|
inline |
Get the number of ASCII characters consumed.
|
inline |
Clear the data, reset the state.
|
inline |
Get the whole original data added with subsequent calls of putInput(const char*,std::size_t)
|
inline |
Get the encoding specified as attribute in the header.
|
inline |
Get the last error occurred.
|
inline |
Call the first/next iteration of parsing the header.
|
inline |
Add another input chunk to process.
[in] | src_ | pointer to chunk |
[in] | srcsize_ | size of chunk in bytes |