Home
last modified time | relevance | path

Searched refs:isValidUtf8 (Results 1 – 17 of 17) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8Test.java114 assertTrue(asBytes("").isValidUtf8()); in testSomeSequences()
117 assertTrue(asBytes("\u0000abc\u007f").isValidUtf8()); in testSomeSequences()
120 assertTrue(asBytes("\u00a2\u00a2").isValidUtf8()); in testSomeSequences()
123 assertTrue(asBytes("\u020ac\u020ac").isValidUtf8()); in testSomeSequences()
126 assertTrue(asBytes("\u024B62\u024B62").isValidUtf8()); in testSomeSequences()
129 assertTrue(asBytes("a\u020ac\u00a2b\\u024B62u020acc\u00a2de\u024B62").isValidUtf8()); in testSomeSequences()
145 assertTrue(not ^ Utf8.isValidUtf8(realBytes)); in assertValidUtf8()
146 assertTrue(not ^ Utf8.isValidUtf8(realBytes, 0, bytes.length)); in assertValidUtf8()
149 assertTrue(not ^ leaf.isValidUtf8()); in assertValidUtf8()
150 assertTrue(not ^ sub.isValidUtf8()); in assertValidUtf8()
[all …]
DIsValidUtf8TestUtil.java263 boolean isRoundTrippable = bs.isValidUtf8();
273 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes));
274 assertEquals(isRoundTrippable, Utf8.isValidUtf8(bytes, 0, numBytes));
302 assertEquals(isRoundTrippable, x.isValidUtf8());
315 assertEquals(isRoundTrippable, ropeADope.isValidUtf8());
381 boolean isRoundTrippable = factory.newByteString(bytes).isValidUtf8();
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DInternal.java172 public static boolean isValidUtf8(ByteString byteString) { in isValidUtf8() method in Internal
173 return byteString.isValidUtf8(); in isValidUtf8()
179 public static boolean isValidUtf8(byte[] byteArray) { in isValidUtf8() method in Internal
180 return Utf8.isValidUtf8(byteArray); in isValidUtf8()
DUtf8.java154 public static boolean isValidUtf8(byte[] bytes) { in isValidUtf8() method in Utf8
155 return processor.isValidUtf8(bytes, 0, bytes.length); in isValidUtf8()
167 public static boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() method in Utf8
168 return processor.isValidUtf8(bytes, index, limit); in isValidUtf8()
320 static boolean isValidUtf8(ByteBuffer buffer) { in isValidUtf8() method in Utf8
321 return processor.isValidUtf8(buffer, buffer.position(), buffer.remaining()); in isValidUtf8()
386 final boolean isValidUtf8(byte[] bytes, int index, int limit) { in isValidUtf8() method in Utf8.Processor
419 final boolean isValidUtf8(ByteBuffer buffer, int index, int limit) { in isValidUtf8() method in Utf8.Processor
DNioByteString.java176 public boolean isValidUtf8() { in isValidUtf8() method in NioByteString
177 return Utf8.isValidUtf8(buffer); in isValidUtf8()
DLazyStringArrayList.java121 if (bs.isValidUtf8()) { in get()
128 if (Internal.isValidUtf8(ba)) { in get()
DByteString.java780 public abstract boolean isValidUtf8(); in isValidUtf8() method
1335 public final boolean isValidUtf8() { in isValidUtf8() method in LiteralByteString
1337 return Utf8.isValidUtf8(bytes, offset, offset + size()); in isValidUtf8()
DAbstractMessageLite.java114 if (!byteString.isValidUtf8()) { in checkByteStringIsUtf8()
DRopeByteString.java418 public boolean isValidUtf8() { in isValidUtf8() method in RopeByteString
DCodedInputStream.java411 if (!Utf8.isValidUtf8(bytes, pos, pos + size)) { in readStringRequireUtf8()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java210 if (bs.isValidUtf8()) { in getDefaultString()
538 if (bs.isValidUtf8()) { in getDefaultString()
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/
DRequest.java103 if (bs.isValidUtf8()) { in getMessage()
438 if (bs.isValidUtf8()) { in getMessage()
DReply.java103 if (bs.isValidUtf8()) { in getMessage()
438 if (bs.isValidUtf8()) { in getMessage()
DDynamicRequest.java103 if (bs.isValidUtf8()) { in getMessage()
438 if (bs.isValidUtf8()) { in getMessage()
DDynamicReply.java103 if (bs.isValidUtf8()) { in getMessage()
438 if (bs.isValidUtf8()) { in getMessage()
DThirdLevelType.java104 if (bs.isValidUtf8()) { in getMessage()
479 if (bs.isValidUtf8()) { in getMessage()
DTypeWithExtensions.java104 if (bs.isValidUtf8()) { in getMessage()
479 if (bs.isValidUtf8()) { in getMessage()