Home
last modified time | relevance | path

Searched refs:toStringUtf8 (Results 1 – 16 of 16) sorted by relevance

/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DLazyStringArrayList.java117 String s = bs.toStringUtf8(); in get()
124 String s = Internal.toStringUtf8(ba); in get()
278 return ((ByteString) o).toStringUtf8(); in asString()
280 return Internal.toStringUtf8((byte[]) o); in asString()
DInternal.java190 public static String toStringUtf8(byte[] bytes) { in toStringUtf8() method in Internal
DByteString.java819 public final String toStringUtf8() { in toStringUtf8() method
DTextFormat.java1265 return consumeByteString().toStringUtf8(); in consumeString()
2428 return unescapeBytes(input).toStringUtf8(); in unescapeText()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DWrappersLiteOfMethodTest.java59 assertTrue(message.getFieldBytes().getValue().toStringUtf8().equals("233")); in testOf()
DWrappersOfMethodTest.java59 assertTrue(message.getFieldBytes().getValue().toStringUtf8().equals("233")); in testOf()
DUnknownFieldSetTest.java142 assertThat(lengthDelimited.get(0).toStringUtf8()).isEqualTo("some data"); in testClone_lengthDelimited()
143 assertThat(lengthDelimited.get(1).toStringUtf8()).isEqualTo("some more data"); in testClone_lengthDelimited()
149 assertThat(lengthDelimited2.get(0).toStringUtf8()).isEqualTo("some data"); in testClone_lengthDelimited()
150 assertThat(lengthDelimited2.get(1).toStringUtf8()).isEqualTo("some more data"); in testClone_lengthDelimited()
DWireFormatTest.java330 assertEquals("bar", raw.getItem(2).getMessage().toStringUtf8()); in testSerializeMessageSetWithFlag()
386 assertEquals("bar", field.getLengthDelimitedList().get(0).toStringUtf8()); in testParseMessageSetWithFlag()
DByteStringTest.java486 "copyToStringUtf8 must respect the charset", testString, byteString.toStringUtf8()); in testToStringUtf8()
DWireFormatLiteTest.java325 assertEquals("bar", raw.getItem(2).getMessage().toStringUtf8()); in testSerializeMessageSetWithFlag()
DTestUtil.java3761 return readBytesFromFile(filePath).toStringUtf8(); in readTextFromFile()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DWireFormatTest.java319 assertEquals("bar", raw.getItem(2).getMessage().toStringUtf8()); in testSerializeMessageSetWithFlag()
382 assertEquals("bar", field.getLengthDelimitedList().get(0).toStringUtf8()); in testParseMessageSetWithFlag()
DByteStringTest.java368 testString, byteString.toStringUtf8()); in testToStringUtf8()
DTestUtil.java2969 return readBytesFromFile(filePath).toStringUtf8(); in readTextFromFile()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java209 java.lang.String s = bs.toStringUtf8(); in getDefaultString()
537 java.lang.String s = bs.toStringUtf8(); in getDefaultString()
DUtils.java153 IRubyObject wrapped = runtime.newString(((ByteString) value).toStringUtf8()); in wrapPrimaryValue()