#include <tokenizer.h>
|
enum | CommentStyle { CPP_COMMENT_STYLE,
SH_COMMENT_STYLE,
CPP_COMMENT_STYLE,
SH_COMMENT_STYLE
} |
|
enum | CommentStyle { CPP_COMMENT_STYLE,
SH_COMMENT_STYLE,
CPP_COMMENT_STYLE,
SH_COMMENT_STYLE
} |
|
enum | TokenType {
TYPE_START,
TYPE_END,
TYPE_IDENTIFIER,
TYPE_INTEGER,
TYPE_FLOAT,
TYPE_STRING,
TYPE_SYMBOL,
TYPE_START,
TYPE_END,
TYPE_IDENTIFIER,
TYPE_INTEGER,
TYPE_FLOAT,
TYPE_STRING,
TYPE_SYMBOL,
TYPE_WHITESPACE,
TYPE_NEWLINE
} |
|
enum | TokenType {
TYPE_START,
TYPE_END,
TYPE_IDENTIFIER,
TYPE_INTEGER,
TYPE_FLOAT,
TYPE_STRING,
TYPE_SYMBOL,
TYPE_START,
TYPE_END,
TYPE_IDENTIFIER,
TYPE_INTEGER,
TYPE_FLOAT,
TYPE_STRING,
TYPE_SYMBOL,
TYPE_WHITESPACE,
TYPE_NEWLINE
} |
|
|
enum | NextCommentStatus {
LINE_COMMENT,
BLOCK_COMMENT,
SLASH_NOT_COMMENT,
NO_COMMENT,
LINE_COMMENT,
BLOCK_COMMENT,
SLASH_NOT_COMMENT,
NO_COMMENT
} |
|
enum | NextCommentStatus {
LINE_COMMENT,
BLOCK_COMMENT,
SLASH_NOT_COMMENT,
NO_COMMENT,
LINE_COMMENT,
BLOCK_COMMENT,
SLASH_NOT_COMMENT,
NO_COMMENT
} |
|
◆ CommentStyle [1/2]
◆ CommentStyle [2/2]
◆ NextCommentStatus [1/2]
◆ NextCommentStatus [2/2]
◆ TokenType [1/2]
◆ TokenType [2/2]
Enumerator |
---|
TYPE_START | |
TYPE_END | |
TYPE_IDENTIFIER | |
TYPE_INTEGER | |
TYPE_FLOAT | |
TYPE_STRING | |
TYPE_SYMBOL | |
TYPE_START | |
TYPE_END | |
TYPE_IDENTIFIER | |
TYPE_INTEGER | |
TYPE_FLOAT | |
TYPE_STRING | |
TYPE_SYMBOL | |
TYPE_WHITESPACE | |
TYPE_NEWLINE | |
Definition at line 102 of file protobuf/src/google/protobuf/io/tokenizer.h.
◆ Tokenizer() [1/2]
◆ ~Tokenizer() [1/2]
google::protobuf::io::Tokenizer::~Tokenizer |
( |
| ) |
|
◆ Tokenizer() [2/2]
◆ ~Tokenizer() [2/2]
google::protobuf::io::Tokenizer::~Tokenizer |
( |
| ) |
|
◆ AddError() [1/2]
void google::protobuf::io::Tokenizer::AddError |
( |
const std::string & |
message | ) |
|
|
inlineprivate |
◆ AddError() [2/2]
void google::protobuf::io::Tokenizer::AddError |
( |
const std::string & |
message | ) |
|
|
inlineprivate |
◆ ConsumeBlockComment() [1/2]
void google::protobuf::io::Tokenizer::ConsumeBlockComment |
( |
std::string * |
content | ) |
|
|
private |
◆ ConsumeBlockComment() [2/2]
void google::protobuf::io::Tokenizer::ConsumeBlockComment |
( |
std::string * |
content | ) |
|
|
private |
◆ ConsumeLineComment() [1/2]
void google::protobuf::io::Tokenizer::ConsumeLineComment |
( |
std::string * |
content | ) |
|
|
private |
◆ ConsumeLineComment() [2/2]
void google::protobuf::io::Tokenizer::ConsumeLineComment |
( |
std::string * |
content | ) |
|
|
private |
◆ ConsumeNumber() [1/2]
◆ ConsumeNumber() [2/2]
TokenType google::protobuf::io::Tokenizer::ConsumeNumber |
( |
bool |
started_with_zero, |
|
|
bool |
started_with_dot |
|
) |
| |
|
private |
◆ ConsumeOneOrMore() [1/2]
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeOneOrMore |
( |
const char * |
error | ) |
|
|
inlineprivate |
◆ ConsumeOneOrMore() [2/2]
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeOneOrMore |
( |
const char * |
error | ) |
|
|
inlineprivate |
◆ ConsumeString() [1/2]
void google::protobuf::io::Tokenizer::ConsumeString |
( |
char |
delimiter | ) |
|
|
private |
◆ ConsumeString() [2/2]
void google::protobuf::io::Tokenizer::ConsumeString |
( |
char |
delimiter | ) |
|
|
private |
◆ ConsumeZeroOrMore() [1/2]
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeZeroOrMore |
|
inlineprivate |
◆ ConsumeZeroOrMore() [2/2]
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeZeroOrMore |
( |
| ) |
|
|
inlineprivate |
◆ current() [1/2]
◆ current() [2/2]
const Token& google::protobuf::io::Tokenizer::current |
( |
| ) |
|
◆ EndToken() [1/2]
void google::protobuf::io::Tokenizer::EndToken |
( |
| ) |
|
|
inlineprivate |
◆ EndToken() [2/2]
void google::protobuf::io::Tokenizer::EndToken |
( |
| ) |
|
|
inlineprivate |
◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]
google::protobuf::io::Tokenizer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS |
( |
Tokenizer |
| ) |
|
|
private |
◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]
google::protobuf::io::Tokenizer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS |
( |
Tokenizer |
| ) |
|
|
private |
◆ IsIdentifier() [1/2]
bool google::protobuf::io::Tokenizer::IsIdentifier |
( |
const std::string & |
text | ) |
|
|
static |
◆ IsIdentifier() [2/2]
static bool google::protobuf::io::Tokenizer::IsIdentifier |
( |
const std::string & |
text | ) |
|
|
static |
◆ LookingAt() [1/2]
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::LookingAt |
|
inlineprivate |
◆ LookingAt() [2/2]
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::LookingAt |
( |
| ) |
|
|
inlineprivate |
◆ Next() [1/2]
bool google::protobuf::io::Tokenizer::Next |
( |
| ) |
|
◆ Next() [2/2]
bool google::protobuf::io::Tokenizer::Next |
( |
| ) |
|
◆ NextChar() [1/2]
void google::protobuf::io::Tokenizer::NextChar |
( |
| ) |
|
|
private |
◆ NextChar() [2/2]
void google::protobuf::io::Tokenizer::NextChar |
( |
| ) |
|
|
private |
◆ NextWithComments() [1/2]
bool google::protobuf::io::Tokenizer::NextWithComments |
( |
std::string * |
prev_trailing_comments, |
|
|
std::vector< std::string > * |
detached_comments, |
|
|
std::string * |
next_leading_comments |
|
) |
| |
◆ NextWithComments() [2/2]
bool google::protobuf::io::Tokenizer::NextWithComments |
( |
std::string * |
prev_trailing_comments, |
|
|
std::vector< std::string > * |
detached_comments, |
|
|
std::string * |
next_leading_comments |
|
) |
| |
◆ ParseFloat() [1/2]
double google::protobuf::io::Tokenizer::ParseFloat |
( |
const std::string & |
text | ) |
|
|
static |
◆ ParseFloat() [2/2]
static double google::protobuf::io::Tokenizer::ParseFloat |
( |
const std::string & |
text | ) |
|
|
static |
◆ ParseInteger() [1/2]
bool google::protobuf::io::Tokenizer::ParseInteger |
( |
const std::string & |
text, |
|
|
uint64 |
max_value, |
|
|
uint64 * |
output |
|
) |
| |
|
static |
◆ ParseInteger() [2/2]
static bool google::protobuf::io::Tokenizer::ParseInteger |
( |
const std::string & |
text, |
|
|
uint64_t |
max_value, |
|
|
uint64_t * |
output |
|
) |
| |
|
static |
◆ ParseString() [1/2]
void google::protobuf::io::Tokenizer::ParseString |
( |
const std::string & |
text, |
|
|
std::string * |
output |
|
) |
| |
|
inlinestatic |
◆ ParseString() [2/2]
static void google::protobuf::io::Tokenizer::ParseString |
( |
const std::string & |
text, |
|
|
std::string * |
output |
|
) |
| |
|
static |
◆ ParseStringAppend() [1/2]
void google::protobuf::io::Tokenizer::ParseStringAppend |
( |
const std::string & |
text, |
|
|
std::string * |
output |
|
) |
| |
|
static |
◆ ParseStringAppend() [2/2]
static void google::protobuf::io::Tokenizer::ParseStringAppend |
( |
const std::string & |
text, |
|
|
std::string * |
output |
|
) |
| |
|
static |
◆ previous() [1/2]
◆ previous() [2/2]
const Token& google::protobuf::io::Tokenizer::previous |
( |
| ) |
|
◆ RecordTo() [1/2]
void google::protobuf::io::Tokenizer::RecordTo |
( |
std::string * |
target | ) |
|
|
inlineprivate |
◆ RecordTo() [2/2]
void google::protobuf::io::Tokenizer::RecordTo |
( |
std::string * |
target | ) |
|
|
inlineprivate |
◆ Refresh() [1/2]
void google::protobuf::io::Tokenizer::Refresh |
( |
| ) |
|
|
private |
◆ Refresh() [2/2]
void google::protobuf::io::Tokenizer::Refresh |
( |
| ) |
|
|
private |
◆ report_newlines()
bool google::protobuf::io::Tokenizer::report_newlines |
( |
| ) |
const |
◆ report_whitespace()
bool google::protobuf::io::Tokenizer::report_whitespace |
( |
| ) |
const |
◆ set_allow_f_after_float() [1/2]
void google::protobuf::io::Tokenizer::set_allow_f_after_float |
( |
bool |
value | ) |
|
|
inline |
◆ set_allow_f_after_float() [2/2]
void google::protobuf::io::Tokenizer::set_allow_f_after_float |
( |
bool |
value | ) |
|
|
inline |
◆ set_allow_multiline_strings() [1/2]
void google::protobuf::io::Tokenizer::set_allow_multiline_strings |
( |
bool |
allow | ) |
|
|
inline |
◆ set_allow_multiline_strings() [2/2]
void google::protobuf::io::Tokenizer::set_allow_multiline_strings |
( |
bool |
allow | ) |
|
|
inline |
◆ set_comment_style() [1/2]
void google::protobuf::io::Tokenizer::set_comment_style |
( |
CommentStyle |
style | ) |
|
|
inline |
◆ set_comment_style() [2/2]
void google::protobuf::io::Tokenizer::set_comment_style |
( |
CommentStyle |
style | ) |
|
|
inline |
◆ set_report_newlines()
void google::protobuf::io::Tokenizer::set_report_newlines |
( |
bool |
report | ) |
|
◆ set_report_whitespace()
void google::protobuf::io::Tokenizer::set_report_whitespace |
( |
bool |
report | ) |
|
◆ set_require_space_after_number() [1/2]
void google::protobuf::io::Tokenizer::set_require_space_after_number |
( |
bool |
require | ) |
|
|
inline |
◆ set_require_space_after_number() [2/2]
void google::protobuf::io::Tokenizer::set_require_space_after_number |
( |
bool |
require | ) |
|
|
inline |
◆ StartToken() [1/2]
void google::protobuf::io::Tokenizer::StartToken |
( |
| ) |
|
|
inlineprivate |
◆ StartToken() [2/2]
void google::protobuf::io::Tokenizer::StartToken |
( |
| ) |
|
|
inlineprivate |
◆ StopRecording() [1/2]
void google::protobuf::io::Tokenizer::StopRecording |
( |
| ) |
|
|
inlineprivate |
◆ StopRecording() [2/2]
void google::protobuf::io::Tokenizer::StopRecording |
( |
| ) |
|
|
inlineprivate |
◆ TryConsume() [1/2]
bool google::protobuf::io::Tokenizer::TryConsume |
( |
char |
c | ) |
|
|
inlineprivate |
◆ TryConsume() [2/2]
bool google::protobuf::io::Tokenizer::TryConsume |
( |
char |
c | ) |
|
|
inlineprivate |
◆ TryConsumeCommentStart() [1/2]
◆ TryConsumeCommentStart() [2/2]
◆ TryConsumeNewline()
bool google::protobuf::io::Tokenizer::TryConsumeNewline |
( |
| ) |
|
|
private |
◆ TryConsumeOne() [1/2]
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::TryConsumeOne |
|
inlineprivate |
◆ TryConsumeOne() [2/2]
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::TryConsumeOne |
( |
| ) |
|
|
inlineprivate |
◆ TryConsumeWhitespace()
bool google::protobuf::io::Tokenizer::TryConsumeWhitespace |
( |
| ) |
|
|
private |
◆ allow_f_after_float_
bool google::protobuf::io::Tokenizer::allow_f_after_float_ |
|
private |
◆ allow_multiline_strings_
bool google::protobuf::io::Tokenizer::allow_multiline_strings_ |
|
private |
◆ buffer_
const char * google::protobuf::io::Tokenizer::buffer_ |
|
private |
◆ buffer_pos_
int google::protobuf::io::Tokenizer::buffer_pos_ |
|
private |
◆ buffer_size_
int google::protobuf::io::Tokenizer::buffer_size_ |
|
private |
◆ column_
◆ comment_style_
CommentStyle google::protobuf::io::Tokenizer::comment_style_ |
|
private |
◆ current_
Token google::protobuf::io::Tokenizer::current_ |
|
private |
◆ current_char_
char google::protobuf::io::Tokenizer::current_char_ |
|
private |
◆ error_collector_
◆ input_
◆ kTabWidth
static const int google::protobuf::io::Tokenizer::kTabWidth = 8 |
|
staticprivate |
◆ line_
int google::protobuf::io::Tokenizer::line_ |
|
private |
◆ previous_
Token google::protobuf::io::Tokenizer::previous_ |
|
private |
◆ read_error_
bool google::protobuf::io::Tokenizer::read_error_ |
|
private |
◆ record_start_
int google::protobuf::io::Tokenizer::record_start_ |
|
private |
◆ record_target_
std::string * google::protobuf::io::Tokenizer::record_target_ |
|
private |
◆ report_newlines_
bool google::protobuf::io::Tokenizer::report_newlines_ = false |
|
private |
◆ report_whitespace_
bool google::protobuf::io::Tokenizer::report_whitespace_ = false |
|
private |
◆ require_space_after_number_
bool google::protobuf::io::Tokenizer::require_space_after_number_ |
|
private |
The documentation for this class was generated from the following files: