public static GetCountryCodeToRegionCodeMap ( String filePrefix ) : List |
||
filePrefix | String | |
리턴 | List |
// 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)); }
// @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)); }
public ShortNumberUtil() { phoneUtil = PhoneNumberUtil.GetInstance(); countryCallingCodeToRegionCodeMap = BuildMetadataFromXml.GetCountryCodeToRegionCodeMap(MetaDataFilePrefix); }