Lines Matching refs:region_code
56 const string& region_code = metadata.id(); in ShortNumberInfo() local
57 region_to_short_metadata_map_->insert(std::make_pair(region_code, metadata)); in ShortNumberInfo()
69 const string& region_code) const { in GetMetadataForRegion()
70 auto it = region_to_short_metadata_map_->find(region_code); in GetMetadataForRegion()
130 for (const auto& region_code : region_codes) { in IsPossibleShortNumber() local
131 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code); in IsPossibleShortNumber()
171 string region_code; in IsValidShortNumber() local
172 GetRegionCodeForShortNumberFromRegionList(number, region_codes, ®ion_code); in IsValidShortNumber()
173 if (region_codes.size() > 1 && region_code != RegionCode::GetUnknown()) { in IsValidShortNumber()
176 return IsValidShortNumberForRegion(number, region_code); in IsValidShortNumber()
237 for (const auto& region_code : region_codes) { in GetExpectedCost() local
239 GetExpectedCostForRegion(number, region_code); in GetExpectedCost()
264 string* region_code) const { in GetRegionCodeForShortNumberFromRegionList()
266 region_code->assign(RegionCode::GetUnknown()); in GetRegionCodeForShortNumberFromRegionList()
269 region_code->assign(region_codes.front()); in GetRegionCodeForShortNumberFromRegionList()
280 region_code->assign(region_code_it); in GetRegionCodeForShortNumberFromRegionList()
284 region_code->assign(RegionCode::GetUnknown()); in GetRegionCodeForShortNumberFromRegionList()
287 string ShortNumberInfo::GetExampleShortNumber(const string& region_code) const { in GetExampleShortNumber()
288 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code); in GetExampleShortNumber()
299 string ShortNumberInfo::GetExampleShortNumberForCost(const string& region_code, in GetExampleShortNumberForCost() argument
301 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code); in GetExampleShortNumberForCost()
328 const string& region_code) const { in ConnectsToEmergencyNumber()
329 return MatchesEmergencyNumberHelper(number, region_code, in ConnectsToEmergencyNumber()
334 const string& region_code) const { in IsEmergencyNumber()
335 return MatchesEmergencyNumberHelper(number, region_code, in IsEmergencyNumber()
340 const string& region_code, bool allow_prefix_match) const { in MatchesEmergencyNumberHelper() argument
350 const PhoneMetadata* metadata = GetMetadataForRegion(region_code); in MatchesEmergencyNumberHelper()
357 regions_where_emergency_numbers_must_be_exact_->find(region_code) == in MatchesEmergencyNumberHelper()
367 string region_code; in IsCarrierSpecific() local
368 GetRegionCodeForShortNumberFromRegionList(number, region_codes, ®ion_code); in IsCarrierSpecific()
371 const PhoneMetadata* phone_metadata = GetMetadataForRegion(region_code); in IsCarrierSpecific()