Home
last modified time | relevance | path

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

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java638 TextFormat.unescapeBytes("\\000\\001\\a\\b\\f\\n\\r\\t\\v\\\\\\'\\\"")); in testEscape()
648 assertEquals(bytes("hello"), TextFormat.unescapeBytes("hello")); in testEscape()
655 assertEquals(bytes(0xe1, 0x88, 0xb4), TextFormat.unescapeBytes("\\341\\210\\264")); in testEscape()
657 assertEquals(bytes(0xe1, 0x88, 0xb4), TextFormat.unescapeBytes("\\xe1\\x88\\xb4")); in testEscape()
662 assertEquals(zhByteString, TextFormat.unescapeBytes(zh)); in testEscape()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormat.java1149 final ByteString result = unescapeBytes(escaped); in consumeByteString()
2043 public static ByteString unescapeBytes(final CharSequence charString) in unescapeBytes() method in TextFormat
2175 return unescapeBytes(input).toStringUtf8(); in unescapeText()
DDescriptors.java1506 defaultValue = TextFormat.unescapeBytes(proto.getDefaultValue()); in crossLink()