Home
last modified time | relevance | path

Searched refs:leniency (Results 1 – 14 of 14) sorted by relevance

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberMatcher.java199 private final Leniency leniency; field in PhoneNumberMatcher
225 PhoneNumberMatcher(PhoneNumberUtil util, CharSequence text, String country, Leniency leniency, in PhoneNumberMatcher() argument
228 if ((util == null) || (leniency == null)) { in PhoneNumberMatcher()
237 this.leniency = leniency; in PhoneNumberMatcher()
396 if (leniency.compareTo(Leniency.VALID) >= 0) { in parseAndVerify()
436 if (leniency.verify(number, candidate, phoneUtil)) { in parseAndVerify()
DPhoneNumberUtil.java2910 final CharSequence text, final String defaultRegion, final Leniency leniency,
2917 PhoneNumberUtil.this, text, defaultRegion, leniency, maxTries);
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberMatcherTest.java601 private void doTestNumberMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) { in doTestNumberMatchesForLeniency() argument
606 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberMatchesForLeniency()
610 System.err.println("No match found in " + test.toString() + " for leniency: " + leniency); in doTestNumberMatchesForLeniency()
623 private void doTestNumberNonMatchesForLeniency(List<NumberTest> testCases, Leniency leniency) { in doTestNumberNonMatchesForLeniency() argument
627 findNumbersForLeniency(test.rawString, test.region, leniency); in doTestNumberNonMatchesForLeniency()
631 System.err.println("Match found in " + test.toString() + " for leniency: " + leniency); in doTestNumberNonMatchesForLeniency()
1014 List<NumberContext> contextPairs, Leniency leniency) { in doTestInContext() argument
1022 phoneUtil.findNumbers(text, defaultCountry, leniency, Long.MAX_VALUE).iterator(); in doTestInContext()
1033 ensureTermination(text, defaultCountry, leniency); in doTestInContext()
1041 private void ensureTermination(String text, String defaultCountry, Leniency leniency) { in ensureTermination() argument
[all …]
/external/icu/icu4c/source/test/intltest/
Ddtfmrgts.cpp1599 UBool leniency; member
1639 sdmft->setLenient(itemPtr->leniency); in TestT10619()
1640 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->leniency, status); in TestT10619()
1641 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr->leniency, status); in TestT10619()
1642 sdmft->setBooleanAttribute(UDAT_PARSE_PARTIAL_LITERAL_MATCH, itemPtr->leniency, status); in TestT10619()
1649 " - leniency " + itemPtr->leniency); in TestT10619()
Ddtfmttst.cpp4492 UBool leniency; member
4532 sdmft->setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, itemPtr->leniency, status). in TestDateFormatLeniency()
4533 setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, itemPtr->leniency, status). in TestDateFormatLeniency()
4534 setBooleanAttribute(UDAT_PARSE_PARTIAL_LITERAL_MATCH, itemPtr->leniency, status); in TestDateFormatLeniency()
4544 " - leniency " + itemPtr->leniency); in TestDateFormatLeniency()
4553 " - leniency " + itemPtr->leniency); in TestDateFormatLeniency()
4571 UBool leniency; member
4632 … sdmft->setBooleanAttribute(UDAT_PARSE_MULTIPLE_PATTERNS_FOR_MATCH, itemPtr->leniency, status); in TestParseMultiPatternMatch()
4641 " - leniency " + itemPtr->leniency); in TestParseMultiPatternMatch()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDateFormatTest.java4693 public boolean leniency; in TestDateFormatLeniency() field in DateFormatTest.TestDateFormatLeniencyItem
4700 leniency = len; in TestDateFormatLeniency()
4719 sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_WHITESPACE, item.leniency) in TestDateFormatLeniency()
4720 .setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_NUMERIC, item.leniency) in TestDateFormatLeniency()
4721 … .setBooleanAttribute(BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH, item.leniency); in TestDateFormatLeniency()
4729 … errln("error: unexpected parse success..." + item.parseString + " w/ lenient=" + item.leniency in TestDateFormatLeniency()
4799 public boolean leniency; in TestParseMultiPatternMatch() field in DateFormatTest.TestMultiPatternMatchItem
4805 leniency = len; in TestParseMultiPatternMatch()
4853 sdfmt.setLenient(item.leniency); in TestParseMultiPatternMatch()
4854 … sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH, item.leniency); in TestParseMultiPatternMatch()
[all …]
DDateFormatRegressionTest.java1394 public boolean leniency; in TestT10619() field in DateFormatRegressionTest.TestDateFormatLeniencyItem
1400 leniency = len; in TestT10619()
1427 sdfmt.setLenient(item.leniency); in TestT10619()
1436 …or: unexpected parse success..."+item.parseString + " w/ lenient="+item.leniency+" should have fai… in TestT10619()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDateFormatTest.java4692 public boolean leniency; in TestDateFormatLeniency() field in DateFormatTest.TestDateFormatLeniencyItem
4699 leniency = len; in TestDateFormatLeniency()
4718 sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_WHITESPACE, item.leniency) in TestDateFormatLeniency()
4719 .setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_NUMERIC, item.leniency) in TestDateFormatLeniency()
4720 … .setBooleanAttribute(BooleanAttribute.PARSE_PARTIAL_LITERAL_MATCH, item.leniency); in TestDateFormatLeniency()
4728 … errln("error: unexpected parse success..." + item.parseString + " w/ lenient=" + item.leniency in TestDateFormatLeniency()
4798 public boolean leniency; in TestParseMultiPatternMatch() field in DateFormatTest.TestMultiPatternMatchItem
4804 leniency = len; in TestParseMultiPatternMatch()
4852 sdfmt.setLenient(item.leniency); in TestParseMultiPatternMatch()
4853 … sdfmt.setBooleanAttribute(BooleanAttribute.PARSE_MULTIPLE_PATTERNS_FOR_MATCH, item.leniency); in TestParseMultiPatternMatch()
[all …]
DDateFormatRegressionTest.java1393 public boolean leniency; in TestT10619() field in DateFormatRegressionTest.TestDateFormatLeniencyItem
1399 leniency = len; in TestT10619()
1426 sdfmt.setLenient(item.leniency); in TestT10619()
1435 …or: unexpected parse success..."+item.parseString + " w/ lenient="+item.leniency+" should have fai… in TestT10619()
/external/libphonenumber/
Drelease_notes.txt1105 metadata that they may be omitted. Applies to leniency level VALID and higher.
/external/jline/src/src/test/resources/jline/example/
Denglish.gz
/external/toolchain-utils/dejagnu/gdb_baseline/
Di686-pc-linux-gnu2030 PASS: gdb.base/constvars.exp: print *leniency
2031 PASS: gdb.base/constvars.exp: ptype leniency
Dx86_64-cros-linux-gnu2264 PASS: gdb.base/constvars.exp: print *leniency
2265 PASS: gdb.base/constvars.exp: ptype leniency
Darmv7a-cros-linux-gnueabi2071 PASS: gdb.base/constvars.exp: print *leniency
2072 PASS: gdb.base/constvars.exp: ptype leniency