Home
last modified time | relevance | path

Searched refs:parseInt32 (Results 1 – 4 of 4) sorted by relevance

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java899 assertEquals(0, TextFormat.parseInt32("0")); in testParseInteger()
900 assertEquals(1, TextFormat.parseInt32("1")); in testParseInteger()
901 assertEquals(-1, TextFormat.parseInt32("-1")); in testParseInteger()
902 assertEquals(12345, TextFormat.parseInt32("12345")); in testParseInteger()
903 assertEquals(-12345, TextFormat.parseInt32("-12345")); in testParseInteger()
904 assertEquals(2147483647, TextFormat.parseInt32("2147483647")); in testParseInteger()
905 assertEquals(-2147483648, TextFormat.parseInt32("-2147483648")); in testParseInteger()
937 assertEquals(0x1234abcd, TextFormat.parseInt32("0x1234abcd")); in testParseInteger()
938 assertEquals(-0x1234abcd, TextFormat.parseInt32("-0x1234abcd")); in testParseInteger()
943 assertEquals(01234567, TextFormat.parseInt32("01234567")); in testParseInteger()
[all …]
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java1741 private int parseInt32(JsonElement json) throws InvalidProtocolBufferException { in parseInt32() method in JsonFormat.ParserImpl
1913 int numericValue = parseInt32(json); in parseEnum()
1961 return parseInt32(json); in parseFieldValue()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormat.java1086 final int result = parseInt32(currentToken); in consumeInt32()
2460 static int parseInt32(final String text) throws NumberFormatException { in parseInt32() method in TextFormat
DDescriptors.java1517 defaultValue = TextFormat.parseInt32(proto.getDefaultValue()); in crossLink()