GetCountryCodeToRegionCodeMap() 공개 정적인 메소드

public static GetCountryCodeToRegionCodeMap ( String filePrefix ) : List>.Dictionary
filePrefix String
리턴 List>.Dictionary
 // A mapping from a country code to the region codes which denote the
 // country/region represented by that country code. In the case of multiple
 // countries sharing a calling code, such as the NANPA countries, the one
 // indicated with "isMainCountryForCode" in the metadata should be first.
 public static Dictionary <int, List <string> > GetCountryCodeToRegionCodeMap()
 {
     return(BuildMetadataFromXml.GetCountryCodeToRegionCodeMap(
                PhoneNumberUtil.MetaDataFilePrefix));
 }
예제 #2
0
 // @VisibleForTesting
 public ShortNumberUtil(PhoneNumberUtil util)
 {
     phoneUtil = util;
     countryCallingCodeToRegionCodeMap =
         BuildMetadataFromXml.GetCountryCodeToRegionCodeMap(MetaDataFilePrefix);
 }
 // A mapping from a country code to the region codes which denote the
 // country/region represented by that country code. In the case of multiple
 // countries sharing a calling code, such as the NANPA countries, the one
 // indicated with "isMainCountryForCode" in the metadata should be first.
 public static Dictionary <int, List <String> > GetCountryCodeToRegionCodeMap()
 {
     return(BuildMetadataFromXml.GetCountryCodeToRegionCodeMap(
                PhoneNumberUtil.META_DATA_FILE_PREFIX));
 }
예제 #4
0
 public ShortNumberUtil()
 {
     phoneUtil = PhoneNumberUtil.GetInstance();
     countryCallingCodeToRegionCodeMap =
         BuildMetadataFromXml.GetCountryCodeToRegionCodeMap(MetaDataFilePrefix);
 }