Lines Matching defs:FormatUtils
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"));
59 FormatUtils.copyToCharArrayBuffer(text, buffer);
60 assertEquals(text, FormatUtils.charArrayBufferToString(buffer));
67 FormatUtils.copyToCharArrayBuffer(value, buffer);
75 assertEquals(-1, FormatUtils.indexOfWordPrefix("test", null));
79 assertEquals(-1, FormatUtils.indexOfWordPrefix(null, "TE"));
112 assertEquals(expectedIndex, FormatUtils.indexOfWordPrefix(text, wordPrefix));