Searched refs:partialIsValidUtf8 (Results 1 – 5 of 5) sorted by relevance
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | IsValidUtf8TestUtil.java | 242 int state1 = Utf8.partialIsValidUtf8(Utf8.COMPLETE, bytes, 0, i); 243 int state2 = Utf8.partialIsValidUtf8(state1, bytes, i, j); 244 int state3 = Utf8.partialIsValidUtf8(state2, bytes, j, numBytes); 265 x.partialIsValidUtf8(Utf8.COMPLETE, 0, numBytes)); 268 x.partialIsValidUtf8(Utf8.COMPLETE, 0, i)); 270 x.substring(0, i).partialIsValidUtf8(Utf8.COMPLETE, 0, i)); 272 x.partialIsValidUtf8(state1, i, j - i)); 274 x.substring(i, j).partialIsValidUtf8(state1, 0, j - i)); 276 x.partialIsValidUtf8(state2, j, numBytes - j)); 279 .partialIsValidUtf8(state2, 0, numBytes - j));
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | Utf8.java | 122 return partialIsValidUtf8(bytes, index, limit) == COMPLETE; in isValidUtf8() 143 public static int partialIsValidUtf8( in partialIsValidUtf8() method in Utf8 228 return partialIsValidUtf8(bytes, index, limit); in partialIsValidUtf8() 248 public static int partialIsValidUtf8( in partialIsValidUtf8() method in Utf8
|
D | RopeByteString.java | 429 int leftPartial = left.partialIsValidUtf8(Utf8.COMPLETE, 0, leftLength); in isValidUtf8() 430 int state = right.partialIsValidUtf8(leftPartial, 0, right.size()); in isValidUtf8() 435 protected int partialIsValidUtf8(int state, int offset, int length) { in partialIsValidUtf8() method in RopeByteString 438 return left.partialIsValidUtf8(state, offset, length); in partialIsValidUtf8() 440 return right.partialIsValidUtf8(state, offset - leftLength, length); in partialIsValidUtf8() 443 int leftPartial = left.partialIsValidUtf8(state, offset, leftLength); in partialIsValidUtf8() 444 return right.partialIsValidUtf8(leftPartial, 0, length - leftLength); in partialIsValidUtf8()
|
D | LiteralByteString.java | 168 protected int partialIsValidUtf8(int state, int offset, int length) { in partialIsValidUtf8() method in LiteralByteString 170 return Utf8.partialIsValidUtf8(state, bytes, index, index + length); in partialIsValidUtf8()
|
D | ByteString.java | 676 protected abstract int partialIsValidUtf8(int state, int offset, int length); in partialIsValidUtf8() method in ByteString
|