Searched refs:escapeBytes (Results 1 – 5 of 5) sorted by relevance
49 static String escapeBytes(final ByteSequence input) { in escapeBytes() method in TextFormatEscaper108 static String escapeBytes(final ByteString input) { in escapeBytes() method in TextFormatEscaper109 return escapeBytes( in escapeBytes()124 static String escapeBytes(final byte[] input) {125 return escapeBytes(145 return escapeBytes(ByteString.copyFromUtf8(input));
271 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 TextFormat2284 return TextFormatEscaper.escapeBytes(input); in escapeBytes()2288 public static String escapeBytes(byte[] input) { in escapeBytes() method in TextFormat2289 return TextFormatEscaper.escapeBytes(input); in escapeBytes()2415 return escapeBytes(ByteString.copyFromUtf8(input)); in escapeText()
33 import static com.google.protobuf.TextFormatEscaper.escapeBytes;1290 return size() <= limit ? escapeBytes(this) : escapeBytes(substring(0, limit - 3)) + "..."; in truncateAndEscapeForDisplay()
246 buffer.append(": \"").append(TextFormatEscaper.escapeBytes((ByteString) object)).append('"'); in printField()
843 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()