/external/icu4c/test/intltest/ |
H A D | winutil.cpp | 38 const char* localeID = NULL; local 55 localeID = uprv_convertToPosix(lcidRecords[lcidCount].lcid, &status); 57 lcidRecords[lcidCount].localeID = new char[strlen(localeID)]; 59 strcpy(lcidRecords[lcidCount].localeID, localeID); 84 delete lcidRecords[i].localeID;
|
H A D | winutil.h | 32 char *localeID; member in struct:Win32Utilities::LCIDRecord
|
H A D | windttst.cpp | 116 // 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 D | winnmtst.cpp | 229 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 D | ustrtest.h | 94 void *iter, const char *localeID, uint32_t options);
|
H A D | loctest.cpp | 1569 const char *localeID; member in struct:__anon4969 1608 Locale l(testCases[i].localeID); 1666 testCases[i].expectedLocaleID, testCases[i].localeID, result); 1676 const char *localeID; member in struct:__anon4970 1694 Locale l(testCases[i].localeID); 1698 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); 1740 const char *localeID; member in struct:__anon4972 1751 Locale loc(testCases[i].localeID); 1754 testCases[i].localeID, testCases[i].baseName, loc.getBaseName()); 2067 const char* localeID) { 2066 _canonicalize(int32_t selector, const char* localeID) argument 2083 const char *localeID; /* input */ member in struct:__anon4973 [all...] |
H A D | strcase.cpp | 350 void *iter, const char *localeID, uint32_t options) { 354 Locale locale(localeID); 399 LocalUCaseMapPointer csm(ucasemap_open(localeID, options, errorCode)); 347 TestCasingImpl(const UnicodeString &input, const UnicodeString &output, int32_t whichCase, void *iter, const char *localeID, uint32_t options) argument
|
H A D | numfmtst.cpp | 741 const char *localeID = testCases[i][0]; local 746 uloc_canonicalize(localeID, loc, 256, &status); 749 errln("Could not create currency formatter for locale %s",localeID); 756 + UnicodeString( " for locale: ")+ UnicodeString(localeID) ); 2346 const char* localeID = "pt_PT@currency=PTE"; local 2347 Locale loc(localeID); 2353 dataerrln("Could not create currency formatter for locale %s - %s", localeID, u_errorName(status)); 2360 + UnicodeString( " for locale: ")+ UnicodeString(localeID) );
|
/external/icu4c/common/ |
H A D | ulocimp.h | 48 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 D | uloc.c | 55 locale_getKeywords(const char *localeID, 532 #define _hasBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1) 540 /* Gets the size of the shortest subtag in the given localeID. */ 541 static int32_t getShortestSubtagLength(const char *localeID) { argument 542 int32_t localeIDLength = uprv_strlen(localeID); 549 if (localeID[i] != '_' && localeID[i] != '-') { 572 locale_getKeywordsStart(const char *localeID) { argument 574 if((result = uprv_strchr(localeID, '@')) != NULL) { 585 if((result = uprv_strchr(localeID, *charToFin 642 _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 809 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 821 uloc_getKeywordValue(const char* localeID, const char* keywordName, char* buffer, int32_t bufferCapacity, UErrorCode* status) argument 1210 ulocimp_getLanguage(const char *localeID, char *language, int32_t languageCapacity, const char **pEnd) argument 1256 ulocimp_getScript(const char *localeID, char *script, int32_t scriptCapacity, const char **pEnd) argument 1294 ulocimp_getCountry(const char *localeID, char *country, int32_t countryCapacity, const char **pEnd) argument 1346 _getVariantEx(const char *localeID, char prev, char *variant, int32_t variantCapacity, UBool needSeparator) argument 1406 _getVariant(const char *localeID, char prev, char *variant, int32_t variantCapacity) argument 1546 uloc_openKeywords(const char* localeID, UErrorCode* status) argument 1617 _canonicalize(const char* localeID, char* result, int32_t resultCapacity, uint32_t options, UErrorCode* err) argument 1861 uloc_getParent(const char* localeID, char* parent, int32_t parentCapacity, UErrorCode* err) argument 1889 uloc_getLanguage(const char* localeID, char* language, int32_t languageCapacity, UErrorCode* err) argument 1910 uloc_getScript(const char* localeID, char* script, int32_t scriptCapacity, UErrorCode* err) argument 1934 uloc_getCountry(const char* localeID, char* country, int32_t countryCapacity, UErrorCode* err) argument 1967 uloc_getVariant(const char* localeID, char* variant, int32_t variantCapacity, UErrorCode* err) argument 2028 uloc_getName(const char* localeID, char* name, int32_t nameCapacity, UErrorCode* err) argument 2037 uloc_getBaseName(const char* localeID, char* name, int32_t nameCapacity, UErrorCode* err) argument 2046 uloc_canonicalize(const char* localeID, char* name, int32_t nameCapacity, UErrorCode* err) argument 2055 uloc_getISO3Language(const char* localeID) argument 2075 uloc_getISO3Country(const char* localeID) argument 2096 uloc_getLCID(const char* localeID) argument [all...] |
H A D | ures_cnv.c | 29 const char *localeID, 75 return ures_open(path, localeID, status); 28 ures_openU(const UChar *myPath, const char *localeID, UErrorCode *status) argument
|
H A D | loclikely.cpp | 30 * This function looks for the localeID in the likelySubtags resource. 32 * @param localeID The tag to find. 38 findLikelySubtags(const char* localeID, argument 50 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr); 445 * @param localeID The locale ID to parse. 453 * @return The number of chars of the localeID parameter consumed. 457 const char* localeID, 466 const char* position = localeID; 470 localeID == NULL || 553 return (int32_t)(position - localeID); 456 parseTagString( const char* localeID, char* lang, int32_t* langLength, char* script, int32_t* scriptLength, char* region, int32_t* regionLength, UErrorCode* err) argument 842 _uloc_addLikelySubtags(const char* localeID, char* maximizedLocaleID, int32_t maximizedLocaleIDCapacity, UErrorCode* err) argument 937 _uloc_minimizeSubtags(const char* localeID, char* minimizedLocaleID, int32_t minimizedLocaleIDCapacity, UErrorCode* err) argument 1190 do_canonicalize(const char* localeID, char* buffer, int32_t bufferCapacity, UErrorCode* err) argument 1217 uloc_addLikelySubtags(const char* localeID, char* maximizedLocaleID, int32_t maximizedLocaleIDCapacity, UErrorCode* err) argument 1241 uloc_minimizeSubtags(const char* localeID, char* minimizedLocaleID, int32_t minimizedLocaleIDCapacity, UErrorCode* err) argument [all...] |
H A D | uloc_tag.c | 923 _appendLanguageToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument 933 len = uloc_getLanguage(localeID, buf, sizeof(buf), &tmpStatus); 978 _appendScriptToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument 988 len = uloc_getScript(localeID, buf, sizeof(buf), &tmpStatus); 1020 _appendRegionToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UErrorCode* status) { argument 1030 len = uloc_getCountry(localeID, buf, sizeof(buf), &tmpStatus); 1062 _appendVariantsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool *hadPosix, UErrorCode* status) { argument 1072 len = uloc_getVariant(localeID, buf, sizeof(buf), &tmpStatus); 1183 _appendKeywordsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UBool hadPosix, UErrorCode* status) { argument 1188 keywordEnum = uloc_openKeywords(localeID, statu 2187 uloc_toLanguageTag(const char* localeID, char* langtag, int32_t langtagCapacity, UBool strict, UErrorCode* status) argument 2219 uloc_forLanguageTag(const char* langtag, char* localeID, int32_t localeIDCapacity, int32_t* parsedLength, UErrorCode* status) argument [all...] |
H A D | locid.cpp | 71 U_CFUNC int32_t locale_getKeywords(const char *localeID, 512 Locale& Locale::init(const char* localeID, UBool canonicalize) argument 538 if(localeID == NULL) { 549 uloc_canonicalize(localeID, fullName, sizeof(fullNameBuffer), &err) : 550 uloc_getName(localeID, fullName, sizeof(fullNameBuffer), &err); 561 uloc_canonicalize(localeID, fullName, length+1, &err) : 562 uloc_getName(localeID, fullName, length+1, &err); 692 const char *localeID = newLocale.getName(); local 693 locale_set_default_internal(localeID);
|
H A D | putil.c | 1614 const char *localeID = getenv("LC_ALL"); 1617 if (localeID == NULL) 1618 localeID = getenv("LANG"); 1619 if (localeID == NULL) 1620 localeID = setlocale(LC_ALL, NULL); 1622 if (localeID == NULL) 1626 if((p = uprv_strrchr(localeID, '/')) != NULL) 1630 localeID = p; 1634 uprv_strcpy(correctedLocale, localeID);
|
H A D | uresbund.c | 318 static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) { argument 333 if(localeID == NULL) { /* if localeID is NULL, we're trying to open default locale */ 335 } else if(*localeID == 0) { /* if localeID is "" then we try to open root locale */ 338 uprv_strcpy(name, localeID); 516 static UResourceDataEntry *entryOpen(const char* path, const char* localeID, UErrorCode* status) { argument 540 uprv_strcpy(name, localeID); 1979 const char* localeID, UErrorCode* status) { 1992 r->fData = entryOpen(path, localeID, statu 1978 ures_openFillIn(UResourceBundle *r, const char* path, const char* localeID, UErrorCode* status) argument 2010 ures_open(const char* path, const char* localeID, UErrorCode* status) argument 2083 ures_openDirect(const char* path, const char* localeID, UErrorCode* status) argument [all...] |
/external/webkit/Source/JavaScriptCore/icu/unicode/ |
H A D | uloc.h | 172 * uloc_getDisplayName(const char* localeID, 365 * @param localeID the new ICU default locale. A value of NULL will try to get 372 uloc_setDefault(const char* localeID, 378 * @param localeID the locale to get the ISO language code with 379 * @param language the language code for localeID 388 uloc_getLanguage(const char* localeID, 396 * @param localeID the locale to get the ISO language code with 397 * @param script the language code for localeID 406 uloc_getScript(const char* localeID, 414 * @param localeID th [all...] |
/external/webkit/Source/WebCore/icu/unicode/ |
H A D | uloc.h | 172 * uloc_getDisplayName(const char* localeID, 365 * @param localeID the new ICU default locale. A value of NULL will try to get 372 uloc_setDefault(const char* localeID, 378 * @param localeID the locale to get the ISO language code with 379 * @param language the language code for localeID 388 uloc_getLanguage(const char* localeID, 396 * @param localeID the locale to get the ISO language code with 397 * @param script the language code for localeID 406 uloc_getScript(const char* localeID, 414 * @param localeID th [all...] |
/external/icu4c/common/unicode/ |
H A D | uloc.h | 172 * 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, 395 * @param localeID the locale to get the ISO language code with 396 * @param language the language code for localeID 405 uloc_getLanguage(const char* localeID, 413 * @param localeID the locale to get the ISO language code with 414 * @param script the language code for localeID 423 uloc_getScript(const char* localeID, 431 * @param localeID th [all...] |
H A D | ures.h | 166 /** This function does not care what kind of localeID is passed in. It simply opens a bundle with 333 * @param localeID specifies the locale for which we want to open the resource 341 const char* localeID,
|
/external/icu4c/i18n/unicode/ |
H A D | ulocdata.h | 61 * @param localeID Specifies the locale associated with this locale 67 ulocdata_open(const char *localeID, UErrorCode *status); 181 * Returns the measurement system used in the locale specified by the localeID. 184 * @param localeID The id of the locale for which the measurement system to be retrieved. 191 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status); 202 * @param localeID The id of the locale for which the paper size information to be retrieved. 210 ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
|
/external/icu4c/i18n/ |
H A D | ulocdata.c | 49 ulocdata_open(const char *localeID, UErrorCode *status) argument 66 uld->bundle = ures_open(NULL, localeID, status); 67 uld->langBundle = ures_open(U_ICUDATA_LANG, localeID, status); 188 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status){ argument 198 bundle = ures_open(NULL, localeID, status); 212 ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UErrorCode *status){ argument 222 bundle = ures_open(NULL, localeID, status);
|
/external/icu4c/test/cintltst/ |
H A D | cloctst.c | 1443 const char *localeID; member in struct:__anon4893 1492 keywords = uloc_openKeywords(testCases[i].localeID, &status); 1496 testCases[i].localeID, 1523 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); 1526 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); 1528 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); 1531 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer); 1540 const char *localeID; member in struct:__anon4894 1558 resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status); 1561 testCases[i].expectedValue, testCases[i].localeID, testCase 1735 _canonicalize(int32_t selector, const char* localeID, char* result, int32_t resultCapacity, UErrorCode* ec) argument 1754 const char *localeID; /* input */ member in struct:__anon4896 1896 const char *localeID; member in struct:__anon4897 1959 const char *localeID; member in struct:__anon4898 2040 const char* localeID = "es@collation=phonebook;calendar=buddhist;currency=DEM"; local 2091 const char* localeID = "es"; local 2109 const char *localeID; member in struct:__anon4899 [all...] |
/external/icu4c/tools/toolutil/ |
H A D | pkgitems.cpp | 263 char localeID[32]; local 264 if(length>=(int32_t)sizeof(localeID)) { 270 u_UCharsToChars(alias, localeID, length); 271 localeID[length]=0; 273 checkIDSuffix(itemName, localeID, -1, (useResSuffix ? ".res" : ""), check, context, pErrorCode);
|
/external/icu4c/tools/genrb/ |
H A D | wrtxml.cpp | 176 char* localeID = (char*) uprv_malloc(idLen); local 190 uprv_memcpy(localeID, id, pos); 191 localeID[pos]=0; /* NUL terminate the string */ 195 canonLen = uloc_canonicalize(localeID, canon, canonCapacity, &status); 198 fprintf(stderr, "Could not canonicalize the locale ID: %s. Error: %s\n", localeID, u_errorName(status));
|