/frameworks/base/tools/aapt2/ |
Locale.cpp | 146 std::vector<std::string> subtags = util::splitAndLowercase(part, '+'); local 147 subtags.erase(subtags.begin()); 148 if (subtags.size() == 1) { 149 setLanguage(subtags[0].c_str()); 150 } else if (subtags.size() == 2) { 151 setLanguage(subtags[0].c_str()); 154 switch (subtags[1].size()) { 157 setRegion(subtags[1].c_str()); 160 if ('0' <= subtags[1][0] && subtags[1][0] <= '9') [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
InternalLocaleBuilder.java | 199 * Set extension/private subtags in a single string representation 201 public InternalLocaleBuilder setExtensions(String subtags) throws LocaleSyntaxException { 202 if (subtags == null || subtags.length() == 0) { 206 subtags = subtags.replaceAll(BaseLocale.SEP, LanguageTag.SEP); 207 StringTokenIterator itr = new StringTokenIterator(subtags, LanguageTag.SEP); 215 // Make a list of extension subtags 265 throw new LocaleSyntaxException("Incomplete privateuse:" + subtags.substring(start), start); 273 throw new LocaleSyntaxException("Ill-formed extension subtags:" + subtags.substring(itr.currentStart()), itr.currentStart()) [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/ |
InternalLocaleBuilder.java | 195 * Set extension/private subtags in a single string representation 197 public InternalLocaleBuilder setExtensions(String subtags) throws LocaleSyntaxException { 198 if (subtags == null || subtags.length() == 0) { 202 subtags = subtags.replaceAll(BaseLocale.SEP, LanguageTag.SEP); 203 StringTokenIterator itr = new StringTokenIterator(subtags, LanguageTag.SEP); 211 // Make a list of extension subtags 261 throw new LocaleSyntaxException("Incomplete privateuse:" + subtags.substring(start), start); 269 throw new LocaleSyntaxException("Ill-formed extension subtags:" + subtags.substring(itr.currentStart()), itr.currentStart()) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
InternalLocaleBuilder.java | 195 * Set extension/private subtags in a single string representation 197 public InternalLocaleBuilder setExtensions(String subtags) throws LocaleSyntaxException { 198 if (subtags == null || subtags.length() == 0) { 202 subtags = subtags.replaceAll(BaseLocale.SEP, LanguageTag.SEP); 203 StringTokenIterator itr = new StringTokenIterator(subtags, LanguageTag.SEP); 211 // Make a list of extension subtags 261 throw new LocaleSyntaxException("Incomplete privateuse:" + subtags.substring(start), start); 269 throw new LocaleSyntaxException("Ill-formed extension subtags:" + subtags.substring(itr.currentStart()), itr.currentStart()) [all...] |
/libcore/ojluni/src/main/java/sun/util/locale/ |
InternalLocaleBuilder.java | 223 * Set extension/private subtags in a single string representation 225 public InternalLocaleBuilder setExtensions(String subtags) throws LocaleSyntaxException { 226 if (LocaleUtils.isEmpty(subtags)) { 230 subtags = subtags.replaceAll(BaseLocale.SEP, LanguageTag.SEP); 231 StringTokenIterator itr = new StringTokenIterator(subtags, LanguageTag.SEP); 239 // Make a list of extension subtags 291 + subtags.substring(start), 300 throw new LocaleSyntaxException("Ill-formed extension subtags:" 301 + subtags.substring(itr.currentStart()) [all...] |
/frameworks/base/tools/aapt/ |
AaptAssets.cpp | 285 Vector<String8> subtags = AaptUtil::splitAndLowerCase(part, '+'); local 286 subtags.removeItemsAt(0); 287 if (subtags.size() == 1) { 288 setLanguage(subtags[0]); 289 } else if (subtags.size() == 2) { 290 setLanguage(subtags[0]); 293 switch (subtags[1].size()) { 296 setRegion(subtags[1]); 299 if (isAlpha(subtags[1])) { 300 setScript(subtags[1]) [all...] |
/external/icu/icu4c/source/common/ |
loclikely.cpp | 16 * Code for likely and minimized locale subtags, separated out from other .cpp files 17 * that then do not depend on resource bundle code and likely-subtags data. 50 UResourceBundle* subtags = ures_openDirect(NULL, "likelySubtags", &tmpErr); local 52 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr); 72 ures_close(subtags); 435 * Parse the language, script, and region subtags from a tag string, and copy the 444 * If the length of any of the output subtags exceeds the capacity of the corresponding 446 * the error U_BUFFER_OVERFLOW_ERROR. It will not parse any more subtags once overflow 1131 * since trying with all three subtags would only yield the [all...] |
/libcore/ojluni/src/main/java/java/util/ |
Locale.java | 88 * language subtags up to 8 alpha letters (for future enhancements). 140 * subtags. Also BCP 47 subtags are strictly used to indicate 143 * region subtags. You can find a full list of valid variant codes 152 * language, is supported by extension subtags or private use 153 * subtags.</dd><br> 167 * extension subtags and private use subtags. The extensions are 177 * single-character subtags).</dd><br> 213 * alphabetically (the order of subtags comprising a key's type i 1371 List<String>subtags = tag.getVariants(); local [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/ |
ULocale.java | 2602 List<String>subtags = tag.getVariants(); local [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
ULocale.java | 3107 List<String>subtags = tag.getVariants(); local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
ULocale.java | 3244 List<String>subtags = tag.getVariants(); local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
com.ibm.icu_4.2.1.v20100412.jar | |
/prebuilts/misc/common/icu4j/ |
icu4j.jar | |
/prebuilts/tools/common/m2/repository/com/ibm/icu/icu4j/53.1/ |
icu4j-53.1.jar | |
/prebuilts/tools/common/m2/repository/com/ibm/icu/icu4j/54.1.1/ |
icu4j-54.1.1.jar | |