cpp/src/phonenumbers/phonenumberutil.cc
// Returns the region code that matches the specific country calling code. In
// the case of no region code being found, the unknown region code will be
// returned.
Returns the region code that matches the specific country calling code. In
the case of no region code being found, the unknown region code will be
returned.
Returns the region code that matches the specific country calling code . In the case of no region code being found the unknown region code will be returned .
void PhoneNumberUtil::GetRegionCodeForCountryCode(
    int country_calling_code,
    string* region_code) const {
  DCHECK(region_code);
  std::list<string> region_codes;
  GetRegionCodesForCountryCallingCode(country_calling_code, &region_codes);
  *region_code = (region_codes.size() > 0) ?
      region_codes.front() : RegionCode::GetUnknown();
}
void PhoneNumberUtil :: GetRegionCodeForCountryCode ( int country_calling_code , string * region_code ) const { DCHECK ( region_code ) ; std :: list < string > region_codes ; GetRegionCodesForCountryCallingCode ( country_calling_code , & region_codes ) ; * region_code = ( region_codes . size ( ) > 0 ) ? region_codes . front ( ) : RegionCode :: GetUnknown ( ) ; }
Returns the region code that matches the specific country calling code.
Returns the region code that matches the specific country calling code .