Lines Matching defs:region

53 // Small class that holds the number we want to test and the region for which it
63 NumberTest(const string& raw_string, const string& region)
65 region_(region) {
96 const string& text, const string& region,
98 return new PhoneNumberMatcher(phone_util_, text, region, leniency,
187 const string& region, const string& number) {
189 DoTestInContext(number, region, contexts, PhoneNumberMatcher::VALID);
194 PhoneNumberMatcher matcher(text, region);
199 DoTestInContext(number, region, contexts, PhoneNumberMatcher::POSSIBLE);
204 PhoneNumberMatcher matcher(phone_util_, text, region,
212 // Variant of FindMatchesInContexts that uses a default number and region.
215 const string& region = RegionCode::US();
218 FindMatchesInContexts(contexts, is_valid, is_possible, region, number);
308 << "Unexpected phone region in '" << text << "'; extracted '"
767 const string& region = RegionCode::US();
769 number1.set_country_code(phone_util_.GetCountryCodeForRegion(region));
774 number2.set_country_code(phone_util_.GetCountryCodeForRegion(region));
779 phone_util_, text, region, PhoneNumberMatcher::VALID, 100);
794 const string& region = RegionCode::US();
796 phone_util_, text, region, PhoneNumberMatcher::VALID, 100);
1058 // Fail on non-international prefix if region code is ZZ.
1101 const string& region = RegionCode::NZ();
1104 number1.set_country_code(phone_util_.GetCountryCodeForRegion(region));
1109 number2.set_country_code(phone_util_.GetCountryCodeForRegion(region));
1114 phone_util_, text, region, PhoneNumberMatcher::POSSIBLE, 100);