Home
last modified time | relevance | path

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

1234567

/third_party/icu/icu4c/source/common/
Duloc.cpp479 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
491 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
492 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength()
499 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
526 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
528 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
539 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
596 ulocimp_getKeywords(const char *localeID, in ulocimp_getKeywords() argument
606 const char* pos = localeID; in ulocimp_getKeywords()
717 uloc_getKeywordValue(const char* localeID, in uloc_getKeywordValue() argument
[all …]
Dulocimp.h53 ulocimp_getKeywords(const char *localeID,
60 ulocimp_getLanguage(const char *localeID,
65 ulocimp_getScript(const char *localeID,
70 ulocimp_getCountry(const char *localeID,
75 ulocimp_getName(const char* localeID,
80 ulocimp_getBaseName(const char* localeID,
85 ulocimp_canonicalize(const char* localeID,
90 ulocimp_getKeywordValue(const char* localeID,
115 ulocimp_toLanguageTag(const char* localeID,
179 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
[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 …]
/third_party/skia/third_party/externals/icu/source/common/
Duloc.cpp479 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
491 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
492 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength()
499 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
526 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
528 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
539 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
596 ulocimp_getKeywords(const char *localeID, in ulocimp_getKeywords() argument
606 const char* pos = localeID; in ulocimp_getKeywords()
717 uloc_getKeywordValue(const char* localeID, in uloc_getKeywordValue() argument
[all …]
Dulocimp.h53 ulocimp_getKeywords(const char *localeID,
60 ulocimp_getLanguage(const char *localeID,
65 ulocimp_getScript(const char *localeID,
70 ulocimp_getCountry(const char *localeID,
75 ulocimp_getName(const char* localeID,
80 ulocimp_getBaseName(const char* localeID,
85 ulocimp_canonicalize(const char* localeID,
90 ulocimp_getKeywordValue(const char* localeID,
115 ulocimp_toLanguageTag(const char* localeID,
179 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
[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 …]
/third_party/node/deps/icu-small/source/common/
Duloc.cpp479 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
500 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
501 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength()
508 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
535 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
537 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
548 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
605 ulocimp_getKeywords(const char *localeID, in ulocimp_getKeywords() argument
615 const char* pos = localeID; in ulocimp_getKeywords()
726 uloc_getKeywordValue(const char* localeID, in uloc_getKeywordValue() argument
[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.h53 ulocimp_getKeywords(const char *localeID,
60 ulocimp_getLanguage(const char *localeID,
65 ulocimp_getScript(const char *localeID,
70 ulocimp_getCountry(const char *localeID,
75 ulocimp_getName(const char* localeID,
80 ulocimp_getBaseName(const char* localeID,
85 ulocimp_canonicalize(const char* localeID,
90 ulocimp_getKeywordValue(const char* localeID,
115 ulocimp_toLanguageTag(const char* localeID,
179 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
[all …]
/third_party/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 …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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.java61 WholeBundle(String baseName, String localeID, ClassLoader loader, in WholeBundle() argument
64 this.localeID = localeID; in WholeBundle()
65 this.ulocale = new ULocale(localeID); in WholeBundle()
71 String localeID; field in ICUResourceBundle.WholeBundle
1183 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1185 return getBundleInstance(baseName, localeID, root,
1198 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1203 localeID = ULocale.getBaseName(localeID);
1206 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(),
1209 b = instantiateBundle(baseName, localeID, null, root, openType);
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Duloc.cpp59 locale_getKeywords(const char *localeID,
531 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
542 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
543 int32_t localeIDLength = static_cast<int32_t>(uprv_strlen(localeID)); in getShortestSubtagLength()
550 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
577 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
579 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
590 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
653 _getKeywords(const char *localeID, in _getKeywords() argument
666 const char* pos = localeID; in _getKeywords()
[all …]
Dloclikely.cpp43 findLikelySubtags(const char* localeID, in findLikelySubtags() argument
55 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr); in findLikelySubtags()
467 const char* localeID, in parseTagString() argument
476 const char* position = localeID; in parseTagString()
480 localeID == NULL || in parseTagString()
566 return (int32_t)(position - localeID); in parseTagString()
854 _uloc_addLikelySubtags(const char* localeID, in _uloc_addLikelySubtags() argument
873 else if (localeID == NULL || in _uloc_addLikelySubtags()
880 localeID, in _uloc_addLikelySubtags()
898 while (_isIDSeparator(localeID[trailingIndex])) { in _uloc_addLikelySubtags()
[all …]
Dulocimp.h50 ulocimp_getLanguage(const char *localeID,
55 ulocimp_getScript(const char *localeID,
60 ulocimp_getCountry(const char *localeID,
91 char* localeID,
122 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
126 locale_getKeywordsStart(const char *localeID);
/third_party/flutter/skia/third_party/externals/icu/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 …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DULocale.java347 private String localeID; field in ULocale
385 private ULocale(String localeID, Locale locale) { in ULocale() argument
386 this.localeID = localeID; in ULocale()
421 public ULocale(String localeID) { in ULocale() argument
422 this.localeID = getName(localeID); in ULocale()
454 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
697 return localeID.hashCode(); in hashCode()
714 return localeID.equals(((ULocale)obj).localeID); in equals()
865 public static String getLanguage(String localeID) { in getLanguage() argument
866 return new LocaleIDParser(localeID).getLanguage(); in getLanguage()
[all …]
/third_party/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 …]
/third_party/node/deps/icu-small/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 …]
/third_party/skia/third_party/externals/icu/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 …]
/third_party/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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java376 private String localeID; field in ULocale
414 private ULocale(String localeID, Locale locale) { in ULocale() argument
415 this.localeID = localeID; in ULocale()
452 public ULocale(String localeID) { in ULocale() argument
453 this.localeID = getName(localeID); in ULocale()
487 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
736 return localeID.hashCode(); in hashCode()
754 return localeID.equals(((ULocale)obj).localeID); in equals()
913 public static String getLanguage(String localeID) { in getLanguage() argument
914 return new LocaleIDParser(localeID).getLanguage(); in getLanguage()
[all …]

1234567