Searched refs:validSurrogatePairAt (Results 1 – 2 of 2) sorted by relevance
/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 | 199 if (validSurrogatePairAt(a, p - 1) || validSurrogatePairAt(b, p - 1)) { in commonPrefix() 224 if (validSurrogatePairAt(a, a.length() - s - 1) in commonSuffix() 225 || validSurrogatePairAt(b, b.length() - s - 1)) { in commonSuffix() 236 static boolean validSurrogatePairAt(CharSequence string, int index) { in validSurrogatePairAt() method in Strings
|