cpp/src/phonenumbers/phonenumberutil.cc
// Returns a pointer to the phone metadata for the appropriate region or NULL
// if the region code is invalid or unknown.
Returns a pointer to the phone metadata for the appropriate region or NULL
if the region code is invalid or unknown.
Returns a pointer to the phone metadata for the appropriate region or NULL if the region code is invalid or unknown .
const PhoneMetadata* PhoneNumberUtil::GetMetadataForRegion(
    const string& region_code) const {
  std::map<string, PhoneMetadata>::const_iterator it =
      region_to_metadata_map_->find(region_code);
  if (it != region_to_metadata_map_->end()) {
    return &it->second;
  }
  return NULL;
}
const PhoneMetadata * PhoneNumberUtil :: GetMetadataForRegion ( const string & region_code ) const { std :: map < string , PhoneMetadata > :: const_iterator it = region_to_metadata_map_ -> find ( region_code ) ; if ( it != region_to_metadata_map_ -> end ( ) ) { return & it -> second ; } return NULL ; }
Returns a pointer to the phone metadata for the appropriate region or NULL
if the region code is invalid or unknown.
Returns a pointer to the phone metadata for the appropriate region or NULL if the region code is invalid or unknown .