Searched refs:localeID (Results 1 - 25 of 61) sorted by relevance

123

/external/icu/icu4c/source/test/intltest/
H A Dwinutil.cpp38 char localeID[ULOC_FULLNAME_CAPACITY]; local
56 localeIDLen = uprv_convertToPosix(lcidRecords[lcidCount].lcid, localeID, sizeof(localeID)/sizeof(localeID[0]), &status);
58 lcidRecords[lcidCount].localeID = new char[localeIDLen + 1];
59 memcpy(lcidRecords[lcidCount].localeID, localeID, localeIDLen);
60 lcidRecords[lcidCount].localeID[localeIDLen] = 0;
62 lcidRecords[lcidCount].localeID = NULL;
88 delete lcidRecords[i].localeID;
[all...]
H A Dwinutil.h32 char *localeID; member in struct:Win32Utilities::LCIDRecord
H A Dwindttst.cpp116 // NULL localeID means ICU didn't recognize this locale
117 if (lcidRecords[i].localeID == NULL) {
125 char localeID[64]; local
127 uprv_strcpy(localeID, lcidRecords[i].localeID);
128 uprv_strcat(localeID, getCalendarType(calType));
131 Locale ulocale(localeID);
137 if (uprv_strchr(localeID, '@') > 0) {
138 uprv_strcat(localeID, ";");
140 uprv_strcat(localeID, "
[all...]
H A Dwinnmtst.cpp229 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestLog *log) argument
246 UnicodeString locale(localeID);
254 UnicodeString locale(localeID);
262 UnicodeString locale(localeID);
277 char localeID[128]; local
279 // NULL localeID means ICU didn't recognize the lcid
280 if (lcidRecords[i].localeID == NULL) {
284 strcpy(localeID, lcidRecords[i].localeID);
286 if (strchr(localeID, '
[all...]
H A Dustrtest.h106 void *iter, const char *localeID, uint32_t options);
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DResourceBundleWrapper.java31 private String localeID = null; field in class:ResourceBundleWrapper
84 return localeID;
92 return new ULocale(localeID);
103 public static UResourceBundle getBundleInstance(String baseName, String localeID, argument
105 UResourceBundle b = instantiateBundle(baseName, localeID, root, disableFallback);
111 throw new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"","");
116 protected static synchronized UResourceBundle instantiateBundle(String baseName, String localeID, argument
124 if (localeID.length() != 0) {
125 name = name + "_" + localeID;
131 int i = localeID
[all...]
H A DICUResourceBundle.java156 WholeBundle(String baseName, String localeID, ClassLoader loader, argument
159 this.localeID = localeID;
160 this.ulocale = new ULocale(localeID);
166 String localeID; field in class:ICUResourceBundle.WholeBundle
1177 public static UResourceBundle getBundleInstance(String baseName, String localeID, argument
1179 UResourceBundle b = instantiateBundle(baseName, localeID, root,
1182 throw new MissingResourceException("Could not find the bundle "+ baseName+"/"+ localeID+".res","","");
1187 protected static UResourceBundle instantiateBundle(String baseName, String localeID, argument
1189 return instantiateBundle(baseName, localeID, roo
1202 getBundleInstance(String baseName, String localeID, ClassLoader root, OpenType openType) argument
1216 instantiateBundle(String baseName, String localeID, ClassLoader root, OpenType openType) argument
1374 createBundle(String baseName, String localeID, ClassLoader root) argument
1415 getBundle(ICUResourceBundleReader reader, String baseName, String localeID, ClassLoader loader) argument
[all...]
H A DICUResourceBundleReader.java153 final String localeID; field in class:ICUResourceBundleReader.ReaderCacheKey
155 ReaderCacheKey(String baseName, String localeID) { argument
157 this.localeID = (localeID == null) ? "" : localeID;
169 && this.localeID.equals(info.localeID);
173 return baseName.hashCode() ^ localeID.hashCode();
183 String fullName = ICUResourceBundleReader.getFullName(key.baseName, key.localeID);
200 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loade
213 ICUResourceBundleReader(ByteBuffer inBytes, String baseName, String localeID, ClassLoader loader) argument
230 getReader(String baseName, String localeID, ClassLoader root) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DResourceBundleWrapper.java29 private String localeID = null; field in class:ResourceBundleWrapper
82 return localeID;
90 return new ULocale(localeID);
101 public static UResourceBundle getBundleInstance(String baseName, String localeID, argument
103 UResourceBundle b = instantiateBundle(baseName, localeID, root, disableFallback);
109 throw new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"","");
114 protected static synchronized UResourceBundle instantiateBundle(String baseName, String localeID, argument
122 if (localeID.length() != 0) {
123 name = name + "_" + localeID;
129 int i = localeID
[all...]
H A DICUResourceBundle.java152 WholeBundle(String baseName, String localeID, ClassLoader loader, argument
155 this.localeID = localeID;
156 this.ulocale = new ULocale(localeID);
162 String localeID; field in class:ICUResourceBundle.WholeBundle
1173 public static UResourceBundle getBundleInstance(String baseName, String localeID, argument
1175 UResourceBundle b = instantiateBundle(baseName, localeID, root,
1178 throw new MissingResourceException("Could not find the bundle "+ baseName+"/"+ localeID+".res","","");
1183 protected static UResourceBundle instantiateBundle(String baseName, String localeID, argument
1185 return instantiateBundle(baseName, localeID, roo
1198 getBundleInstance(String baseName, String localeID, ClassLoader root, OpenType openType) argument
1212 instantiateBundle(String baseName, String localeID, ClassLoader root, OpenType openType) argument
1370 createBundle(String baseName, String localeID, ClassLoader root) argument
1411 getBundle(ICUResourceBundleReader reader, String baseName, String localeID, ClassLoader loader) argument
[all...]
H A DICUResourceBundleReader.java151 final String localeID; field in class:ICUResourceBundleReader.ReaderCacheKey
153 ReaderCacheKey(String baseName, String localeID) { argument
155 this.localeID = (localeID == null) ? "" : localeID;
167 && this.localeID.equals(info.localeID);
171 return baseName.hashCode() ^ localeID.hashCode();
181 String fullName = ICUResourceBundleReader.getFullName(key.baseName, key.localeID);
198 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loade
211 ICUResourceBundleReader(ByteBuffer inBytes, String baseName, String localeID, ClassLoader loader) argument
228 getReader(String baseName, String localeID, ClassLoader root) argument
[all...]
/external/icu/icu4c/source/common/unicode/
H A Duloc.h172 * uloc_getDisplayName(const char* localeID,
382 * @param localeID the new ICU default locale. A value of NULL will try to get
389 uloc_setDefault(const char* localeID,
396 * @param localeID the locale to get the ISO language code with
397 * @param language the language code for localeID
406 uloc_getLanguage(const char* localeID,
414 * @param localeID the locale to get the ISO language code with
415 * @param script the language code for localeID
424 uloc_getScript(const char* localeID,
432 * @param localeID th
[all...]
/external/icu/icu4c/source/common/
H A Duloc.cpp54 locale_getKeywords(const char *localeID,
524 #define _hasBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
532 /* Gets the size of the shortest subtag in the given localeID. */
533 static int32_t getShortestSubtagLength(const char *localeID) { argument
534 int32_t localeIDLength = uprv_strlen(localeID);
541 if (localeID[i] != '_' && localeID[i] != '-') {
564 locale_getKeywordsStart(const char *localeID) { argument
566 if((result = uprv_strchr(localeID, '@')) != NULL) {
577 if((result = uprv_strchr(localeID, *charToFin
634 _getKeywords(const char *localeID, char prev, char *keywords, int32_t keywordCapacity, char *values, int32_t valuesCapacity, int32_t *valLen, UBool valuesToo, const char* addKeyword, const char* addValue, UErrorCode *status) argument
815 locale_getKeywords(const char *localeID, char prev, char *keywords, int32_t keywordCapacity, char *values, int32_t valuesCapacity, int32_t *valLen, UBool valuesToo, UErrorCode *status) argument
827 uloc_getKeywordValue(const char* localeID, const char* keywordName, char* buffer, int32_t bufferCapacity, UErrorCode* status) argument
1218 ulocimp_getLanguage(const char *localeID, char *language, int32_t languageCapacity, const char **pEnd) argument
1265 ulocimp_getScript(const char *localeID, char *script, int32_t scriptCapacity, const char **pEnd) argument
1304 ulocimp_getCountry(const char *localeID, char *country, int32_t countryCapacity, const char **pEnd) argument
1356 _getVariantEx(const char *localeID, char prev, char *variant, int32_t variantCapacity, UBool needSeparator) argument
1416 _getVariant(const char *localeID, char prev, char *variant, int32_t variantCapacity) argument
1556 uloc_openKeywords(const char* localeID, UErrorCode* status) argument
1627 _canonicalize(const char* localeID, char* result, int32_t resultCapacity, uint32_t options, UErrorCode* err) argument
[all...]
H A Dulocimp.h48 ulocimp_getLanguage(const char *localeID,
53 ulocimp_getScript(const char *localeID,
58 ulocimp_getCountry(const char *localeID,
63 locale_getKeywordsStart(const char *localeID);
H A Dures_cnv.c29 const char *localeID,
75 return ures_open(path, localeID, status);
28 ures_openU(const UChar *myPath, const char *localeID, UErrorCode *status) argument
H A Dloclikely.cpp32 * This function looks for the localeID in the likelySubtags resource.
34 * @param localeID The tag to find.
40 findLikelySubtags(const char* localeID, argument
52 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr);
452 * @param localeID The locale ID to parse.
460 * @return The number of chars of the localeID parameter consumed.
464 const char* localeID,
473 const char* position = localeID;
477 localeID == NULL ||
563 return (int32_t)(position - localeID);
463 parseTagString( const char* localeID, char* lang, int32_t* langLength, char* script, int32_t* scriptLength, char* region, int32_t* regionLength, UErrorCode* err) argument
851 _uloc_addLikelySubtags(const char* localeID, char* maximizedLocaleID, int32_t maximizedLocaleIDCapacity, UErrorCode* err) argument
949 _uloc_minimizeSubtags(const char* localeID, char* minimizedLocaleID, int32_t minimizedLocaleIDCapacity, UErrorCode* err) argument
1205 do_canonicalize(const char* localeID, char* buffer, int32_t bufferCapacity, UErrorCode* err) argument
1232 uloc_addLikelySubtags(const char* localeID, char* maximizedLocaleID, int32_t maximizedLocaleIDCapacity, UErrorCode* err) argument
1256 uloc_minimizeSubtags(const char* localeID, char* minimizedLocaleID, int32_t minimizedLocaleIDCapacity, UErrorCode* err) argument
[all...]
H A Duloc_tag.c628 _appendLanguageToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument
638 len = uloc_getLanguage(localeID, buf, sizeof(buf), &tmpStatus);
683 _appendScriptToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument
693 len = uloc_getScript(localeID, buf, sizeof(buf), &tmpStatus);
725 _appendRegionToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument
735 len = uloc_getCountry(localeID, buf, sizeof(buf), &tmpStatus);
767 _appendVariantsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool *hadPosix, UErrorCode* status) { argument
777 len = uloc_getVariant(localeID, buf, sizeof(buf), &tmpStatus);
891 _appendKeywordsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool hadPosix, UErrorCode* status) { argument
899 keywordEnum = uloc_openKeywords(localeID, statu
1640 _appendPrivateuseToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool hadPosix, UErrorCode* status) argument
2312 uloc_toLanguageTag(const char* localeID, char* langtag, int32_t langtagCapacity, UBool strict, UErrorCode* status) argument
2391 uloc_forLanguageTag(const char* langtag, char* localeID, int32_t localeIDCapacity, int32_t* parsedLength, UErrorCode* status) argument
[all...]
H A Dlocid.cpp89 U_CFUNC int32_t locale_getKeywords(const char *localeID,
478 Locale& Locale::init(const char* localeID, UBool canonicalize) argument
503 if(localeID == NULL) {
514 uloc_canonicalize(localeID, fullName, sizeof(fullNameBuffer), &err) :
515 uloc_getName(localeID, fullName, sizeof(fullNameBuffer), &err);
526 uloc_canonicalize(localeID, fullName, length+1, &err) :
527 uloc_getName(localeID, fullName, length+1, &err);
693 const char *localeID = newLocale.getName(); local
694 locale_set_default_internal(localeID, status);
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
H A DULocale.java279 * The raw localeID that we were passed in.
281 private String localeID; field in class:ULocale
384 private ULocale(String localeID, Locale locale) { argument
385 this.localeID = localeID;
394 this.localeID = getName(forLocale(loc).toString());
426 * <p>This constructor does not canonicalize the localeID. So, for
430 * or {@link #canonicalize} if you need to canonicalize the localeID.
432 * @param localeID string representation of the locale, e.g:
436 public ULocale(String localeID) { argument
781 getLanguage(String localeID) argument
802 getScript(String localeID) argument
825 getCountry(String localeID) argument
845 getVariant(String localeID) argument
854 getFallback(String localeID) argument
908 getBaseName(String localeID) argument
931 getShortestSubtagLength(String localeID) argument
962 getName(String localeID) argument
1006 getKeywords(String localeID) argument
1028 getKeywordValue(String localeID, String keywordName) argument
1039 canonicalize(String localeID) argument
1125 setKeywordValue(String localeID, String keyword, String value) argument
1170 getISO3Language(String localeID) argument
1194 getISO3Country(String localeID) argument
1228 getDisplayLanguage(String localeID, String displayLocaleID) argument
1241 getDisplayLanguage(String localeID, ULocale displayLocale) argument
1275 getDisplayLanguageWithDialect(String localeID, String displayLocaleID) argument
1289 getDisplayLanguageWithDialect(String localeID, ULocale displayLocale) argument
1328 getDisplayScript(String localeID, String displayLocaleID) argument
1339 getDisplayScript(String localeID, ULocale displayLocale) argument
1391 getDisplayCountry(String localeID, String displayLocaleID) argument
1403 getDisplayCountry(String localeID, ULocale displayLocale) argument
1441 getDisplayVariant(String localeID, String displayLocaleID) argument
1453 getDisplayVariant(String localeID, ULocale displayLocale) argument
1535 getDisplayKeywordValue(String localeID, String keyword, String displayLocaleID) argument
1550 getDisplayKeywordValue(String localeID, String keyword, ULocale displayLocale) argument
1593 getDisplayName(String localeID, String displayLocaleID) argument
1605 getDisplayName(String localeID, ULocale displayLocale) argument
1645 getDisplayNameWithDialect(String localeID, String displayLocaleID) argument
1659 getDisplayNameWithDialect(String localeID, ULocale displayLocale) argument
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DULocale.java276 * The raw localeID that we were passed in.
278 private String localeID; field in class:ULocale
381 private ULocale(String localeID, Locale locale) { argument
382 this.localeID = localeID;
391 this.localeID = getName(forLocale(loc).toString());
422 * <p>This constructor does not canonicalize the localeID. So, for
426 * or {@link #canonicalize} if you need to canonicalize the localeID.
428 * @param localeID string representation of the locale, e.g:
431 public ULocale(String localeID) { argument
861 getLanguage(String localeID) argument
880 getScript(String localeID) argument
901 getCountry(String localeID) argument
919 getVariant(String localeID) argument
927 getFallback(String localeID) argument
982 getBaseName(String localeID) argument
1004 getShortestSubtagLength(String localeID) argument
1034 getName(String localeID) argument
1075 getKeywords(String localeID) argument
1095 getKeywordValue(String localeID, String keywordName) argument
1105 canonicalize(String localeID) argument
1195 setKeywordValue(String localeID, String keyword, String value) argument
1238 getISO3Language(String localeID) argument
1260 getISO3Country(String localeID) argument
1339 getDisplayLanguage(String localeID, String displayLocaleID) argument
1351 getDisplayLanguage(String localeID, ULocale displayLocale) argument
1382 getDisplayLanguageWithDialect(String localeID, String displayLocaleID) argument
1395 getDisplayLanguageWithDialect(String localeID, ULocale displayLocale) argument
1456 getDisplayScript(String localeID, String displayLocaleID) argument
1470 getDisplayScriptInContext(String localeID, String displayLocaleID) argument
1480 getDisplayScript(String localeID, ULocale displayLocale) argument
1493 getDisplayScriptInContext(String localeID, ULocale displayLocale) argument
1539 getDisplayCountry(String localeID, String displayLocaleID) argument
1552 getDisplayCountry(String localeID, ULocale displayLocale) argument
1587 getDisplayVariant(String localeID, String displayLocaleID) argument
1598 getDisplayVariant(String localeID, ULocale displayLocale) argument
1672 getDisplayKeywordValue(String localeID, String keyword, String displayLocaleID) argument
1686 getDisplayKeywordValue(String localeID, String keyword, ULocale displayLocale) argument
1724 getDisplayName(String localeID, String displayLocaleID) argument
1735 getDisplayName(String localeID, ULocale displayLocale) argument
1771 getDisplayNameWithDialect(String localeID, String displayLocaleID) argument
1784 getDisplayNameWithDialect(String localeID, ULocale displayLocale) argument
2724 parseTagString(String localeID, String tags[]) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DULocale.java301 * The raw localeID that we were passed in.
303 private String localeID; field in class:ULocale
406 private ULocale(String localeID, Locale locale) { argument
407 this.localeID = localeID;
416 this.localeID = getName(forLocale(loc).toString());
448 * <p>This constructor does not canonicalize the localeID. So, for
452 * or {@link #canonicalize} if you need to canonicalize the localeID.
454 * @param localeID string representation of the locale, e.g:
458 public ULocale(String localeID) { argument
919 getLanguage(String localeID) argument
940 getScript(String localeID) argument
963 getCountry(String localeID) argument
983 getVariant(String localeID) argument
992 getFallback(String localeID) argument
1050 getBaseName(String localeID) argument
1073 getShortestSubtagLength(String localeID) argument
1104 getName(String localeID) argument
1148 getKeywords(String localeID) argument
1170 getKeywordValue(String localeID, String keywordName) argument
1181 canonicalize(String localeID) argument
1273 setKeywordValue(String localeID, String keyword, String value) argument
1318 getISO3Language(String localeID) argument
1342 getISO3Country(String localeID) argument
1425 getDisplayLanguage(String localeID, String displayLocaleID) argument
1438 getDisplayLanguage(String localeID, ULocale displayLocale) argument
1472 getDisplayLanguageWithDialect(String localeID, String displayLocaleID) argument
1486 getDisplayLanguageWithDialect(String localeID, ULocale displayLocale) argument
1548 getDisplayScript(String localeID, String displayLocaleID) argument
1561 getDisplayScriptInContext(String localeID, String displayLocaleID) argument
1572 getDisplayScript(String localeID, ULocale displayLocale) argument
1584 getDisplayScriptInContext(String localeID, ULocale displayLocale) argument
1633 getDisplayCountry(String localeID, String displayLocaleID) argument
1647 getDisplayCountry(String localeID, ULocale displayLocale) argument
1685 getDisplayVariant(String localeID, String displayLocaleID) argument
1697 getDisplayVariant(String localeID, ULocale displayLocale) argument
1777 getDisplayKeywordValue(String localeID, String keyword, String displayLocaleID) argument
1792 getDisplayKeywordValue(String localeID, String keyword, ULocale displayLocale) argument
1833 getDisplayName(String localeID, String displayLocaleID) argument
1845 getDisplayName(String localeID, ULocale displayLocale) argument
1884 getDisplayNameWithDialect(String localeID, String displayLocaleID) argument
1898 getDisplayNameWithDialect(String localeID, ULocale displayLocale) argument
2847 parseTagString(String localeID, String tags[]) argument
[all...]
/external/icu/icu4c/source/i18n/unicode/
H A Dulocdata.h73 * @param localeID Specifies the locale associated with this locale
79 ulocdata_open(const char *localeID, UErrorCode *status);
196 * Returns the measurement system used in the locale specified by the localeID.
199 * @param localeID The id of the locale for which the measurement system to be retrieved.
206 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
217 * @param localeID The id of the locale for which the paper size information to be retrieved.
225 ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
/external/icu/icu4c/source/i18n/
H A Dulocdata.c50 ulocdata_open(const char *localeID, UErrorCode *status) argument
67 uld->bundle = ures_open(NULL, localeID, status);
68 uld->langBundle = ures_open(U_ICUDATA_LANG, localeID, status);
191 static UResourceBundle * measurementTypeBundleForLocale(const char *localeID, const char *measurementType, UErrorCode *status){ argument
200 uloc_addLikelySubtags(localeID, fullLoc, ULOC_FULLNAME_CAPACITY, status);
225 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status){ argument
234 measurement = measurementTypeBundleForLocale(localeID, MEASUREMENT_SYSTEM, status);
244 ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UErrorCode *status){ argument
253 paperSizeBundle = measurementTypeBundleForLocale(localeID, PAPER_SIZE, status);
H A Ducol_imp.h70 static void loadRules(const char *localeID, const char *collationType,
/external/icu/icu4c/source/test/cintltst/
H A Dcloctst.c1676 const char *localeID; member in struct:__anon6961
1734 keywords = uloc_openKeywords(testCases[i].localeID, &status);
1738 testCases[i].localeID,
1767 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status);
1771 testCases[i].localeID, buffer);
1774 testCases[i].localeID, testCases[i].expectedLocaleID, buffer);
1779 testCases[i].localeID, testCases[i].expectedLocaleID, buffer, u_errorName(status));
1784 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status);
1788 testCases[i].localeID, buffer);
1791 testCases[i].localeID, testCase
1822 const char *localeID; member in struct:__anon6962
2018 _canonicalize(int32_t selector, const char* localeID, char* result, int32_t resultCapacity, UErrorCode* ec) argument
2037 const char *localeID; /* input */ member in struct:__anon6964
2179 const char *localeID; member in struct:__anon6965
2242 const char *localeID; member in struct:__anon6966
2323 const char* localeID = "es@collation=phonebook;calendar=buddhist;currency=DEM"; local
2374 const char* localeID = "es"; local
2392 const char *localeID; member in struct:__anon6967
[all...]

Completed in 372 milliseconds

123