Searched refs:commonPrefix (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 | 142 assertEquals("", Strings.commonPrefix("", "")); in testCommonPrefix() 143 assertEquals("", Strings.commonPrefix("abc", "")); in testCommonPrefix() 144 assertEquals("", Strings.commonPrefix("", "abc")); in testCommonPrefix() 145 assertEquals("", Strings.commonPrefix("abcde", "xyz")); in testCommonPrefix() 146 assertEquals("", Strings.commonPrefix("xyz", "abcde")); in testCommonPrefix() 147 assertEquals("", Strings.commonPrefix("xyz", "abcxyz")); in testCommonPrefix() 148 assertEquals("a", Strings.commonPrefix("abc", "aaaaa")); in testCommonPrefix() 149 assertEquals("aa", Strings.commonPrefix("aa", "aaaaa")); in testCommonPrefix() 151 Strings.commonPrefix(new StringBuffer("abcdef"), "abcxyz")); in testCommonPrefix() 155 Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCABxyz")); in testCommonPrefix() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | StringsTest.java | 144 assertEquals("", Strings.commonPrefix("", "")); in testCommonPrefix() 145 assertEquals("", Strings.commonPrefix("abc", "")); in testCommonPrefix() 146 assertEquals("", Strings.commonPrefix("", "abc")); in testCommonPrefix() 147 assertEquals("", Strings.commonPrefix("abcde", "xyz")); in testCommonPrefix() 148 assertEquals("", Strings.commonPrefix("xyz", "abcde")); in testCommonPrefix() 149 assertEquals("", Strings.commonPrefix("xyz", "abcxyz")); in testCommonPrefix() 150 assertEquals("a", Strings.commonPrefix("abc", "aaaaa")); in testCommonPrefix() 151 assertEquals("aa", Strings.commonPrefix("aa", "aaaaa")); in testCommonPrefix() 153 Strings.commonPrefix(new StringBuffer("abcdef"), "abcxyz")); in testCommonPrefix() 157 Strings.commonPrefix("abc\uD8AB\uDCABdef", "abc\uD8AB\uDCABxyz")); in testCommonPrefix() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Strings.java | 189 public static String commonPrefix(CharSequence a, CharSequence b) { in commonPrefix() method in Strings
|