#include <tokenizer.h>
Enumerator |
---|
CPP_COMMENT_STYLE |
|
SH_COMMENT_STYLE |
|
Definition: tokenizer.h:224
Definition: tokenizer.h:226
Enumerator |
---|
LINE_COMMENT |
|
BLOCK_COMMENT |
|
SLASH_NOT_COMMENT |
|
NO_COMMENT |
|
Definition: tokenizer.h:337
Definition: tokenizer.h:341
Definition: tokenizer.h:334
Definition: tokenizer.h:344
Enumerator |
---|
TYPE_START |
|
TYPE_END |
|
TYPE_IDENTIFIER |
|
TYPE_INTEGER |
|
TYPE_FLOAT |
|
TYPE_STRING |
|
TYPE_SYMBOL |
|
Definition: tokenizer.h:92
Definition: tokenizer.h:108
Definition: tokenizer.h:95
Definition: tokenizer.h:93
Definition: tokenizer.h:99
Definition: tokenizer.h:105
Definition: tokenizer.h:111
google::protobuf::io::Tokenizer::~Tokenizer |
( |
| ) |
|
void google::protobuf::io::Tokenizer::AddError |
( |
const string & |
message | ) |
|
|
inlineprivate |
int line_
Definition: tokenizer.h:264
virtual void AddError(int line, int column, const string &message)=0
ErrorCollector * error_collector_
Definition: tokenizer.h:255
int column_
Definition: tokenizer.h:265
void google::protobuf::io::Tokenizer::ConsumeBlockComment |
( |
string * |
content | ) |
|
|
private |
void google::protobuf::io::Tokenizer::ConsumeLineComment |
( |
string * |
content | ) |
|
|
private |
TokenType google::protobuf::io::Tokenizer::ConsumeNumber |
( |
bool |
started_with_zero, |
|
|
bool |
started_with_dot |
|
) |
| |
|
private |
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeOneOrMore |
( |
const char * |
error | ) |
|
|
inlineprivate |
void google::protobuf::io::Tokenizer::ConsumeString |
( |
char |
delimiter | ) |
|
|
private |
template<typename CharacterClass >
void google::protobuf::io::Tokenizer::ConsumeZeroOrMore |
( |
| ) |
|
|
inlineprivate |
Token current_
Definition: tokenizer.h:251
void google::protobuf::io::Tokenizer::EndToken |
( |
| ) |
|
|
inlineprivate |
google::protobuf::io::Tokenizer::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS |
( |
Tokenizer |
| ) |
|
|
private |
static bool google::protobuf::io::Tokenizer::IsIdentifier |
( |
const string & |
text | ) |
|
|
static |
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::LookingAt |
( |
| ) |
|
|
inlineprivate |
bool google::protobuf::io::Tokenizer::Next |
( |
| ) |
|
void google::protobuf::io::Tokenizer::NextChar |
( |
| ) |
|
|
private |
bool google::protobuf::io::Tokenizer::NextWithComments |
( |
string * |
prev_trailing_comments, |
|
|
vector< string > * |
detached_comments, |
|
|
string * |
next_leading_comments |
|
) |
| |
static double google::protobuf::io::Tokenizer::ParseFloat |
( |
const string & |
text | ) |
|
|
static |
static bool google::protobuf::io::Tokenizer::ParseInteger |
( |
const string & |
text, |
|
|
uint64 |
max_value, |
|
|
uint64 * |
output |
|
) |
| |
|
static |
void Tokenizer::ParseString |
( |
const string & |
text, |
|
|
string * |
output |
|
) |
| |
|
inlinestatic |
static void ParseStringAppend(const string &text, string *output)
static void google::protobuf::io::Tokenizer::ParseStringAppend |
( |
const string & |
text, |
|
|
string * |
output |
|
) |
| |
|
static |
Token previous_
Definition: tokenizer.h:252
void google::protobuf::io::Tokenizer::RecordTo |
( |
string * |
target | ) |
|
|
inlineprivate |
void google::protobuf::io::Tokenizer::Refresh |
( |
| ) |
|
|
private |
void google::protobuf::io::Tokenizer::set_allow_f_after_float |
( |
bool |
value | ) |
|
|
inline |
bool allow_f_after_float_
Definition: tokenizer.h:275
const FieldDescriptor value
Definition: descriptor.h:1522
void google::protobuf::io::Tokenizer::set_allow_multiline_strings |
( |
bool |
allow | ) |
|
|
inline |
bool allow_multiline_strings_
Definition: tokenizer.h:278
void google::protobuf::io::Tokenizer::set_comment_style |
( |
CommentStyle |
style | ) |
|
|
inline |
CommentStyle comment_style_
Definition: tokenizer.h:276
void google::protobuf::io::Tokenizer::set_require_space_after_number |
( |
bool |
require | ) |
|
|
inline |
bool require_space_after_number_
Definition: tokenizer.h:277
void google::protobuf::io::Tokenizer::StartToken |
( |
| ) |
|
|
inlineprivate |
void google::protobuf::io::Tokenizer::StopRecording |
( |
| ) |
|
|
inlineprivate |
bool google::protobuf::io::Tokenizer::TryConsume |
( |
char |
c | ) |
|
|
inlineprivate |
template<typename CharacterClass >
bool google::protobuf::io::Tokenizer::TryConsumeOne |
( |
| ) |
|
|
inlineprivate |
bool google::protobuf::io::Tokenizer::allow_f_after_float_ |
|
private |
bool google::protobuf::io::Tokenizer::allow_multiline_strings_ |
|
private |
const char* google::protobuf::io::Tokenizer::buffer_ |
|
private |
int google::protobuf::io::Tokenizer::buffer_pos_ |
|
private |
int google::protobuf::io::Tokenizer::buffer_size_ |
|
private |
int google::protobuf::io::Tokenizer::column_ |
|
private |
CommentStyle google::protobuf::io::Tokenizer::comment_style_ |
|
private |
Token google::protobuf::io::Tokenizer::current_ |
|
private |
char google::protobuf::io::Tokenizer::current_char_ |
|
private |
const int google::protobuf::io::Tokenizer::kTabWidth = 8 |
|
staticprivate |
int google::protobuf::io::Tokenizer::line_ |
|
private |
Token google::protobuf::io::Tokenizer::previous_ |
|
private |
bool google::protobuf::io::Tokenizer::read_error_ |
|
private |
int google::protobuf::io::Tokenizer::record_start_ |
|
private |
string* google::protobuf::io::Tokenizer::record_target_ |
|
private |
bool google::protobuf::io::Tokenizer::require_space_after_number_ |
|
private |
The documentation for this class was generated from the following file: