Searched refs:rawString (Results 1 – 3 of 3) sorted by relevance
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/ |
D | PhoneNumberMatch.java | 58 private final String rawString; field in PhoneNumberMatch 69 PhoneNumberMatch(int start, String rawString, PhoneNumber number) { in PhoneNumberMatch() argument 73 if (rawString == null || number == null) { in PhoneNumberMatch() 77 this.rawString = rawString; in PhoneNumberMatch() 93 return start + rawString.length(); in end() 97 public String rawString() { in rawString() method in PhoneNumberMatch 98 return rawString; in rawString() 103 return Arrays.hashCode(new Object[]{start, rawString, number}); in hashCode() 115 return rawString.equals(other.rawString) && (start == other.start) in equals() 121 return "PhoneNumberMatch [" + start() + "," + end() + ") " + rawString; in toString()
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | PhoneNumberMatchTest.java | 42 assertEquals(match1.rawString(), match2.rawString()); in testValueTypeSemantics() 43 assertEquals("1 800 234 45 67", match1.rawString()); in testValueTypeSemantics()
|
D | PhoneNumberMatcherTest.java | 606 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberMatchesForLeniency() 612 if (!test.rawString.equals(match.rawString())) { in doTestNumberMatchesForLeniency() 615 + ". Found " + match.rawString()); in doTestNumberMatchesForLeniency() 627 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberNonMatchesForLeniency() 921 assertEquals(number, match.rawString()); in assertMatchProperties() 936 assertEquals(sub.subSequence(match.start(), match.end()).toString(), match.rawString()); in assertEqualRange() 1031 assertTrue(match.rawString().contentEquals(extracted)); in doTestInContext() 1080 final String rawString; field in PhoneNumberMatcherTest.NumberTest 1083 NumberTest(String rawString, String regionCode) { in NumberTest() argument 1084 this.rawString = rawString; in NumberTest() [all …]
|