Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/io/
Dtokenizer.cc322 inline bool Tokenizer::TryConsume(char c) { in TryConsume() function in google::protobuf::io::Tokenizer
378 } else if (TryConsume('x')) { in ConsumeString()
383 } else if (TryConsume('u')) { in ConsumeString()
390 } else if (TryConsume('U')) { in ConsumeString()
393 if (!TryConsume('0') || in ConsumeString()
394 !TryConsume('0') || in ConsumeString()
395 !(TryConsume('0') || TryConsume('1')) || in ConsumeString()
426 if (started_with_zero && (TryConsume('x') || TryConsume('X'))) { in ConsumeNumber()
446 if (TryConsume('.')) { in ConsumeNumber()
452 if (TryConsume('e') || TryConsume('E')) { in ConsumeNumber()
[all …]
Dtokenizer.h380 inline bool TryConsume(char c);
/external/protobuf/python/google/protobuf/
Dtext_format.py473 if tokenizer.TryConsume('['):
475 while tokenizer.TryConsume('.'):
540 tokenizer.TryConsume(':')
547 and tokenizer.TryConsume('[')):
551 if tokenizer.TryConsume(']'): break
563 if not tokenizer.TryConsume(','):
564 tokenizer.TryConsume(';')
579 if tokenizer.TryConsume('<'):
600 while not tokenizer.TryConsume(end_token):
690 if tokenizer.TryConsume(':') and not tokenizer.LookingAt(
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc149 bool Parser::TryConsume(const char* text) { in TryConsume() function in google::protobuf::compiler::Parser
159 if (TryConsume(text)) { in Consume()
168 if (TryConsume(text)) { in Consume()
207 if (TryConsume("-")) { in ConsumeSignedInteger()
433 } else if (TryConsume("{")) { in SkipStatement()
451 } else if (TryConsume("{")) { in SkipRestOfBlock()
829 if (TryConsume("map")) { in ParseMessageFieldNoLabel()
1058 } while (TryConsume(",")); in ParseFieldOptions()
1112 if (TryConsume("-")) { in ParseDefaultAssignment()
1137 if (TryConsume("-")) { in ParseDefaultAssignment()
[all …]
Dparser.h153 bool TryConsume(const char* text);
/external/protobuf/src/google/protobuf/
Dtext_format.cc359 if (TryConsume("<")) { in ConsumeMessageDelimiter()
385 TryConsume("[")) { in ConsumeField()
389 TryConsume(":"); // ':' is optional between message labels and values. in ConsumeField()
400 if (TryConsume("[")) { in ConsumeField()
479 if (TryConsume(":") && !LookingAt("{") && !LookingAt("<")) { in ConsumeField()
509 TryConsume(":"); in ConsumeField()
515 if (field->is_repeated() && TryConsume("[")) { in ConsumeField()
524 if (TryConsume("]")) { in ConsumeField()
537 TryConsume(";") || TryConsume(","); in ConsumeField()
557 if (TryConsume("[")) { in SkipField()
[all …]
/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):