Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/io/
Dtokenizer.cc321 inline bool Tokenizer::TryConsume(char c) { in TryConsume() function in google::protobuf::io::Tokenizer
377 } else if (TryConsume('x') || TryConsume('X')) { in ConsumeString()
382 } else if (TryConsume('u')) { in ConsumeString()
389 } else if (TryConsume('U')) { in ConsumeString()
392 if (!TryConsume('0') || in ConsumeString()
393 !TryConsume('0') || in ConsumeString()
394 !(TryConsume('0') || TryConsume('1')) || in ConsumeString()
425 if (started_with_zero && (TryConsume('x') || TryConsume('X'))) { in ConsumeNumber()
445 if (TryConsume('.')) { in ConsumeNumber()
451 if (TryConsume('e') || TryConsume('E')) { in ConsumeNumber()
[all …]
Dtokenizer.h371 inline bool TryConsume(char c);
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc122 bool Parser::TryConsume(const char* text) { in TryConsume() function in google::protobuf::compiler::Parser
132 if (TryConsume(text)) { in Consume()
141 if (TryConsume(text)) { in Consume()
180 if (TryConsume("-")) { in ConsumeSignedInteger()
388 } else if (TryConsume("{")) { in SkipStatement()
406 } else if (TryConsume("{")) { in SkipRestOfBlock()
807 } while (TryConsume(",")); in ParseFieldOptions()
861 if (TryConsume("-")) { in ParseDefaultAssignment()
886 if (TryConsume("-")) { in ParseDefaultAssignment()
901 if (TryConsume("-")) { in ParseDefaultAssignment()
[all …]
Dparser.h153 bool TryConsume(const char* text);
/external/protobuf/src/google/protobuf/
Dtext_format.cc349 if (TryConsume("[")) { in ConsumeField()
352 while (TryConsume(".")) { in ConsumeField()
434 if (TryConsume(":") && !LookingAt("{") && !LookingAt("<")) { in ConsumeField()
464 TryConsume(":"); in ConsumeField()
470 if (field->is_repeated() && TryConsume("[")) { in ConsumeField()
479 if (TryConsume("]")) { in ConsumeField()
492 TryConsume(";") || TryConsume(","); in ConsumeField()
512 if (TryConsume("[")) { in SkipField()
515 while (TryConsume(".")) { in SkipField()
532 if (TryConsume(":") && !LookingAt("{") && !LookingAt("<")) { in SkipField()
[all …]
/external/protobuf/python/google/protobuf/
Dtext_format.py316 if tokenizer.TryConsume('['):
318 while tokenizer.TryConsume('.'):
359 tokenizer.TryConsume(':')
361 if tokenizer.TryConsume('<'):
379 while not tokenizer.TryConsume(end_token):
388 if not tokenizer.TryConsume(','):
389 tokenizer.TryConsume(';')
520 def TryConsume(self, token): member in _Tokenizer
543 if not self.TryConsume(token):
/external/nanopb-c/generator/google/protobuf/
Dtext_format.py172 if tokenizer.TryConsume('['):
174 while tokenizer.TryConsume('.'):
213 tokenizer.TryConsume(':')
215 if tokenizer.TryConsume('<'):
233 while not tokenizer.TryConsume(end_token):
354 def TryConsume(self, token): member in _Tokenizer
377 if not self.TryConsume(token):