Searched refs:isWellFormed (Results 1 - 5 of 5) sorted by relevance

/external/guava/guava/src/com/google/common/base/
H A DUtf8.java111 public static boolean isWellFormed(byte[] bytes) { method in class:Utf8
112 return isWellFormed(bytes, 0, bytes.length);
117 * {@link #isWellFormed(byte[])}. Note that this can be false even when {@code
118 * isWellFormed(bytes)} is true.
124 public static boolean isWellFormed(byte[] bytes, int off, int len) { method in class:Utf8
/external/guava/guava-tests/benchmark/com/google/common/base/
H A DUtf8Benchmark.java120 * Benchmarks {@link Utf8#isWellFormed} on valid byte arrays
125 @Benchmark void isWellFormed(int reps) { method in class:Utf8Benchmark
128 if (!Utf8.isWellFormed(byteArray)) {
/external/guava/guava-tests/test/com/google/common/base/
H A DUtf8Test.java242 assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
246 assertFalse(Utf8.isWellFormed(toByteArray(bytes)));
311 boolean isRoundTrippable = Utf8.isWellFormed(bytes);
312 assertEquals(isRoundTrippable, Utf8.isWellFormed(bytes, 0, numBytes));
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
H A DUtf8Test.java185 assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
189 assertFalse(Utf8.isWellFormed(toByteArray(bytes)));
/external/icu/icu4c/source/tools/gennorm2/
H A Dn2builder.cpp281 static UBool isWellFormed(const UnicodeString &s) { function
288 if(!isWellFormed(m)) {
309 if(!isWellFormed(m)) {

Completed in 117 milliseconds