Home
last modified time | relevance | path

Searched refs:TryConsume (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/src/google/protobuf/io/
Dtokenizer.cc330 inline bool Tokenizer::TryConsume(char c) { in TryConsume() function in google::protobuf::io::Tokenizer
386 } else if (TryConsume('x')) { in ConsumeString()
391 } else if (TryConsume('u')) { in ConsumeString()
396 } else if (TryConsume('U')) { in ConsumeString()
399 if (!TryConsume('0') || !TryConsume('0') || in ConsumeString()
400 !(TryConsume('0') || TryConsume('1')) || in ConsumeString()
430 if (started_with_zero && (TryConsume('x') || TryConsume('X'))) { in ConsumeNumber()
450 if (TryConsume('.')) { in ConsumeNumber()
456 if (TryConsume('e') || TryConsume('E')) { in ConsumeNumber()
458 TryConsume('-') || TryConsume('+'); in ConsumeNumber()
[all …]
Dtokenizer.h382 inline bool TryConsume(char c);
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc205 bool Parser::TryConsume(const char* text) { in TryConsume() function in google::protobuf::compiler::Parser
215 if (TryConsume(text)) { in Consume()
224 if (TryConsume(text)) { in Consume()
263 if (TryConsume("-")) { in ConsumeSignedInteger()
519 } else if (TryConsume("{")) { in SkipStatement()
537 } else if (TryConsume("{")) { in SkipRestOfBlock()
944 if (TryConsume("map")) { in ParseMessageFieldNoLabel()
1185 } while (TryConsume(",")); in ParseFieldOptions()
1238 if (TryConsume("-")) { in ParseDefaultAssignment()
1263 if (TryConsume("-")) { in ParseDefaultAssignment()
[all …]
Dparser.h156 bool TryConsume(const char* text);
/external/protobuf/python/google/protobuf/
Dtext_format.py818 tokenizer.TryConsume('[')):
821 tokenizer.TryConsume(':')
822 if tokenizer.TryConsume('<'):
832 while not tokenizer.TryConsume(expanded_any_end_token):
841 if tokenizer.TryConsume('['):
843 while tokenizer.TryConsume('.'):
912 tokenizer.TryConsume(':')
919 tokenizer.TryConsume('[')):
921 if not tokenizer.TryConsume(']'):
924 if tokenizer.TryConsume(']'):
[all …]
/external/protobuf/src/google/protobuf/
Dtext_format.cc383 if (TryConsume("<")) { in ConsumeMessageDelimiter()
409 TryConsume("[")) { in ConsumeField()
413 TryConsume(":"); // ':' is optional between message labels and values. in ConsumeField()
439 if (TryConsume("[")) { in ConsumeField()
530 if (TryConsume(":") && !LookingAt("{") && !LookingAt("<")) { in ConsumeField()
564 bool consumed_semicolon = TryConsume(":"); in ConsumeField()
581 if (field->is_repeated() && TryConsume("[")) { in ConsumeField()
583 if (!TryConsume("]")) { in ConsumeField()
592 if (TryConsume("]")) { in ConsumeField()
606 TryConsume(";") || TryConsume(","); in ConsumeField()
[all …]