|
textwolf
0.2
|
Reader for scanning the input character by character. More...
#include <textscanner.hpp>
Classes | |
| class | ControlCharMap |
| Map of ASCII characters to control character identifiers used in the XML scanner automaton. More... | |
Public Member Functions | |
| TextScanner (const CharSet &charset_) | |
| Constructor. More... | |
| TextScanner (const CharSet &charset_, const Iterator &p_iterator) | |
| TextScanner (const Iterator &p_iterator) | |
| TextScanner (const TextScanner &orig) | |
| Copy constructor. More... | |
| template<class IteratorAssignment > | |
| void | setSource (const IteratorAssignment &a) |
| Assign something to the iterator while keeping the state. More... | |
| std::size_t | getPosition () const |
| Get the current source iterator position. More... | |
| UChar | chr () |
| Get the unicode representation of the current character. More... | |
| void | getcur () |
| Fill the internal buffer with as many current character bytes needed for reading the ASCII representation. More... | |
| const Iterator & | getIterator () const |
| Get the iterator pointing to the current source position. More... | |
| Iterator & | getIterator () |
| Get the iterator pointing to the current source position. More... | |
| template<class Buffer > | |
| void | copychar (CharSet &output_, Buffer &buf_) |
| ControlCharacter | control () |
| Get the control character representation of the current character. More... | |
| unsigned char | ascii () |
| Get the ASCII character representation of the current character. More... | |
| TextScanner & | skip () |
| Skip to the next character of the source. More... | |
| UChar | operator* () |
| see TextScanner::chr() More... | |
| TextScanner & | operator++ () |
| Preincrement: Skip to the next character of the source. More... | |
| TextScanner | operator++ (int) |
| Postincrement: Skip to the next character of the source. More... | |
Reader for scanning the input character by character.
| Iterator | source iterator type (implements preincrement and '*' input byte access indirection) |
| CharSet | character set of the source stream |
|
inline |
Constructor.
|
inline |
|
inline |
|
inline |
Copy constructor.
| [in] | orig | textscanner to copy |
|
inline |
Get the ASCII character representation of the current character.
|
inline |
Get the unicode representation of the current character.
|
inline |
Get the control character representation of the current character.
|
inline |
|
inline |
Fill the internal buffer with as many current character bytes needed for reading the ASCII representation.
|
inline |
Get the iterator pointing to the current source position.
|
inline |
Get the iterator pointing to the current source position.
|
inline |
Get the current source iterator position.
|
inline |
|
inline |
Preincrement: Skip to the next character of the source.
|
inline |
Postincrement: Skip to the next character of the source.
|
inline |
Assign something to the iterator while keeping the state.
| [in] | a | source iterator assignment |
|
inline |
Skip to the next character of the source.
1.8.6