Home
last modified time | relevance | path

Searched refs:escapeBytes (Results 1 – 5 of 5) sorted by relevance

/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormatEscaper.java49 static String escapeBytes(final ByteSequence input) { in escapeBytes() method in TextFormatEscaper
108 static String escapeBytes(final ByteString input) { in escapeBytes() method in TextFormatEscaper
109 return escapeBytes( in escapeBytes()
124 static String escapeBytes(final byte[] input) {
125 return escapeBytes(
145 return escapeBytes(ByteString.copyFromUtf8(input));
DTextFormat.java271 generator.print(escapeBytes((ByteString) value)); in printUnknownFieldValue()
581 generator.print(escapeBytes((ByteString) value)); in printFieldValue()
583 generator.print(escapeBytes((byte[]) value)); in printFieldValue()
687 generator.print(escapeBytes((ByteString) value)); in printUnknownFieldValue()
2283 public static String escapeBytes(ByteString input) { in escapeBytes() method in TextFormat
2284 return TextFormatEscaper.escapeBytes(input); in escapeBytes()
2288 public static String escapeBytes(byte[] input) { in escapeBytes() method in TextFormat
2289 return TextFormatEscaper.escapeBytes(input); in escapeBytes()
2415 return escapeBytes(ByteString.copyFromUtf8(input)); in escapeText()
DByteString.java33 import static com.google.protobuf.TextFormatEscaper.escapeBytes;
1290 return size() <= limit ? escapeBytes(this) : escapeBytes(substring(0, limit - 3)) + "..."; in truncateAndEscapeForDisplay()
DMessageLiteToString.java246 buffer.append(": \"").append(TextFormatEscaper.escapeBytes((ByteString) object)).append('"'); in printField()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java843 TextFormat.escapeBytes(bytes("\0\001\007\b\f\n\r\t\013\\\'\"\177"))); in testEscape()
857 assertEquals("hello", TextFormat.escapeBytes(bytes("hello"))); in testEscape()
864 assertEquals("\\341\\210\\264", TextFormat.escapeBytes(bytes(0xe1, 0x88, 0xb4))); in testEscape()