/external/icu4c/common/ |
D | uloc.cpp | 55 locale_getKeywords(const char *localeID, 525 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1) 534 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument 535 int32_t localeIDLength = uprv_strlen(localeID); in getShortestSubtagLength() 542 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength() 565 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument 567 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart() 578 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart() 635 _getKeywords(const char *localeID, in _getKeywords() argument 648 const char* pos = localeID; in _getKeywords() [all …]
|
D | loclikely.cpp | 38 findLikelySubtags(const char* localeID, in findLikelySubtags() argument 50 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr); in findLikelySubtags() 462 const char* localeID, in parseTagString() argument 471 const char* position = localeID; in parseTagString() 475 localeID == NULL || in parseTagString() 561 return (int32_t)(position - localeID); in parseTagString() 849 _uloc_addLikelySubtags(const char* localeID, in _uloc_addLikelySubtags() argument 868 else if (localeID == NULL || in _uloc_addLikelySubtags() 875 localeID, in _uloc_addLikelySubtags() 893 while (_isIDSeparator(localeID[trailingIndex])) { in _uloc_addLikelySubtags() [all …]
|
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);
|
D | uloc_tag.c | 994 _appendLanguageToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendLanguageToLanguageTag() argument 1004 len = uloc_getLanguage(localeID, buf, sizeof(buf), &tmpStatus); in _appendLanguageToLanguageTag() 1049 _appendScriptToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UE… in _appendScriptToLanguageTag() argument 1059 len = uloc_getScript(localeID, buf, sizeof(buf), &tmpStatus); in _appendScriptToLanguageTag() 1091 _appendRegionToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UE… in _appendRegionToLanguageTag() argument 1101 len = uloc_getCountry(localeID, buf, sizeof(buf), &tmpStatus); in _appendRegionToLanguageTag() 1133 _appendVariantsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendVariantsToLanguageTag() argument 1143 len = uloc_getVariant(localeID, buf, sizeof(buf), &tmpStatus); in _appendVariantsToLanguageTag() 1257 _appendKeywordsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendKeywordsToLanguageTag() argument 1265 keywordEnum = uloc_openKeywords(localeID, status); in _appendKeywordsToLanguageTag() [all …]
|
D | ures_cnv.c | 29 const char *localeID, in ures_openU() argument 75 return ures_open(path, localeID, status); in ures_openU()
|
D | locid.cpp | 89 U_CFUNC int32_t locale_getKeywords(const char *localeID, 453 Locale& Locale::init(const char* localeID, UBool canonicalize) in init() argument 479 if(localeID == NULL) { in init() 490 uloc_canonicalize(localeID, fullName, sizeof(fullNameBuffer), &err) : in init() 491 uloc_getName(localeID, fullName, sizeof(fullNameBuffer), &err); in init() 502 uloc_canonicalize(localeID, fullName, length+1, &err) : in init() 503 uloc_getName(localeID, fullName, length+1, &err); in init() 626 const char *localeID = newLocale.getName(); in setDefault() local 627 locale_set_default_internal(localeID, status); in setDefault()
|
D | putil.cpp | 1646 const char *localeID = getenv("LC_ALL"); in uprv_getDefaultLocaleID() 1649 if (localeID == NULL) in uprv_getDefaultLocaleID() 1650 localeID = getenv("LANG"); in uprv_getDefaultLocaleID() 1651 if (localeID == NULL) in uprv_getDefaultLocaleID() 1652 localeID = setlocale(LC_ALL, NULL); in uprv_getDefaultLocaleID() 1654 if (localeID == NULL) in uprv_getDefaultLocaleID() 1658 if((p = uprv_strrchr(localeID, '/')) != NULL) in uprv_getDefaultLocaleID() 1662 localeID = p; in uprv_getDefaultLocaleID() 1666 uprv_strcpy(correctedLocale, localeID); in uprv_getDefaultLocaleID()
|
D | uresbund.cpp | 315 static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) { in init_entry() argument 330 if(localeID == NULL) { /* if localeID is NULL, we're trying to open default locale */ in init_entry() 332 } else if(*localeID == 0) { /* if localeID is "" then we try to open root locale */ in init_entry() 335 name = localeID; in init_entry() 513 static UResourceDataEntry *entryOpen(const char* path, const char* localeID, UErrorCode* status) { in entryOpen() argument 537 uprv_strncpy(name, localeID, sizeof(name) - 1); in entryOpen() 1993 const char* localeID, UErrorCode* status) { in ures_openFillIn() argument 2001 uloc_getBaseName(localeID, canonLocaleID, sizeof(canonLocaleID), status); in ures_openFillIn() 2032 const char* localeID, in ures_open() argument 2044 uloc_getBaseName(localeID, canonLocaleID, sizeof(canonLocaleID), status); in ures_open() [all …]
|
/external/icu4c/common/unicode/ |
D | uloc.h | 389 uloc_setDefault(const char* localeID, 406 uloc_getLanguage(const char* localeID, 424 uloc_getScript(const char* localeID, 442 uloc_getCountry(const char* localeID, 460 uloc_getVariant(const char* localeID, 483 uloc_getName(const char* localeID, 506 uloc_canonicalize(const char* localeID, 519 uloc_getISO3Language(const char* localeID); 530 uloc_getISO3Country(const char* localeID); 541 uloc_getLCID(const char* localeID); [all …]
|
D | ures.h | 347 const char* localeID,
|
/external/webkit/Source/JavaScriptCore/icu/unicode/ |
D | uloc.h | 372 uloc_setDefault(const char* localeID, 388 uloc_getLanguage(const char* localeID, 406 uloc_getScript(const char* localeID, 424 uloc_getCountry(const char* localeID, 442 uloc_getVariant(const char* localeID, 465 uloc_getName(const char* localeID, 488 uloc_canonicalize(const char* localeID, 501 uloc_getISO3Language(const char* localeID); 512 uloc_getISO3Country(const char* localeID); 523 uloc_getLCID(const char* localeID); [all …]
|
/external/webkit/Source/WebCore/icu/unicode/ |
D | uloc.h | 372 uloc_setDefault(const char* localeID, 388 uloc_getLanguage(const char* localeID, 406 uloc_getScript(const char* localeID, 424 uloc_getCountry(const char* localeID, 442 uloc_getVariant(const char* localeID, 465 uloc_getName(const char* localeID, 488 uloc_canonicalize(const char* localeID, 501 uloc_getISO3Language(const char* localeID); 512 uloc_getISO3Country(const char* localeID); 523 uloc_getLCID(const char* localeID); [all …]
|
/external/icu4c/test/intltest/ |
D | winnmtst.cpp | 229 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() argument 246 UnicodeString locale(localeID); in testLocale() 254 UnicodeString locale(localeID); in testLocale() 262 UnicodeString locale(localeID); in testLocale() 277 char localeID[128]; in testLocales() local 280 if (lcidRecords[i].localeID == NULL) { in testLocales() 284 strcpy(localeID, lcidRecords[i].localeID); in testLocales() 286 if (strchr(localeID, '@') > 0) { in testLocales() 287 strcat(localeID, ";"); in testLocales() 289 strcat(localeID, "@"); in testLocales() [all …]
|
D | winutil.cpp | 38 const char* localeID = NULL; in EnumLocalesProc() local 55 localeID = uprv_convertToPosix(lcidRecords[lcidCount].lcid, &status); in EnumLocalesProc() 57 lcidRecords[lcidCount].localeID = new char[strlen(localeID)]; in EnumLocalesProc() 59 strcpy(lcidRecords[lcidCount].localeID, localeID); in EnumLocalesProc() 84 delete lcidRecords[i].localeID; in freeLocales()
|
D | windttst.cpp | 117 if (lcidRecords[i].localeID == NULL) { in testLocales() 125 char localeID[64]; in testLocales() local 127 uprv_strcpy(localeID, lcidRecords[i].localeID); in testLocales() 128 uprv_strcat(localeID, getCalendarType(calType)); in testLocales() 131 Locale ulocale(localeID); in testLocales() 137 if (uprv_strchr(localeID, '@') > 0) { in testLocales() 138 uprv_strcat(localeID, ";"); in testLocales() 140 uprv_strcat(localeID, "@"); in testLocales() 143 uprv_strcat(localeID, "compat=host"); in testLocales() 145 Locale wlocale(localeID); in testLocales()
|
D | loctest.cpp | 1590 const char *localeID; in TestKeywordVariants() member 1629 Locale l(testCases[i].localeID); in TestKeywordVariants() 1687 testCases[i].expectedLocaleID, testCases[i].localeID, result); in TestKeywordVariants() 1697 const char *localeID; in TestKeywordVariantParsing() member 1715 Locale l(testCases[i].localeID); in TestKeywordVariantParsing() 1719 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing() 1761 const char *localeID; in TestGetBaseName() member 1772 Locale loc(testCases[i].localeID); in TestGetBaseName() 1775 testCases[i].localeID, testCases[i].baseName, loc.getBaseName()); in TestGetBaseName() 2092 const char* localeID) { in _canonicalize() argument [all …]
|
D | winutil.h | 32 char *localeID; member
|
D | ustrtest.h | 105 void *iter, const char *localeID, uint32_t options);
|
D | strcase.cpp | 347 void *iter, const char *localeID, uint32_t options) { in TestCasingImpl() argument 351 Locale locale(localeID); in TestCasingImpl() 396 LocalUCaseMapPointer csm(ucasemap_open(localeID, options, errorCode)); in TestCasingImpl()
|
D | numfmtst.cpp | 753 const char *localeID = testCases[i][0]; in TestCurrency() local 758 uloc_canonicalize(localeID, loc, 256, &status); in TestCurrency() 761 errln("Could not create currency formatter for locale %s",localeID); in TestCurrency() 768 + UnicodeString( " for locale: ")+ UnicodeString(localeID) ); in TestCurrency() 2619 const char* localeID = "pt_PT@currency=PTE"; in TestJB3832() local 2620 Locale loc(localeID); in TestJB3832() 2626 …dataerrln("Could not create currency formatter for locale %s - %s", localeID, u_errorName(status)); in TestJB3832() 2633 + UnicodeString( " for locale: ")+ UnicodeString(localeID) ); in TestJB3832() 6487 const char *localeID = parentLocaleTests[i][0]; in TestExplicitParents() local 6491 uloc_canonicalize(localeID, loc, 256, &status); in TestExplicitParents() [all …]
|
/external/icu4c/i18n/ |
D | ulocdata.c | 49 ulocdata_open(const char *localeID, UErrorCode *status) in ulocdata_open() argument 66 uld->bundle = ures_open(NULL, localeID, status); in ulocdata_open() 67 uld->langBundle = ures_open(U_ICUDATA_LANG, localeID, status); in ulocdata_open() 190 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status){ in ulocdata_getMeasurementSystem() argument 200 bundle = ures_open(NULL, localeID, status); in ulocdata_getMeasurementSystem() 214 ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UErrorCode *status){ in ulocdata_getPaperSize() argument 224 bundle = ures_open(NULL, localeID, status); in ulocdata_getPaperSize()
|
/external/icu4c/test/cintltst/ |
D | cloctst.c | 1588 const char *localeID; in TestKeywordVariants() member 1637 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants() 1641 testCases[i].localeID, in TestKeywordVariants() 1668 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants() 1671 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); in TestKeywordVariants() 1673 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants() 1676 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer); in TestKeywordVariants() 1685 const char *localeID; in TestKeywordVariantParsing() member 1703 …resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing() 1706 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing() [all …]
|
/external/icu4c/i18n/unicode/ |
D | ulocdata.h | 77 ulocdata_open(const char *localeID, UErrorCode *status); 203 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status); 222 ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
|
/external/icu4c/tools/toolutil/ |
D | pkgitems.cpp | 263 char localeID[32]; in checkAlias() local 264 if(length>=(int32_t)sizeof(localeID)) { in checkAlias() 270 u_UCharsToChars(alias, localeID, length); in checkAlias() 271 localeID[length]=0; in checkAlias() 273 checkIDSuffix(itemName, localeID, -1, (useResSuffix ? ".res" : ""), check, context, pErrorCode); in checkAlias()
|
/external/icu4c/tools/genrb/ |
D | wrtxml.cpp | 178 char* localeID = (char*) uprv_malloc(idLen); in parseFilename() local 192 uprv_memcpy(localeID, id, pos); in parseFilename() 193 localeID[pos]=0; /* NUL terminate the string */ in parseFilename() 197 canonLen = uloc_canonicalize(localeID, canon, canonCapacity, &status); in parseFilename() 200 …fprintf(stderr, "Could not canonicalize the locale ID: %s. Error: %s\n", localeID, u_errorName(sta… in parseFilename()
|