Class Scanner

Class Documentation

class Scanner

Public Types

enum TokenType

Values:

TT_ERROR = -1
TT_EOF = 0
TT_TAG_START
TT_TAG_END
TT_ATTRIBUTE
TT_TEXT
TT_DATA
TT_COMMENT_START
TT_COMMENT_END
TT_PROCESSING_INSTRUCTION_START
TT_PROCESSING_INSTRUCTION_END

Public Functions

Scanner(instream &is)
TokenType next()
std::string_view value() const
std::string_view attribute() const
std::string_view tag() const
const char *start() const