Home
last modified time | relevance | path

Searched refs:languageTag (Results 1 – 23 of 23) sorted by relevance

/external/nist-sip/java/gov/nist/javax/sip/header/
DContentLanguage.java102 public ContentLanguage(String languageTag) { in ContentLanguage() argument
104 this.setLanguageTag( languageTag ); in ContentLanguage()
130 public void setLanguageTag(String languageTag) { in setLanguageTag() argument
132 final int slash = languageTag.indexOf('-'); in setLanguageTag()
134 … this.locale = new Locale(languageTag.substring(0,slash), languageTag.substring(slash+1) ); in setLanguageTag()
136 this.locale = new Locale(languageTag); in setLanguageTag()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DScriptList.java68 public LangSysRecord findLangSysRecord(String languageTag) in findLangSysRecord() argument
73 if (langSysRecord.getTag().equals(languageTag)) { in findLangSysRecord()
85 LangSysRecord newLangSysRecord = new LangSysRecord(languageTag); in findLangSysRecord()
142 private LangSysRecord findLangSysRecord(String scriptTag, String languageTag) in findLangSysRecord() argument
148 return scriptRecord.findLangSysRecord(languageTag); in findLangSysRecord()
163 return newScriptRecord.findLangSysRecord(languageTag); in findLangSysRecord()
166 public void addFeature(String scriptTag, String languageTag, Feature feature) in addFeature() argument
168 LangSysRecord langSysRecord = findLangSysRecord(scriptTag, languageTag); in addFeature()
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/icu/util/
DLocaleNative.java34 String languageTag); in getDisplayCountryNative() argument
42 String languageTag); in getDisplayLanguageNative() argument
50 String languageTag); in getDisplayVariantNative() argument
58 String languageTag); in getDisplayScriptNative() argument
DCaseMapperNative.java29 private static native String toLowerCase(String s, String languageTag); in toLowerCase() argument
36 private static native String toUpperCase(String s, String languageTag); in toUpperCase() argument
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java115 proxy.languageTag = locale.toLanguageTag(); in writeReplace()
123 String languageTag; field in LocalizedNumberFormatterAsFormat.Proxy
133 out.writeUTF(languageTag); in writeExternal()
140 languageTag = in.readUTF(); in readExternal()
146 .locale(ULocale.forLanguageTag(languageTag)) in readResolve()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java113 proxy.languageTag = locale.toLanguageTag(); in writeReplace()
121 String languageTag; field in LocalizedNumberFormatterAsFormat.Proxy
131 out.writeUTF(languageTag); in writeExternal()
138 languageTag = in.readUTF(); in readExternal()
144 .locale(ULocale.forLanguageTag(languageTag)) in readResolve()
/external/cldr/tools/java/org/unicode/cldr/util/
DLanguageTagParser.java204 public LanguageTagParser set(String languageTag) { in set() argument
205 if (languageTag.length() == 0 || languageTag.equals("root")) { in set()
211 languageTag = "und"; in set()
212 } else if (languageTag.startsWith("_") || languageTag.startsWith("-")) { in set()
213 languageTag = "und" + languageTag; in set()
215 languageTag = languageTag.toLowerCase(Locale.ROOT); in set()
223 original = languageTag; in set()
224 int atPosition = languageTag.indexOf('@'); in set()
226 … final String extensionsString = languageTag.substring(atPosition + 1).toLowerCase(Locale.ROOT); in set()
247 languageTag = languageTag.substring(0, atPosition); in set()
[all …]
DLanguageTagCanonicalizer.java123 private String getReplacement(LanguageTagField tagField, String field, String languageTag) { in getReplacement() argument
131 LanguageTagParser x = new LanguageTagParser().set(languageTag).setRegion(""); in getReplacement()
DIso639Data.java202 public static String toBiblio3(String languageTag) { in toBiblio3() argument
206 String result = toBiblio3.get(languageTag); in toBiblio3()
210 return toAlpha3(languageTag); in toBiblio3()
/external/cldr/tools/java/org/unicode/cldr/tool/
DLikelySubtags.java111 public static String maximize(String languageTag, Map<String, String> toMaximized) { in maximize() argument
112 return new LikelySubtags(toMaximized).maximize(languageTag); in maximize()
120 public synchronized String maximize(String languageTag) { in maximize() argument
121 if (languageTag == null) { in maximize()
125 if (DEBUG && languageTag.equals("es" + TAG_SEPARATOR + "Hans" + TAG_SEPARATOR + "CN")) { in maximize()
129 ltp.set(languageTag); in maximize()
DGenerateMaximalLocales.java1199 public static String maximize(String languageTag, Map<String, String> toMaximized) { in maximize() argument
1203 ltp.set(languageTag); in maximize()
1221 languageTag = ltp.toString(); in maximize()
1224 String result = toMaximized.get(languageTag); in maximize()
1251 return languageTag; // it was ok, and we couldn't do anything with it in maximize()
DCLDRModify.java1330 String languageTag = "root";
1345 languageTag = "root-u-nu-deva";
1347 languageTag = "root-u-nu-beng";
1352 languageTag = "root-u-nu-arabext";
1356 NumberFormat nf = NumberFormat.getInstance(ULocale.forLanguageTag(languageTag));
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLanguageTag.java164 public static LanguageTag parse(String languageTag, ParseStatus sts) { in parse() argument
175 String[] gfmap = GRANDFATHERED.get(new AsciiUtil.CaseInsensitiveKey(languageTag)); in parse()
178 while (gfmap == null && (dash = languageTag.indexOf('-', dash + 1)) != -1) { in parse()
179 … gfmap = GRANDFATHERED.get(new AsciiUtil.CaseInsensitiveKey(languageTag.substring(0, dash))); in parse()
183 if (gfmap[0].length() == languageTag.length()) { in parse()
188 itr = new StringTokenIterator(gfmap[1] + languageTag.substring(dash), SEP); in parse()
192 itr = new StringTokenIterator(languageTag, SEP); in parse()
214 sts._parseLength = languageTag.length(); in parse()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLanguageTag.java160 public static LanguageTag parse(String languageTag, ParseStatus sts) { in parse() argument
171 String[] gfmap = GRANDFATHERED.get(new AsciiUtil.CaseInsensitiveKey(languageTag)); in parse()
174 while (gfmap == null && (dash = languageTag.indexOf('-', dash + 1)) != -1) { in parse()
175 … gfmap = GRANDFATHERED.get(new AsciiUtil.CaseInsensitiveKey(languageTag.substring(0, dash))); in parse()
179 if (gfmap[0].length() == languageTag.length()) { in parse()
184 itr = new StringTokenIterator(gfmap[1] + languageTag.substring(dash), SEP); in parse()
188 itr = new StringTokenIterator(languageTag, SEP); in parse()
210 sts._parseLength = languageTag.length(); in parse()
/external/nist-sip/java/javax/sip/header/
DContentLanguageHeader.java12 void setLanguageTag(String languageTag); in setLanguageTag() argument
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/
DLanguageTag.java160 public static LanguageTag parse(String languageTag, ParseStatus sts) { in parse() argument
170 String[] gfmap = GRANDFATHERED.get(new AsciiUtil.CaseInsensitiveKey(languageTag)); in parse()
175 itr = new StringTokenIterator(languageTag, SEP); in parse()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/
DTextClassifierImplTest.java605 private static Matcher<TextLanguage> isTextLanguage(final String languageTag) {
612 && languageTag.equals(result.getLocale(0).toLanguageTag());
619 description.appendText("locale=").appendValue(languageTag);
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DUtil.java2278 private static String maybeReplaceGrandfatheredLanguageTags(String languageTag) { in maybeReplaceGrandfatheredLanguageTags() argument
2280 if (languageTag.startsWith(isoGrandfatheredTagReplacements[i])) { in maybeReplaceGrandfatheredLanguageTags()
2282 + languageTag.substring(/* beginIndex= */ isoGrandfatheredTagReplacements[i].length()); in maybeReplaceGrandfatheredLanguageTags()
2285 return languageTag; in maybeReplaceGrandfatheredLanguageTags()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DULocale.java3240 public static ULocale forLanguageTag(String languageTag) { in forLanguageTag() argument
3241 LanguageTag tag = LanguageTag.parse(languageTag, null); in forLanguageTag()
3469 public Builder setLanguageTag(String languageTag) { in setLanguageTag() argument
3471 LanguageTag tag = LanguageTag.parse(languageTag, sts); in setLanguageTag()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java3380 public static ULocale forLanguageTag(String languageTag) { in forLanguageTag() argument
3381 LanguageTag tag = LanguageTag.parse(languageTag, null); in forLanguageTag()
3621 public Builder setLanguageTag(String languageTag) { in setLanguageTag() argument
3623 LanguageTag tag = LanguageTag.parse(languageTag, sts); in setLanguageTag()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DULocale.java2734 public static ULocale forLanguageTag(String languageTag) { in forLanguageTag() argument
2735 LanguageTag tag = LanguageTag.parse(languageTag, null); in forLanguageTag()
2840 public Builder setLanguageTag(String languageTag) { in setLanguageTag() argument
2842 LanguageTag tag = LanguageTag.parse(languageTag, sts); in setLanguageTag()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java2419 String languageTag = (String)in.readObject(); in readObject() local
2420 ulocale = ULocale.forLanguageTag(languageTag); in readObject()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java2347 String languageTag = (String)in.readObject(); in readObject() local
2348 ulocale = ULocale.forLanguageTag(languageTag); in readObject()