/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | IsValidUtf8TestUtil.java | 300 int state1 = Utf8.partialIsValidUtf8(Utf8.COMPLETE, bytes, 0, i); 301 int state2 = Utf8.partialIsValidUtf8(state1, bytes, i, j); 302 int state3 = Utf8.partialIsValidUtf8(state2, bytes, j, numBytes); 319 assertEquals(state3, x.partialIsValidUtf8(Utf8.COMPLETE, 0, numBytes)); 321 assertEquals(state1, x.partialIsValidUtf8(Utf8.COMPLETE, 0, i)); 322 assertEquals(state1, x.substring(0, i).partialIsValidUtf8(Utf8.COMPLETE, 0, i)); 323 assertEquals(state2, x.partialIsValidUtf8(state1, i, j - i)); 324 assertEquals(state2, x.substring(i, j).partialIsValidUtf8(state1, 0, j - i)); 325 assertEquals(state3, x.partialIsValidUtf8(state2, j, numBytes - j)); 326 assertEquals(state3, x.substring(j, numBytes).partialIsValidUtf8(state2, 0, numBytes - j));
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Utf8.java | 175 public static int partialIsValidUtf8(int state, byte[] bytes, int index, int limit) { in partialIsValidUtf8() method in Utf8 176 return processor.partialIsValidUtf8(state, bytes, index, limit); in partialIsValidUtf8() 319 static int partialIsValidUtf8(int state, ByteBuffer buffer, int index, int limit) { in partialIsValidUtf8() method in Utf8 320 return processor.partialIsValidUtf8(state, buffer, index, limit); in partialIsValidUtf8() 390 return partialIsValidUtf8(COMPLETE, bytes, index, limit) == COMPLETE; in isValidUtf8() 406 abstract int partialIsValidUtf8(int state, byte[] bytes, int index, int limit); in partialIsValidUtf8() method in Utf8.Processor 417 return partialIsValidUtf8(COMPLETE, buffer, index, limit) == COMPLETE; in isValidUtf8() 426 final int partialIsValidUtf8( in partialIsValidUtf8() method in Utf8.Processor 430 return partialIsValidUtf8(state, buffer.array(), offset + index, offset + limit); in partialIsValidUtf8() 533 return partialIsValidUtf8(buffer, index, limit); in partialIsValidUtf8Default() [all …]
|
D | RopeByteString.java | 464 int leftPartial = left.partialIsValidUtf8(Utf8.COMPLETE, 0, leftLength); in isValidUtf8() 465 int state = right.partialIsValidUtf8(leftPartial, 0, right.size()); in isValidUtf8() 470 protected int partialIsValidUtf8(int state, int offset, int length) { in partialIsValidUtf8() method 473 return left.partialIsValidUtf8(state, offset, length); in partialIsValidUtf8() 475 return right.partialIsValidUtf8(state, offset - leftLength, length); in partialIsValidUtf8() 478 int leftPartial = left.partialIsValidUtf8(state, offset, leftLength); in partialIsValidUtf8() 479 return right.partialIsValidUtf8(leftPartial, 0, length - leftLength); in partialIsValidUtf8()
|
D | NioByteString.java | 183 protected int partialIsValidUtf8(int state, int offset, int length) { in partialIsValidUtf8() method in NioByteString 184 return Utf8.partialIsValidUtf8(state, buffer, offset, offset + length); in partialIsValidUtf8()
|
D | ByteString.java | 855 protected abstract int partialIsValidUtf8(int state, int offset, int length); in partialIsValidUtf8() method 1391 protected final int partialIsValidUtf8(int state, int offset, int length) { in partialIsValidUtf8() method in LiteralByteString 1393 return Utf8.partialIsValidUtf8(state, bytes, index, index + length); in partialIsValidUtf8()
|