Home
last modified time | relevance | path

Searched refs:localeID (Results 1 – 25 of 185) sorted by relevance

12345678

/external/icu/icu4c/source/common/
Duloc.cpp479 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
500 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
501 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength()
508 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
535 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
537 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
548 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
605 ulocimp_getKeywords(const char *localeID, in ulocimp_getKeywords() argument
615 const char* pos = localeID; in ulocimp_getKeywords()
726 uloc_getKeywordValue(const char* localeID, in uloc_getKeywordValue() argument
[all …]
Dloclikely.cpp53 findLikelySubtags(const char* localeID, in findLikelySubtags() argument
66 if (localeID != NULL) { in findLikelySubtags()
67 if (*localeID == '\0') { in findLikelySubtags()
68 localeID = unknownLanguage; in findLikelySubtags()
69 } else if (*localeID == '_') { in findLikelySubtags()
71 und.append(localeID, *err); in findLikelySubtags()
75 localeID = und.data(); in findLikelySubtags()
78 s = ures_getStringByKey(subtags.getAlias(), localeID, &resLen, &tmpErr); in findLikelySubtags()
444 const char* localeID, in parseTagString() argument
453 const char* position = localeID; in parseTagString()
[all …]
Dulocimp.h53 ulocimp_getKeywords(const char *localeID,
60 ulocimp_getLanguage(const char *localeID,
65 ulocimp_getScript(const char *localeID,
70 ulocimp_getCountry(const char *localeID,
75 ulocimp_getName(const char* localeID,
80 ulocimp_getBaseName(const char* localeID,
85 ulocimp_canonicalize(const char* localeID,
90 ulocimp_getKeywordValue(const char* localeID,
115 ulocimp_toLanguageTag(const char* localeID,
179 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
[all …]
/external/cronet/third_party/icu/source/common/
Duloc.cpp479 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
500 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
501 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength()
508 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
535 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
537 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
548 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
605 ulocimp_getKeywords(const char *localeID, in ulocimp_getKeywords() argument
615 const char* pos = localeID; in ulocimp_getKeywords()
726 uloc_getKeywordValue(const char* localeID, in uloc_getKeywordValue() argument
[all …]
Dloclikely.cpp53 findLikelySubtags(const char* localeID, in findLikelySubtags() argument
66 if (localeID != NULL) { in findLikelySubtags()
67 if (*localeID == '\0') { in findLikelySubtags()
68 localeID = unknownLanguage; in findLikelySubtags()
69 } else if (*localeID == '_') { in findLikelySubtags()
71 und.append(localeID, *err); in findLikelySubtags()
75 localeID = und.data(); in findLikelySubtags()
78 s = ures_getStringByKey(subtags.getAlias(), localeID, &resLen, &tmpErr); in findLikelySubtags()
444 const char* localeID, in parseTagString() argument
453 const char* position = localeID; in parseTagString()
[all …]
Dulocimp.h53 ulocimp_getKeywords(const char *localeID,
60 ulocimp_getLanguage(const char *localeID,
65 ulocimp_getScript(const char *localeID,
70 ulocimp_getCountry(const char *localeID,
75 ulocimp_getName(const char* localeID,
80 ulocimp_getBaseName(const char* localeID,
85 ulocimp_canonicalize(const char* localeID,
90 ulocimp_getKeywordValue(const char* localeID,
115 ulocimp_toLanguageTag(const char* localeID,
179 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DGenerateAliases.java48 for (String localeID : available) { in Builder()
49 String targetID = getDefaultContents(localeID); in Builder()
51 targetID = localeID; in Builder()
53 addAlias("deprecated", localeID, targetID); in Builder()
55 if (localeID.startsWith("sr_Latn")) { in Builder()
56 addAlias("deprecated", "sh" + localeID.substring(7), localeID); in Builder()
76 String localeID = small2large.getKey(); in Builder() local
78 if (localeID.equals(targetID)) { in Builder()
81 String base = ltp.set(localeID).getLanguage(); in Builder()
88 if (available.contains(localeID) && !isWholeAlias(factory, localeID)) { in Builder()
[all …]
DGenerateStatistics.java68 String localeID = it.next(); in generateSize() local
69 if (CLDRFile.isSupplementalName(localeID)) continue; in generateSize()
70 if (localeID.equals("root")) in generateSize()
72 System.out.println("Collecting info for:\t" + localeID.replace("_", "\t")); in generateSize()
76 addCounts(localeID, true, draftLanguages, in generateSize()
81 addCounts(localeID, false, languages, in generateSize()
132 String localeID = it.next(); in removeSingleLanguagesWhereWeHaveScripts() local
133 if (CLDRFile.isSupplementalName(localeID)) { in removeSingleLanguagesWhereWeHaveScripts()
137 String lang = ltp.set(localeID).getLanguage(); in removeSingleLanguagesWhereWeHaveScripts()
138 String territory = ltp.set(localeID).getRegion(); in removeSingleLanguagesWhereWeHaveScripts()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DResourceBundleWrapper.java31 private String localeID = null; field in ResourceBundleWrapper
95 return localeID; in getLocaleID()
105 return new ULocale(localeID); in getULocale()
117 public static ResourceBundleWrapper getBundleInstance(String baseName, String localeID, in getBundleInstance() argument
124 b = instantiateBundle(baseName, localeID, null, root, disableFallback); in getBundleInstance()
126 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), in getBundleInstance()
134 …row new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"",""); in getBundleInstance()
139 private static boolean localeIDStartsWithLangSubtag(String localeID, String lang) { in localeIDStartsWithLangSubtag() argument
140 return localeID.startsWith(lang) && in localeIDStartsWithLangSubtag()
141 (localeID.length() == lang.length() || localeID.charAt(lang.length()) == '_'); in localeIDStartsWithLangSubtag()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DResourceBundleWrapper.java33 private String localeID = null; field in ResourceBundleWrapper
97 return localeID; in getLocaleID()
107 return new ULocale(localeID); in getULocale()
119 public static ResourceBundleWrapper getBundleInstance(String baseName, String localeID, in getBundleInstance() argument
126 b = instantiateBundle(baseName, localeID, null, root, disableFallback); in getBundleInstance()
128 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), in getBundleInstance()
136 …row new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"",""); in getBundleInstance()
141 private static boolean localeIDStartsWithLangSubtag(String localeID, String lang) { in localeIDStartsWithLangSubtag() argument
142 return localeID.startsWith(lang) && in localeIDStartsWithLangSubtag()
143 (localeID.length() == lang.length() || localeID.charAt(lang.length()) == '_'); in localeIDStartsWithLangSubtag()
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/test/
DCasingInfo.java75 public Map<Category, CasingTypeAndErrFlag> getLocaleCasing(String localeID) { in getLocaleCasing() argument
79 if (!casing.containsKey(localeID)) { in getLocaleCasing()
82 CasingHandler handler = loadFromXml(localeID); in getLocaleCasing()
86 if (!casing.containsKey(localeID)) { in getLocaleCasing()
87 String parentID = LocaleIDParser.getSimpleParent(localeID); in getLocaleCasing()
89 casing.put(localeID, getLocaleCasing(parentID)); in getLocaleCasing()
95 return casing.get(localeID); in getLocaleCasing()
104 private CasingHandler loadFromXml(String localeID) { in loadFromXml() argument
106 File casingFile = new File(casingDir, localeID + ".xml"); in loadFromXml()
131 for (String localeID : locales) { in generateCasingInformation()
[all …]
/external/cronet/third_party/icu/source/common/unicode/
Duloc.h395 uloc_setDefault(const char* localeID,
412 uloc_getLanguage(const char* localeID,
430 uloc_getScript(const char* localeID,
448 uloc_getCountry(const char* localeID,
466 uloc_getVariant(const char* localeID,
489 uloc_getName(const char* localeID,
512 uloc_canonicalize(const char* localeID,
525 uloc_getISO3Language(const char* localeID);
536 uloc_getISO3Country(const char* localeID);
550 uloc_getLCID(const char* localeID);
[all …]
/external/icu/libicu/cts_headers/unicode/
Duloc.h395 uloc_setDefault(const char* localeID,
412 uloc_getLanguage(const char* localeID,
430 uloc_getScript(const char* localeID,
448 uloc_getCountry(const char* localeID,
466 uloc_getVariant(const char* localeID,
489 uloc_getName(const char* localeID,
512 uloc_canonicalize(const char* localeID,
525 uloc_getISO3Language(const char* localeID);
536 uloc_getISO3Country(const char* localeID);
550 uloc_getLCID(const char* localeID);
[all …]
/external/icu/libandroidicu/include/unicode/
Duloc.h395 uloc_setDefault(const char* localeID,
412 uloc_getLanguage(const char* localeID,
430 uloc_getScript(const char* localeID,
448 uloc_getCountry(const char* localeID,
466 uloc_getVariant(const char* localeID,
489 uloc_getName(const char* localeID,
512 uloc_canonicalize(const char* localeID,
525 uloc_getISO3Language(const char* localeID);
536 uloc_getISO3Country(const char* localeID);
550 uloc_getLCID(const char* localeID);
[all …]
/external/icu/icu4c/source/common/unicode/
Duloc.h395 uloc_setDefault(const char* localeID,
412 uloc_getLanguage(const char* localeID,
430 uloc_getScript(const char* localeID,
448 uloc_getCountry(const char* localeID,
466 uloc_getVariant(const char* localeID,
489 uloc_getName(const char* localeID,
512 uloc_canonicalize(const char* localeID,
525 uloc_getISO3Language(const char* localeID);
536 uloc_getISO3Country(const char* localeID);
550 uloc_getLCID(const char* localeID);
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DULocale.java327 private String localeID; field in ULocale
365 private ULocale(String localeID, Locale locale) { in ULocale() argument
366 this.localeID = localeID; in ULocale()
401 public ULocale(String localeID) { in ULocale() argument
402 this.localeID = getName(localeID); in ULocale()
434 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
676 return localeID.hashCode(); in hashCode()
693 return localeID.equals(((ULocale)obj).localeID); in equals()
844 public static String getLanguage(String localeID) { in getLanguage() argument
845 return new LocaleIDParser(localeID).getLanguage(); in getLanguage()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java373 private String localeID; field in ULocale
411 private ULocale(String localeID, Locale locale) { in ULocale() argument
412 this.localeID = localeID; in ULocale()
449 public ULocale(String localeID) { in ULocale() argument
450 this.localeID = getName(localeID); in ULocale()
484 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
733 return localeID.hashCode(); in hashCode()
751 return localeID.equals(((ULocale)obj).localeID); in equals()
912 public static String getLanguage(String localeID) { in getLanguage() argument
913 return new LocaleIDParser(localeID).getLanguage(); in getLanguage()
[all …]
/external/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp234 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() argument
251 UnicodeString locale(localeID); in testLocale()
259 UnicodeString locale(localeID); in testLocale()
267 UnicodeString locale(localeID); in testLocale()
282 char localeID[128]; in testLocales() local
285 if (lcidRecords[i].localeID == NULL) { in testLocales()
304 strcpy(localeID, lcidRecords[i].localeID); in testLocales()
306 if (strchr(localeID, '@')) { in testLocales()
307 strcat(localeID, ";"); in testLocales()
309 strcat(localeID, "@"); in testLocales()
[all …]
Dwinutil.cpp42 char localeID[ULOC_FULLNAME_CAPACITY]; in EnumLocalesProc() local
60 …localeIDLen = uprv_convertToPosix(lcidRecords[lcidCount].lcid, localeID, UPRV_LENGTHOF(localeID), … in EnumLocalesProc()
62 lcidRecords[lcidCount].localeID = new char[localeIDLen + 1]; in EnumLocalesProc()
63 memcpy(lcidRecords[lcidCount].localeID, localeID, localeIDLen); in EnumLocalesProc()
64 lcidRecords[lcidCount].localeID[localeIDLen] = 0; in EnumLocalesProc()
66 lcidRecords[lcidCount].localeID = NULL; in EnumLocalesProc()
93 delete lcidRecords[i].localeID; in freeLocales()
/external/cronet/third_party/icu/source/test/intltest/
Dwinnmtst.cpp234 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() argument
251 UnicodeString locale(localeID); in testLocale()
259 UnicodeString locale(localeID); in testLocale()
267 UnicodeString locale(localeID); in testLocale()
282 char localeID[128]; in testLocales() local
285 if (lcidRecords[i].localeID == NULL) { in testLocales()
304 strcpy(localeID, lcidRecords[i].localeID); in testLocales()
306 if (strchr(localeID, '@')) { in testLocales()
307 strcat(localeID, ";"); in testLocales()
309 strcat(localeID, "@"); in testLocales()
[all …]
Dwinutil.cpp42 char localeID[ULOC_FULLNAME_CAPACITY]; in EnumLocalesProc() local
60 …localeIDLen = uprv_convertToPosix(lcidRecords[lcidCount].lcid, localeID, UPRV_LENGTHOF(localeID), … in EnumLocalesProc()
62 lcidRecords[lcidCount].localeID = new char[localeIDLen + 1]; in EnumLocalesProc()
63 memcpy(lcidRecords[lcidCount].localeID, localeID, localeIDLen); in EnumLocalesProc()
64 lcidRecords[lcidCount].localeID[localeIDLen] = 0; in EnumLocalesProc()
66 lcidRecords[lcidCount].localeID = NULL; in EnumLocalesProc()
93 delete lcidRecords[i].localeID; in freeLocales()
/external/icu/libicu/ndk_headers/unicode/
Duloc.h400 uloc_getLanguage(const char* localeID,
420 uloc_getScript(const char* localeID,
440 uloc_getCountry(const char* localeID,
460 uloc_getVariant(const char* localeID,
485 uloc_getName(const char* localeID,
510 uloc_canonicalize(const char* localeID,
525 uloc_getISO3Language(const char* localeID) __INTRODUCED_IN(31);
538 uloc_getISO3Country(const char* localeID) __INTRODUCED_IN(31);
769 uloc_getDisplayName(const char* localeID,
917 uloc_getBaseName(const char* localeID,
[all …]
/external/icu/libicu/cts_headers/
Dulocimp.h53 ulocimp_getKeywords(const char *localeID,
60 ulocimp_getLanguage(const char *localeID,
65 ulocimp_getScript(const char *localeID,
70 ulocimp_getCountry(const char *localeID,
75 ulocimp_getName(const char* localeID,
80 ulocimp_getBaseName(const char* localeID,
85 ulocimp_canonicalize(const char* localeID,
90 ulocimp_getKeywordValue(const char* localeID,
115 ulocimp_toLanguageTag(const char* localeID,
179 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DFactory.java65 public final File getSourceDirectoryForLocale(String localeID) { in getSourceDirectoryForLocale() argument
66 List<File> temp = getSourceDirectoriesForLocale(localeID); in getSourceDirectoryForLocale()
117 …protected abstract CLDRFile handleMake(String localeID, boolean resolved, DraftStatus madeWithMini… in handleMake() argument
119 … public CLDRFile make(String localeID, boolean resolved, DraftStatus madeWithMinimalDraftStatus) { in make() argument
120 return handleMake(localeID, resolved, madeWithMinimalDraftStatus) in make()
124 public CLDRFile make(String localeID, boolean resolved, boolean includeDraft) { in make() argument
125 … return make(localeID, resolved, includeDraft ? DraftStatus.unconfirmed : DraftStatus.approved); in make()
128 public CLDRFile make(String localeID, boolean resolved) { in make() argument
129 return make(localeID, resolved, getMinimalDraftStatus()); in make()
132 public CLDRFile makeWithFallback(String localeID) { in makeWithFallback() argument
[all …]
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/
DTestFactory.java25 final String localeID = testFile.getLocaleID(); in addFile() local
26 unresolved.put(localeID, testFile); in addFile()
27 …org.unicode.cldr.util.XMLSource.ResolvingSource rs = makeResolvingSource(localeID, DraftStatus.unc… in addFile()
29 resolved.put(localeID, resolvedFile); in addFile()
38 public List<File> getSourceDirectoriesForLocale(String localeID) { in getSourceDirectoriesForLocale() argument
43 …protected CLDRFile handleMake(String localeID, boolean isResolved, DraftStatus madeWithMinimalDraf… in handleMake() argument
44 return isResolved ? resolved.get(localeID) : unresolved.get(localeID); in handleMake()

12345678