#include <tokenizer.h>
Definition at line 93 of file tokenizer.h.
◆ CommentStyle
Enumerator |
---|
CPP_COMMENT_STYLE | |
SH_COMMENT_STYLE | |
Definition at line 231 of file tokenizer.h.
◆ NextCommentStatus
Enumerator |
---|
LINE_COMMENT | |
BLOCK_COMMENT | |
SLASH_NOT_COMMENT | |
NO_COMMENT | |
Definition at line 343 of file tokenizer.h.
◆ TokenType
Enumerator |
---|
TYPE_START | |
TYPE_END | |
TYPE_IDENTIFIER | |
TYPE_INTEGER | |
TYPE_FLOAT | |
TYPE_STRING | |
TYPE_SYMBOL | |
Definition at line 101 of file tokenizer.h.
◆ Tokenizer()
◆ ~Tokenizer()
google::protobuf::io::Tokenizer::~Tokenizer |
( |
| ) |
|
◆ AddError()
void google::protobuf::io::Tokenizer::AddError |
( |
const std::string & |
message | ) |
|
|
inlineprivate |
◆ ConsumeBlockComment()
void google::protobuf::io::Tokenizer::ConsumeBlockComment |
( |
std::string * |
content | ) |
|
|
private |
◆ ConsumeLineComment()
void google::protobuf::io::Tokenizer::ConsumeLineComment |
( |
std::string * |
content | ) |
|
|
private |
◆ ConsumeNumber()
Tokenizer::TokenType google::protobuf::io::Tokenizer::ConsumeNumber |
( |
bool |
started_with_zero, |
|
|
bool |
started_with_dot |
|
) |
| |
|
private |
◆ ConsumeOneOrMore()
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeOneOrMore |
( |
const char * |
error | ) |
|
|
inlineprivate |
◆ ConsumeString()
void google::protobuf::io::Tokenizer::ConsumeString |
( |
char |
delimiter | ) |
|
|
private |
◆ ConsumeZeroOrMore()
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeZeroOrMore |
|
inlineprivate |
◆ current()
◆ EndToken()
void google::protobuf::io::Tokenizer::EndToken |
( |
| ) |
|
|
inlineprivate |
◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()
google::protobuf::io::Tokenizer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS |
( |
Tokenizer |
| ) |
|
|
private |
◆ IsIdentifier()
bool google::protobuf::io::Tokenizer::IsIdentifier |
( |
const std::string & |
text | ) |
|
|
static |
◆ LookingAt()
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::LookingAt |
|
inlineprivate |
◆ Next()
bool google::protobuf::io::Tokenizer::Next |
( |
| ) |
|
◆ NextChar()
void google::protobuf::io::Tokenizer::NextChar |
( |
| ) |
|
|
private |
◆ NextWithComments()
bool google::protobuf::io::Tokenizer::NextWithComments |
( |
std::string * |
prev_trailing_comments, |
|
|
std::vector< std::string > * |
detached_comments, |
|
|
std::string * |
next_leading_comments |
|
) |
| |
◆ ParseFloat()
double google::protobuf::io::Tokenizer::ParseFloat |
( |
const std::string & |
text | ) |
|
|
static |
◆ ParseInteger()
◆ ParseString()
◆ ParseStringAppend()
◆ previous()
◆ RecordTo()
◆ Refresh()
void google::protobuf::io::Tokenizer::Refresh |
( |
| ) |
|
|
private |
◆ set_allow_f_after_float()
void google::protobuf::io::Tokenizer::set_allow_f_after_float |
( |
bool |
value | ) |
|
|
inline |
◆ set_allow_multiline_strings()
void google::protobuf::io::Tokenizer::set_allow_multiline_strings |
( |
bool |
allow | ) |
|
|
inline |
◆ set_comment_style()
◆ set_require_space_after_number()
void google::protobuf::io::Tokenizer::set_require_space_after_number |
( |
bool |
require | ) |
|
|
inline |
◆ StartToken()
void google::protobuf::io::Tokenizer::StartToken |
( |
| ) |
|
|
inlineprivate |
◆ StopRecording()
void google::protobuf::io::Tokenizer::StopRecording |
( |
| ) |
|
|
inlineprivate |
◆ TryConsume()
bool google::protobuf::io::Tokenizer::TryConsume |
( |
char |
c | ) |
|
|
inlineprivate |
◆ TryConsumeCommentStart()
◆ TryConsumeOne()
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::TryConsumeOne |
|
inlineprivate |
◆ 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
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 |
◆ 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: