Home
last modified time | relevance | path

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

12345

/external/icu/icu4c/source/common/
Duloc.cpp59 locale_getKeywords(const char *localeID,
483 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
495 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
496 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength()
503 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
530 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
532 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
543 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
600 _getKeywords(const char *localeID, in _getKeywords() argument
611 const char* pos = localeID; in _getKeywords()
[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.h51 ulocimp_getLanguage(const char *localeID,
56 ulocimp_getScript(const char *localeID,
61 ulocimp_getCountry(const char *localeID,
85 ulocimp_toLanguageTag(const char* localeID,
145 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
178 ulocimp_addLikelySubtags(const char* localeID,
212 ulocimp_minimizeSubtags(const char* localeID,
217 locale_getKeywordsStart(const char *localeID);
/external/cldr/tools/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 …]
DListRedundantUnicodeSets.java52 for (String localeID : cldrFactory.getAvailable()) { in main()
53 Level localeCoverageLevel = sdc.getLocaleCoverageLevel(Organization.cldr, localeID); in main()
57 CLDRFile cldrFile = cldrFactory.make(localeID, false); in main()
73 if (isForTranslit(localeID, r)) { in main()
82 ULocale ulocale = new ULocale(localeID); in main()
96 … Set<String> colExemplars = getCollationExemplars(localeID).addAllTo(new TreeSet<String>()); in main()
107 System.out.println(localeID in main()
125 private static UnicodeSet getCollationExemplars(String localeID) { in getCollationExemplars() argument
129 UnicodeSet result = getCollationExemplars2(localeID).removeAll(ROOT_COLLATION_EXEMPLARS); in getCollationExemplars()
133 private static UnicodeSet getCollationExemplars2(String localeID) { in getCollationExemplars2() argument
[all …]
DPivotData.java106 public int writePivot(String localeID) throws IOException { in writePivot() argument
109 CLDRFile me = factory.make(localeID, false); in writePivot()
111 throw new IllegalArgumentException("File cannot be completely aliased: " + localeID); in writePivot()
113 String parentID = LocaleIDParser.getParent(localeID); in writePivot()
115 … if (DEBUG) System.out.format("LocaleID: %s, %s" + CldrUtility.LINE_SEPARATOR, localeID, parentID); in writePivot()
123 throw new IllegalArgumentException("File cannot be completely aliased: " + localeID); in writePivot()
142 … throw new IllegalArgumentException("Mismatched casing: " + localeID + ", " + parentID + " For:" in writePivot()
153 …m.out.format("LocaleID: %s is EMPTY, no changes necessary" + CldrUtility.LINE_SEPARATOR, localeID); in writePivot()
158 Set<String> siblings = lidp.set(localeID).getSiblings(factory.getAvailable()); in writePivot()
159 siblings.remove(localeID); // remove myself in writePivot()
[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 …]
DICUResourceBundle.java62 WholeBundle(String baseName, String localeID, ClassLoader loader, in WholeBundle() argument
65 this.localeID = localeID; in WholeBundle()
66 this.ulocale = new ULocale(localeID); in WholeBundle()
72 String localeID; field in ICUResourceBundle.WholeBundle
1187 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1189 return getBundleInstance(baseName, localeID, root,
1202 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1207 localeID = ULocale.getBaseName(localeID);
1210 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(),
1213 b = instantiateBundle(baseName, localeID, null, root, openType);
[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 …]
DICUResourceBundle.java57 WholeBundle(String baseName, String localeID, ClassLoader loader, in WholeBundle() argument
60 this.localeID = localeID; in WholeBundle()
61 this.ulocale = new ULocale(localeID); in WholeBundle()
67 String localeID; field in ICUResourceBundle.WholeBundle
1176 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1178 return getBundleInstance(baseName, localeID, root,
1191 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1196 localeID = ULocale.getBaseName(localeID);
1199 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(),
1202 b = instantiateBundle(baseName, localeID, null, root, openType);
[all …]
/external/cldr/tools/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 …]
DEmojiSubdivisionNames.java44 public static Map<String, String> getSubdivisionIdToName(String localeID) { in getSubdivisionIdToName() argument
45 Map<String,String> result = localeToSubdivisionIdToName.get(localeID); in getSubdivisionIdToName()
47 load(localeID); in getSubdivisionIdToName()
48 result = localeToSubdivisionIdToName.get(localeID); in getSubdivisionIdToName()
56 public static Map<String, String> getNameToSubdivisionPath(String localeID) { in getNameToSubdivisionPath() argument
57 Map<String,String> result = localeToNameToSubdivisionId.get(localeID); in getNameToSubdivisionPath()
59 load(localeID); in getNameToSubdivisionPath()
60 result = localeToNameToSubdivisionId.get(localeID); in getNameToSubdivisionPath()
68 private static void load(String localeID) { in load() argument
73 String fileName = localeID + ".xml"; in load()
[all …]
DConsoleCheckCLDR.java473 for (String localeID : locales) { in main()
474 if (CLDRFile.isSupplementalName(localeID)) continue; in main()
475 if (supplementalDataInfo.getDefaultContentLocales().contains(localeID)) { in main()
476 System.out.println("# Skipping default content locale: " + localeID); in main()
481 if (specialPurposeLocales.contains(localeID)) { in main()
482 System.out.println("# Skipping special purpose locale: " + localeID); in main()
486 … boolean isLanguageLocale = localeID.equals(localeIDParser.set(localeID).getLanguageScript()); in main()
501 level = locale_status.get(localeID); in main()
524 file = cldrFactory.make(localeID, true); in main()
526 ErrorFile.voteFile = ErrorFile.voteFactory.make(localeID, true); in main()
[all …]
DCheckCoverage.java127 final String localeID = cldrFileToCheck.getLocaleID(); in setCldrFileToCheck() local
128 if (localeID.equals(new LanguageTagParser().set(localeID).getLanguageScript())) { in setCldrFileToCheck()
130 coverageLevel = CoverageLevel2.getInstance(supplementalData, localeID); in setCldrFileToCheck()
131 PluralInfo pluralInfo = supplementalData.getPlurals(PluralType.cardinal, localeID); in setCldrFileToCheck()
142 if (localeID.equals("root")) return this; in setCldrFileToCheck()
144 requiredLevel = options.getRequiredLevel(localeID); in setCldrFileToCheck()
/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/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/android_icu4j/src/main/java/android/icu/util/
DULocale.java336 private String localeID; field in ULocale
373 private ULocale(String localeID, Locale locale) { in ULocale() argument
374 this.localeID = localeID; in ULocale()
383 this.localeID = getName(forLocale(loc).toString()); in ULocale()
418 public ULocale(String localeID) { in ULocale() argument
419 this.localeID = getName(localeID); in ULocale()
451 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
684 return localeID.hashCode(); in hashCode()
701 return localeID.equals(((ULocale)obj).localeID); in equals()
851 public static String getLanguage(String localeID) { in getLanguage() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java377 private String localeID; field in ULocale
414 private ULocale(String localeID, Locale locale) { in ULocale() argument
415 this.localeID = localeID; in ULocale()
424 this.localeID = getName(forLocale(loc).toString()); in ULocale()
461 public ULocale(String localeID) { in ULocale() argument
462 this.localeID = getName(localeID); in ULocale()
496 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
735 return localeID.hashCode(); in hashCode()
753 return localeID.equals(((ULocale)obj).localeID); in equals()
913 public static String getLanguage(String localeID) { in getLanguage() argument
[all …]
/external/icu/icu4c/source/test/intltest/
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()
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, '@') > 0) { in testLocales()
307 strcat(localeID, ";"); in testLocales()
309 strcat(localeID, "@"); in testLocales()
[all …]
Dwindttst.cpp123 if (lcidRecords[i].localeID == NULL) { in testLocales()
147 char localeID[64]; in testLocales() local
149 uprv_strcpy(localeID, lcidRecords[i].localeID); in testLocales()
150 uprv_strcat(localeID, getCalendarType(calType)); in testLocales()
153 Locale ulocale(localeID); in testLocales()
159 if (uprv_strchr(localeID, '@') > 0) { in testLocales()
160 uprv_strcat(localeID, ";"); in testLocales()
162 uprv_strcat(localeID, "@"); in testLocales()
165 uprv_strcat(localeID, "compat=host"); in testLocales()
167 Locale wlocale(localeID); in testLocales()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DULocale.java283 private String localeID; field in ULocale
386 private ULocale(String localeID, Locale locale) { in ULocale() argument
387 this.localeID = localeID; in ULocale()
396 this.localeID = getName(forLocale(loc).toString()); in ULocale()
438 public ULocale(String localeID) { in ULocale() argument
439 this.localeID = getName(localeID); in ULocale()
473 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
696 return localeID.hashCode(); in hashCode()
713 return localeID.equals((String)obj); in equals()
716 return localeID.equals(((ULocale)obj).localeID); in equals()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DFactory.java52 public final File getSourceDirectoryForLocale(String localeID) { in getSourceDirectoryForLocale() argument
53 List<File> temp = getSourceDirectoriesForLocale(localeID); in getSourceDirectoryForLocale()
104 …protected abstract CLDRFile handleMake(String localeID, boolean resolved, DraftStatus madeWithMini… in handleMake() argument
106 … public CLDRFile make(String localeID, boolean resolved, DraftStatus madeWithMinimalDraftStatus) { in make() argument
107 return handleMake(localeID, resolved, madeWithMinimalDraftStatus) in make()
111 public CLDRFile make(String localeID, boolean resolved, boolean includeDraft) { in make() argument
112 … return make(localeID, resolved, includeDraft ? DraftStatus.unconfirmed : DraftStatus.approved); in make()
115 public CLDRFile make(String localeID, boolean resolved) { in make() argument
116 return make(localeID, resolved, getMinimalDraftStatus()); in make()
119 public CLDRFile makeWithFallback(String localeID) { in makeWithFallback() argument
[all …]
/external/cldr/tools/cldr-unittest/src/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()

12345