Home
last modified time | relevance | path

Searched refs:country (Results 1 - 25 of 144) sorted by relevance

123456

/third_party/libphonenumber/migrator/src/main/java/com/google/phonenumbers/migrator/
H A DMigrationFactory.java32 * country code is required as well as a number input (either a single E.164 number or a file
44 * corresponding BCP-47 country code (e.g. 44 for United Kingdom).
46 public static MigrationJob createMigration(String number, String country) throws IOException { in createMigration() argument
47 DigitSequence countryCode = DigitSequence.of(country); in createMigration()
65 * country code (e.g. 1 for Canada), and custom user recipes.csv file.
68 String country, in createCustomRecipeMigration()
70 DigitSequence countryCode = DigitSequence.of(country); in createCustomRecipeMigration()
81 * BCP-47 country code (e.g. 44) that numbers in the file belong to.
84 public static MigrationJob createMigration(Path file, String country, boolean exportInvalidMigrations) in createMigration() argument
87 DigitSequence countryCode = DigitSequence.of(country); in createMigration()
67 createCustomRecipeMigration(String number, String country, CsvTable<RangeKey> recipes) createCustomRecipeMigration() argument
107 createCustomRecipeMigration(Path file, String country, CsvTable<RangeKey> recipes) createCustomRecipeMigration() argument
125 createCustomRecipeMigration(ImmutableList<String> numbers, String country, CsvTable<RangeKey> recipes) createCustomRecipeMigration() argument
140 createMigration(ImmutableList<String> numbers, String country, boolean exportInvalidMigrations) createMigration() argument
[all...]
/third_party/icu/tools/unicodetools/com/ibm/rbm/gui/
H A DPreferencesDialog.java235 String country = null; in updatePreferences()
243 country = Resources.getCountry(encoding); in updatePreferences()
245 RBManagerGUI.debugMsg("Before: " + language + "_" + country + "_" + variant); in updatePreferences()
246 if (country == null) country = new String(); in updatePreferences()
247 if (variant == null) locale = new Locale(language, country); in updatePreferences()
248 else locale = new Locale(language, country, variant); in updatePreferences()
253 country = Resources.getCountry(encoding); in updatePreferences()
255 if (country == null) country in updatePreferences()
[all...]
H A DRBStatisticsPanel.java128 jTextFieldStatsCountry = new JTextField((bundle.country == null ? "" : bundle.country),25); in initComponents()
335 jTextFieldStatsCountry.setText(bundle.country == null ? "" : bundle.country); in updateComponents()
352 bundle.country = jTextFieldStatsCountry.getText().trim(); in updateBundleInfo()
/third_party/json/tests/src/
H A Dunit-udt.cpp28 enum class country class
57 country m_country{};
59 person(const age& a, name n, const country& c) : m_age(a), m_name(std::move(n)), m_country(c) {} in person()
96 static void to_json(BasicJsonType& j, country c) in to_json()
100 case country::china: in to_json()
103 case country::france: in to_json()
106 case country::russia: in to_json()
117 j = BasicJsonType{{"age", p.m_age}, {"name", p.m_name}, {"country", p.m_country}}; in to_json()
185 static void from_json(const BasicJsonType& j, country& c) in from_json()
188 const std::map<std::string, country> in from_json()
273 const auto country = global() variable
312 const udt::country country = contact_json["person"]["country"]; global() variable
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DLocaleUtility.java27 String country = ""; in getLocaleFromName()
38 country = name.substring(i1); in getLocaleFromName()
40 country = name.substring(i1, i2); in getLocaleFromName()
45 return new Locale(language, country, variant); in getLocaleFromName()
H A DZoneMeta.java34 * for a given country (as defined by the Olson database), and
450 * Return the canonical country code for this tzid. If we have none, or if the time zone
451 * is not associated with a country or unknown, return null.
454 String country = getRegion(tzid); in getCanonicalCountry()
455 if (country != null && country.equals(kWorld)) { in getCanonicalCountry()
456 country = null; in getCanonicalCountry()
458 return country; in getCanonicalCountry()
462 * Return the canonical country code for this tzid. If we have none, or if the time zone
463 * is not associated with a country o
[all...]
H A DLocaleIDs.java15 * Utilities for mapping between old and new language, country, and other
21 * Returns a list of all 2-letter country codes defined in ISO 3166.
44 * Returns a three-letter abbreviation for the provided country. If the provided
45 * country is empty, returns the empty string. Otherwise, returns
46 * an uppercase ISO 3166 3-letter country code.
48 * three-letter country abbreviation is not available for this locale.
51 public static String getISO3Country(String country){ in getISO3Country() argument
53 int offset = findIndex(_countries, country); in getISO3Country()
57 offset = findIndex(_obsoleteCountries, country); in getISO3Country()
370 "AN", "BU", "CS", "DD", "DY", "FX", "HV", "NH", "RH", "SU", "TP", "UK", "VD", "YD", "YU", "ZR" /* deprecated country lis
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DLocaleUtility.java29 String country = ""; in getLocaleFromName()
40 country = name.substring(i1); in getLocaleFromName()
42 country = name.substring(i1, i2); in getLocaleFromName()
47 return new Locale(language, country, variant); in getLocaleFromName()
H A DZoneMeta.java35 * for a given country (as defined by the Olson database), and
451 * Return the canonical country code for this tzid. If we have none, or if the time zone
452 * is not associated with a country or unknown, return null.
455 String country = getRegion(tzid); in getCanonicalCountry()
456 if (country != null && country.equals(kWorld)) { in getCanonicalCountry()
457 country = null; in getCanonicalCountry()
459 return country; in getCanonicalCountry()
463 * Return the canonical country code for this tzid. If we have none, or if the time zone
464 * is not associated with a country o
[all...]
H A DLocaleIDs.java16 * Utilities for mapping between old and new language, country, and other
23 * Returns a list of all 2-letter country codes defined in ISO 3166.
44 * Returns a three-letter abbreviation for the provided country. If the provided
45 * country is empty, returns the empty string. Otherwise, returns
46 * an uppercase ISO 3166 3-letter country code.
48 * three-letter country abbreviation is not available for this locale.
50 public static String getISO3Country(String country){ in getISO3Country() argument
52 int offset = findIndex(_countries, country); in getISO3Country()
56 offset = findIndex(_obsoleteCountries, country); in getISO3Country()
369 "AN", "BU", "CS", "DD", "DY", "FX", "HV", "NH", "RH", "SU", "TP", "UK", "VD", "YD", "YU", "ZR" /* deprecated country lis
[all...]
/third_party/icu/tools/unicodetools/com/ibm/rbm/
H A DRBxliffExporter.java72 String country = item.getCountryEncoding(); in getLocale()
73 if (country != null && !country.equals("")) { in getLocale()
74 //country = country.toUpperCase(); in getLocale()
78 return language + "-" + country + "-" + variant; in getLocale()
80 return language + "-" + country; in getLocale()
198 || (main_bundle.country != null && main_bundle.country.length() > 0) in addHeaderProperties()
227 if (main_bundle.country ! in addHeaderProperties()
[all...]
H A DBundle.java18 * A class representing the entire Bundle of Resources for a particular language, country, variant.
39 * A descriptor of the country in the encoding (e.g. US, Canada, Great Britain)
41 public String country; field in Bundle
80 country = null; in Bundle()
126 * This method returns the country encoding string, or null if it is not specified
151 // Strip off the country in getVariantEncoding()
417 if (country != null && !country.equals("")) retStr += ", " + country; in toString()
435 if (country ! in toOutputString()
[all...]
H A DRBTMXExporter.java79 String country = item.getParentGroup().getParentBundle().getCountryEncoding(); in convertEncoding()
83 if (country != null && !country.equals("")) { in convertEncoding()
84 //country = country.toUpperCase(); in convertEncoding()
87 return language + "-" + country + "-" + variant; in convertEncoding()
89 return language + "-" + country; in convertEncoding()
H A DRBManager.java55 String country = Resources.getCountry(localeStr); in RBManager()
58 if (country == null) country = new String(); in RBManager()
59 if (variant == null) Resources.setLocale(new Locale(language, country)); in RBManager()
60 else Resources.setLocale(new Locale(language, country, variant)); in RBManager()
202 o = descriptors.get("fileCountry"); if (o != null) dict.country = ((String) o); in RBManager()
304 o = descriptors.get("fileCountry"); if (o != null) dict.country = ((String) o); in RBManager()
646 * @param country A more formal name for the country described by the resource, can be <CODE>null</CODE>
653 String language, String country, Strin in createResource()
652 createResource(String title, String comment, String manager, String encoding, String language, String country, String variant, boolean copyValues) createResource() argument
[all...]
/third_party/typescript/tests/baselines/reference/
H A DtsxAttributeResolution16.js6 country: string;
25 let a = <AddressComp postalCode='T1B 0L3' street="vancouver" country="CA" />
58 var a = <AddressComp postalCode='T1B 0L3' street="vancouver" country="CA"/>;
/third_party/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/
H A DICULocaleServiceProvider.java87 String country = result.getCountry(); in toULocaleNoSpecialVariant()
92 if (country.length() > 0 || variantNoSuffix.length() > 0) { in toULocaleNoSpecialVariant()
94 id.append(country); in toULocaleNoSpecialVariant()
145 // ICU's available locales do not contain language+country in getLocales()
173 String country = loc.getCountry(); in addLocale()
181 locales.add(new Locale(language, country, var.toString())); in addLocale()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
H A Dieee802_11_common.c944 static int country_match(const char *const cc[], const char *const country) in country_match() argument
948 if (country == NULL) in country_match()
951 if (cc[i][0] == country[0] && cc[i][1] == country[1]) in country_match()
1174 * @country: Country code, if known; otherwise, global operating class is used
1179 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan) in ieee80211_chan_to_freq() argument
1183 if (country_match(us_op_class_cc, country)) { in ieee80211_chan_to_freq()
1189 if (country_match(eu_op_class_cc, country)) { in ieee80211_chan_to_freq()
1195 if (country_match(jp_op_class_cc, country)) { in ieee80211_chan_to_freq()
1201 if (country_match(cn_op_class_cc, country)) { in ieee80211_chan_to_freq()
1831 country_to_global_op_class(const char *country, u8 op_class) country_to_global_op_class() argument
1868 get_oper_class(const char *country, u8 op_class) get_oper_class() argument
[all...]
/third_party/popt/tests/
H A Dtest2.c38 static char *country = NULL; variable
71 { "country", 'C', POPT_ARG_STRING, &country, 0, in main()
72 "two letter ISO country code", "country" }, in main()
140 "country %s\temail %s\tdayphone %s\tfax %s\n", in main()
145 country, email, dayphone, fax); in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/
H A Dp2p_go_neg.c51 os_memcpy(dev->country, pos, 3); in p2p_peer_channels_check()
52 wpa_hexdump_ascii(MSG_DEBUG, "P2P: Peer country", pos, 3); in p2p_peer_channels_check()
53 if (pos[2] != 0x04 && os_memcmp(pos, p2p->cfg->country, 2) != 0) { in p2p_peer_channels_check()
54 p2p_info(p2p, "Mismatching country (ours=%c%c peer's=%c%c)", in p2p_peer_channels_check()
55 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_peer_channels_check()
176 p2p_buf_add_listen_channel(buf, p2p->cfg->country, p2p->cfg->reg_class, in p2p_build_go_neg_req()
182 p2p_buf_add_channel_list(buf, p2p->cfg->country, &p2p->channels); in p2p_build_go_neg_req()
184 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_req()
320 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_resp()
[all...]
H A Dp2p_build.c85 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_listen_channel() argument
91 wpabuf_put_data(buf, country, 3); in p2p_buf_add_listen_channel()
99 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_operating_channel() argument
105 wpabuf_put_data(buf, country, 3); in p2p_buf_add_operating_channel()
151 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, in p2p_buf_add_channel_list() argument
160 wpabuf_put_data(buf, country, 3); /* Country String */ in p2p_buf_add_channel_list()
370 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_oob_go_neg_channel() argument
377 wpabuf_put_data(buf, country, 3); in p2p_buf_add_oob_go_neg_channel()
/third_party/icu/icu4c/source/test/fuzzer/
H A Dlocale_fuzzer.cpp43 const std::string country = ConsumeSubstring(&data, &size); in LLVMFuzzerTestOneInput() local
46 icu::Locale locale(language.c_str(), country.c_str(), variant.c_str(), in LLVMFuzzerTestOneInput()
/third_party/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
H A DLocaleNameTest.java55 String country = forLocale.getCountry(); in TestLanguageNames()
57 if (country.length() != 0) { in TestLanguageNames()
59 icuid.append(country); in TestLanguageNames()
62 if (country.length() == 0) { in TestLanguageNames()
175 // ULocale#forLocale preserves country always in TestCountryNames()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
H A Dieee802_11_common.c1327 static int country_match(const char *const cc[], const char *const country) in country_match() argument
1331 if (country == NULL) in country_match()
1334 if (cc[i][0] == country[0] && cc[i][1] == country[1]) in country_match()
1617 * @country: Country code, if known; otherwise, global operating class is used
1622 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan) in ieee80211_chan_to_freq() argument
1626 if (country_match(us_op_class_cc, country)) { in ieee80211_chan_to_freq()
1632 if (country_match(eu_op_class_cc, country)) { in ieee80211_chan_to_freq()
1638 if (country_match(jp_op_class_cc, country)) { in ieee80211_chan_to_freq()
1644 if (country_match(cn_op_class_cc, country)) { in ieee80211_chan_to_freq()
2355 country_to_global_op_class(const char *country, u8 op_class) country_to_global_op_class() argument
2392 get_oper_class(const char *country, u8 op_class) get_oper_class() argument
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/
H A Dp2p_build.c85 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_listen_channel() argument
91 wpabuf_put_data(buf, country, 3); in p2p_buf_add_listen_channel()
99 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_operating_channel() argument
105 wpabuf_put_data(buf, country, 3); in p2p_buf_add_operating_channel()
151 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, in p2p_buf_add_channel_list() argument
160 wpabuf_put_data(buf, country, 3); /* Country String */ in p2p_buf_add_channel_list()
370 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_oob_go_neg_channel() argument
377 wpabuf_put_data(buf, country, 3); in p2p_buf_add_oob_go_neg_channel()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dmesh.c303 wpa_s->hw.num_modes) && wpa_s->conf->country[0]) { in wpa_supplicant_mesh_init()
306 conf->country[0] = wpa_s->conf->country[0]; in wpa_supplicant_mesh_init()
307 conf->country[1] = wpa_s->conf->country[1]; in wpa_supplicant_mesh_init()
308 conf->country[2] = ' '; in wpa_supplicant_mesh_init()

Completed in 18 milliseconds

123456