OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:overlapPoint
(Results
1 - 2
of
2
) sorted by null
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
FormatUtilsTests.java
30
assertEquals(2, FormatUtils.
overlapPoint
("abcde", "cdefg"));
31
assertEquals(-1, FormatUtils.
overlapPoint
("John Doe", "John Doe"));
32
assertEquals(5, FormatUtils.
overlapPoint
("John Doe", "Doe, John"));
33
assertEquals(-1, FormatUtils.
overlapPoint
("Mr. John Doe", "Mr. Doe, John"));
34
assertEquals(13, FormatUtils.
overlapPoint
("John Herbert Doe", "Doe, John Herbert"));
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
FormatUtils.java
34
*
overlapPoint
("abcd", "cdef") == 2.
36
public static int
overlapPoint
(CharArrayBuffer buffer1, CharArrayBuffer buffer2) {
40
return
overlapPoint
(Arrays.copyOfRange(buffer1.data, 0, buffer1.sizeCopied),
46
*
overlapPoint
("abcd", "cdef") == 2.
49
public static int
overlapPoint
(String string1, String string2) {
53
return
overlapPoint
(string1.toCharArray(), string2.toCharArray());
58
*
overlapPoint
("abcd", "cdef") == 2.
60
public static int
overlapPoint
(char[] array1, char[] array2) {
Completed in 3916 milliseconds