Home
last modified time | relevance | path

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

123

/external/icu/icu4c/source/common/
Duloc.cpp55 locale_getKeywords(const char *localeID,
517 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
526 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
527 int32_t localeIDLength = uprv_strlen(localeID); in getShortestSubtagLength()
534 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
557 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
559 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
570 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
627 _getKeywords(const char *localeID, in _getKeywords() argument
640 const char* pos = localeID; in _getKeywords()
[all …]
Dloclikely.cpp38 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 …]
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);
Duloc_tag.c994 _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 …]
Dures_cnv.c29 const char *localeID, in ures_openU() argument
75 return ures_open(path, localeID, status); in ures_openU()
Dlocid.cpp89 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()
/external/chromium_org/third_party/icu/source/common/
Duloc.c55 locale_getKeywords(const char *localeID,
532 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
541 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
542 int32_t localeIDLength = uprv_strlen(localeID); in getShortestSubtagLength()
549 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
572 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
574 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
585 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
642 _getKeywords(const char *localeID, in _getKeywords() argument
655 const char* pos = localeID; in _getKeywords()
[all …]
Dloclikely.cpp38 findLikelySubtags(const char* localeID, in findLikelySubtags() argument
50 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr); in findLikelySubtags()
457 const char* localeID, in parseTagString() argument
466 const char* position = localeID; in parseTagString()
470 localeID == NULL || in parseTagString()
553 return (int32_t)(position - localeID); in parseTagString()
842 _uloc_addLikelySubtags(const char* localeID, in _uloc_addLikelySubtags() argument
861 else if (localeID == NULL || in _uloc_addLikelySubtags()
868 localeID, in _uloc_addLikelySubtags()
886 trailing = &localeID[trailingIndex]; in _uloc_addLikelySubtags()
[all …]
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);
Duloc_tag.c923 _appendLanguageToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendLanguageToLanguageTag() argument
933 len = uloc_getLanguage(localeID, buf, sizeof(buf), &tmpStatus); in _appendLanguageToLanguageTag()
978 _appendScriptToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UE… in _appendScriptToLanguageTag() argument
988 len = uloc_getScript(localeID, buf, sizeof(buf), &tmpStatus); in _appendScriptToLanguageTag()
1020 _appendRegionToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UE… in _appendRegionToLanguageTag() argument
1030 len = uloc_getCountry(localeID, buf, sizeof(buf), &tmpStatus); in _appendRegionToLanguageTag()
1062 _appendVariantsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendVariantsToLanguageTag() argument
1072 len = uloc_getVariant(localeID, buf, sizeof(buf), &tmpStatus); in _appendVariantsToLanguageTag()
1183 _appendKeywordsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendKeywordsToLanguageTag() argument
1188 keywordEnum = uloc_openKeywords(localeID, status); in _appendKeywordsToLanguageTag()
[all …]
Dures_cnv.c29 const char *localeID, in ures_openU() argument
75 return ures_open(path, localeID, status); in ures_openU()
/external/icu/icu4c/source/common/unicode/
Duloc.h389 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 …]
/external/chromium_org/third_party/icu/source/common/unicode/
Duloc.h389 uloc_setDefault(const char* localeID,
405 uloc_getLanguage(const char* localeID,
423 uloc_getScript(const char* localeID,
441 uloc_getCountry(const char* localeID,
459 uloc_getVariant(const char* localeID,
482 uloc_getName(const char* localeID,
505 uloc_canonicalize(const char* localeID,
518 uloc_getISO3Language(const char* localeID);
529 uloc_getISO3Country(const char* localeID);
540 uloc_getLCID(const char* localeID);
[all …]
/external/icu/icu4c/source/test/intltest/
Dwinutil.cpp38 char localeID[ULOC_FULLNAME_CAPACITY]; in EnumLocalesProc() local
56 …Len = uprv_convertToPosix(lcidRecords[lcidCount].lcid, localeID, sizeof(localeID)/sizeof(localeID[… in EnumLocalesProc()
58 lcidRecords[lcidCount].localeID = new char[localeIDLen + 1]; in EnumLocalesProc()
59 memcpy(lcidRecords[lcidCount].localeID, localeID, localeIDLen); in EnumLocalesProc()
60 lcidRecords[lcidCount].localeID[localeIDLen] = 0; in EnumLocalesProc()
62 lcidRecords[lcidCount].localeID = NULL; in EnumLocalesProc()
88 delete lcidRecords[i].localeID; in freeLocales()
Dwinnmtst.cpp229 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 …]
Dwindttst.cpp117 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()
/external/chromium_org/third_party/icu/source/test/intltest/
Dwinnmtst.cpp229 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 …]
Dwinutil.cpp38 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()
Dwindttst.cpp117 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()
/external/icu/icu4c/source/i18n/
Dulocdata.c50 ulocdata_open(const char *localeID, UErrorCode *status) in ulocdata_open() argument
67 uld->bundle = ures_open(NULL, localeID, status); in ulocdata_open()
68 uld->langBundle = ures_open(U_ICUDATA_LANG, localeID, status); in ulocdata_open()
191 static UResourceBundle * measurementTypeBundleForLocale(const char *localeID, const char *measureme… in measurementTypeBundleForLocale() argument
200 uloc_addLikelySubtags(localeID, fullLoc, ULOC_FULLNAME_CAPACITY, status); in measurementTypeBundleForLocale()
225 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status){ in ulocdata_getMeasurementSystem() argument
234 measurement = measurementTypeBundleForLocale(localeID, MEASUREMENT_SYSTEM, status); in ulocdata_getMeasurementSystem()
244 ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UErrorCode *status){ in ulocdata_getPaperSize() argument
253 paperSizeBundle = measurementTypeBundleForLocale(localeID, PAPER_SIZE, status); in ulocdata_getPaperSize()
/external/chromium_org/third_party/icu/source/i18n/
Dulocdata.c49 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()
188 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status){ in ulocdata_getMeasurementSystem() argument
198 bundle = ures_open(NULL, localeID, status); in ulocdata_getMeasurementSystem()
212 ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UErrorCode *status){ in ulocdata_getPaperSize() argument
222 bundle = ures_open(NULL, localeID, status); in ulocdata_getPaperSize()
/external/chromium_org/third_party/icu/source/test/cintltst/
Dcloctst.c1443 const char *localeID; in TestKeywordVariants() member
1492 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1496 testCases[i].localeID, in TestKeywordVariants()
1523 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1526 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); in TestKeywordVariants()
1528 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1531 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer); in TestKeywordVariants()
1540 const char *localeID; in TestKeywordVariantParsing() member
1558 …resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1561 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcloctst.c1670 const char *localeID; in TestKeywordVariants() member
1719 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1723 testCases[i].localeID, in TestKeywordVariants()
1750 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1754 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); in TestKeywordVariants()
1756 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1759 testCases[i].localeID, testCases[i].expectedCanonicalID, buffer); in TestKeywordVariants()
1768 const char *localeID; in TestKeywordVariantParsing() member
1786 …resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1790 testCases[i].expectedValue, testCases[i].localeID, testCases[i].keyword, buffer); in TestKeywordVariantParsing()
[all …]
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dulocdata.h67 ulocdata_open(const char *localeID, UErrorCode *status);
191 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
210 ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
/external/icu/icu4c/source/i18n/unicode/
Dulocdata.h79 ulocdata_open(const char *localeID, UErrorCode *status);
205 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
224 ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);

123