Home
last modified time | relevance | path

Searched refs:tryConsume (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormat.java851 public boolean tryConsume(final String token) { in tryConsume() method in TextFormat.Tokenizer
865 if (!tryConsume(token)) { in consume()
1620 if (tokenizer.tryConsume("[")) { in mergeField()
1623 while (tokenizer.tryConsume(".")) { in mergeField()
1698 if (tokenizer.tryConsume(":") && !tokenizer.lookingAt("{") && !tokenizer.lookingAt("<")) { in mergeField()
1708 tokenizer.tryConsume(":"); // optional in mergeField()
1748 if (!tokenizer.tryConsume(";")) { in mergeField()
1749 tokenizer.tryConsume(","); in mergeField()
1767 if (field.isRepeated() && tokenizer.tryConsume("[")) { in consumeFieldValues()
1768 if (!tokenizer.tryConsume("]")) { // Allow "foo: []" to be treated as empty. in consumeFieldValues()
[all …]
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/javadoc/
DCharStream.java37 boolean tryConsume(String expected) { in tryConsume() method in CharStream
DJavadocLexer.java142 } else if (input.tryConsume(" ") || input.tryConsume("\t")) { in consumeToken()
164 } else if (input.tryConsume("{")) { in consumeToken()
167 } else if (input.tryConsume("}")) { in consumeToken()