Searched refs:validSurrogatePairAt (Results 1 – 3 of 3) sorted by relevance
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | StringsTest.java | 208 assertTrue(Strings.validSurrogatePairAt("\uD8AB\uDCAB", 0)); in testValidSurrogatePairAt() 209 assertTrue(Strings.validSurrogatePairAt("abc\uD8AB\uDCAB", 3)); in testValidSurrogatePairAt() 210 assertTrue(Strings.validSurrogatePairAt("abc\uD8AB\uDCABxyz", 3)); in testValidSurrogatePairAt() 211 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uD8AB", 0)); in testValidSurrogatePairAt() 212 assertFalse(Strings.validSurrogatePairAt("\uDCAB\uDCAB", 0)); in testValidSurrogatePairAt() 213 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", -1)); in testValidSurrogatePairAt() 214 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", 1)); in testValidSurrogatePairAt() 215 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", -2)); in testValidSurrogatePairAt() 216 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", 2)); in testValidSurrogatePairAt() 217 assertFalse(Strings.validSurrogatePairAt("x\uDCAB", 0)); in testValidSurrogatePairAt() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | StringsTest.java | 210 assertTrue(Strings.validSurrogatePairAt("\uD8AB\uDCAB", 0)); in testValidSurrogatePairAt() 211 assertTrue(Strings.validSurrogatePairAt("abc\uD8AB\uDCAB", 3)); in testValidSurrogatePairAt() 212 assertTrue(Strings.validSurrogatePairAt("abc\uD8AB\uDCABxyz", 3)); in testValidSurrogatePairAt() 213 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uD8AB", 0)); in testValidSurrogatePairAt() 214 assertFalse(Strings.validSurrogatePairAt("\uDCAB\uDCAB", 0)); in testValidSurrogatePairAt() 215 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", -1)); in testValidSurrogatePairAt() 216 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", 1)); in testValidSurrogatePairAt() 217 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", -2)); in testValidSurrogatePairAt() 218 assertFalse(Strings.validSurrogatePairAt("\uD8AB\uDCAB", 2)); in testValidSurrogatePairAt() 219 assertFalse(Strings.validSurrogatePairAt("x\uDCAB", 0)); in testValidSurrogatePairAt() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Strings.java | 198 if (validSurrogatePairAt(a, p - 1) || validSurrogatePairAt(b, p - 1)) { in commonPrefix() 222 if (validSurrogatePairAt(a, a.length() - s - 1) in commonSuffix() 223 || validSurrogatePairAt(b, b.length() - s - 1)) { in commonSuffix() 234 static boolean validSurrogatePairAt(CharSequence string, int index) { in validSurrogatePairAt() method in Strings
|