Home
last modified time | relevance | path

Searched refs:subtag (Results 1 – 25 of 41) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleValidityChecker.java158 for (String subtag : SEPARATOR.split(extensionString)) { in isValidU()
159 if (subtag.length() == 2 in isValidU()
160 && (tBuffer == null || subtag.charAt(1) <= '9')) { in isValidU()
169 key = KeyTypeData.toBcpKey(subtag); in isValidU()
171 return where.set(datatype, subtag); in isValidU()
183 tBuffer.append(subtag); in isValidU()
189 return where.set(datatype, key+"-"+subtag); in isValidU()
195 prefix.append(subtag); in isValidU()
197 prefix.append('-').append(subtag); in isValidU()
198 subtag = prefix.toString(); in isValidU()
[all …]
DUnicodeLocaleExtension.java112 String subtag = idx < 0 ? s.substring(startIdx) : s.substring(startIdx, idx); in isType()
113 if (!isTypeSubtag(subtag)) { in isType()
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLocaleValidityChecker.java163 for (String subtag : SEPARATOR.split(extensionString)) { in isValidU()
164 if (subtag.length() == 2 in isValidU()
165 && (tBuffer == null || subtag.charAt(1) <= '9')) { in isValidU()
174 key = KeyTypeData.toBcpKey(subtag); in isValidU()
176 return where.set(datatype, subtag); in isValidU()
188 tBuffer.append(subtag); in isValidU()
194 return where.set(datatype, key+"-"+subtag); in isValidU()
200 prefix.append(subtag); in isValidU()
202 prefix.append('-').append(subtag); in isValidU()
203 subtag = prefix.toString(); in isValidU()
[all …]
DUnicodeLocaleExtension.java116 String subtag = idx < 0 ? s.substring(startIdx) : s.substring(startIdx, idx); in isType()
117 if (!isTypeSubtag(subtag)) { in isType()
/external/elfutils/tests/
Drun-unit-info.sh51 0 cu dietag: 11, subtag: 11, version 4, unit_type 4
52 0 subdietag: 11, subtag: 0, version 4, unit_type 5
53 1 cu dietag: 11, subtag: 11, version 4, unit_type 4
54 1 subdietag: 11, subtag: 0, version 4, unit_type 5
57 0 re dietag: 11, subtag: 11, version 4, unit_type 4
58 0 subdietag: 11, subtag: 0, version 4, unit_type 5
59 1 re dietag: 11, subtag: 11, version 4, unit_type 4
60 1 subdietag: 11, subtag: 0, version 4, unit_type 5
64 0 cu dietag: 4a, subtag: 11, version 5, unit_type 4
65 0 subdietag: 11, subtag: 0, version 5, unit_type 5
[all …]
Dunit-info.c36 int subtag; member
70 int subtag = dwarf_tag (&subdie); in main() local
73 unit_info[u].subtag = subtag; in main()
79 u, dietag, subtag, version, unit_type); in main()
92 subtag = dwarf_tag (&subdie); in main()
100 if (unit_info[u].subtag != subtag) in main()
134 subtag = dwarf_tag (&subdie); in main()
138 u, dietag, subtag, version, unit_type); in main()
141 if (unit_info[u].subtag != dietag) in main()
209 int subtag = dwarf_tag (&subdie); in main() local
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DUExtension.java63 for (String subtag : SEP.split(source)) { in parse()
64 if (!alphanum.reset(subtag).matches()) { in parse()
65 …row new IllegalArgumentException("Invalid subtag contents, must be [0-9 A-Z a-z]{2,8}: " + subtag); in parse()
67 subtag = subtag.toLowerCase(Locale.ENGLISH); // normalize in parse()
68 if (subtag.length() == 2) { // key in parse()
74 key = subtag; in parse()
83 throw new IllegalArgumentException("Multiple keys with same value: " + subtag); in parse()
90 … throw new IllegalArgumentException("No attributes currently valid: " + subtag); in parse()
92 attributes.add(subtag); in parse()
97 if (!CODEPOINTS.matcher(subtag).matches()) { in parse()
[all …]
DLanguageTagParser.java259 String subtag; in set() local
261 subtag = getSubtag(st); in set()
267 if (subtag.equalsIgnoreCase("x")) { in set()
268 getExtension(subtag, st, 1); in set()
273 if (!ALPHA.containsAll(subtag) || subtag.length() < 2) { in set()
274 throwError(subtag, "Invalid language subtag"); in set()
277 language = subtag; in set()
278 subtag = getSubtag(st); // prepare for next in set()
281 if (subtag.length() == 4 && ALPHA.containsAll(subtag)) { in set()
282 script = subtag; in set()
[all …]
/external/harfbuzz_ng/src/
Dgen-tag-table.py546 subtag = None
561 subtag = line.split (' ')[1]
563 self.grandfathered.add (subtag.lower ())
568 if subtag in self.names:
569 self.names[subtag] += '\n' + description
571 self.names[subtag] = description
581 self.scopes[subtag] = scope
583 self.scopes[subtag] = ' (retired code)' + self.scopes.get (subtag, '')
589 self._add_macrolanguage (subtag, language)
597 self._add_macrolanguage (macrolanguage, subtag)
[all …]
Dhb-ot-tag.cc183 const char *subtag) in subtag_matches() argument
186 const char *s = strstr (lang_str, subtag); in subtag_matches()
189 if (!ISALNUM (s[strlen (subtag)])) in subtag_matches()
191 lang_str = s + strlen (subtag); in subtag_matches()
/external/libexif/libexif/canon/
Dmnote-canon-entry.c71 unsigned int subtag; member
448 for (j = 0; table[j].name && ((table[j].subtag < t) || in canon_search_table_value()
449 ((table[j].subtag == t) && table[j].value <= vs)); j++) { in canon_search_table_value()
450 if ((table[j].subtag == t) && (table[j].value == vs)) { in canon_search_table_value()
454 if ((table[j].subtag == t) && (table[j].value == vs) && table[j].name) { in canon_search_table_value()
470 for (j = 0; table[j].name && (table[j].subtag <= t); j++) { in canon_search_table_bitfield()
471 if (table[j].subtag == t) { in canon_search_table_bitfield()
475 if ((table[j].subtag == t) && table[j].name) { in canon_search_table_bitfield()
482 for (i = j; table[i].name && (table[i].subtag == t); i++) { in canon_search_table_bitfield()
489 for (i = j; table[i].name && (table[i].subtag == t); i++) { in canon_search_table_bitfield()
Dmnote-canon-tag.c52 unsigned int subtag; member
147 if (table_sub[i].subtag == s) in mnote_canon_tag_get_name_sub()
177 if (table_sub[i].subtag == s) in mnote_canon_tag_get_title_sub()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestInheritance.java865 String subtag, boolean allowDeprecated) { in checkValidCode()
867 if (subtag.equals("und")) { in checkValidCode()
871 if (subtag.isEmpty()) { in checkValidCode()
875 if (!STANDARD_CODES.getAvailableCodes(subtagType).contains(subtag)) { in checkValidCode()
876 errln("Locale " + localeID + " contains illegal " + showCode(subtagType, subtag)); in checkValidCode()
880 subtagType).get(subtag); in checkValidCode()
883 + showCode(subtagType, subtag) + " " in checkValidCode()
898 private String showCode(String subtagType, String subtag) { in showCode() argument
899 return subtagType + " code: " + showName(subtagType, subtag); in showCode()
902 private String showName(String subtagType, String subtag) { in showName() argument
[all …]
/external/icu/icu4c/source/i18n/
Drulebasedcollator.cpp1514 void appendSubtag(CharString &s, char letter, const char *subtag, int32_t length, in appendSubtag() argument
1522 s.append(uprv_toupper(subtag[i]), errorCode); in appendSubtag()
1561 char subtag[ULOC_KEYWORD_AND_VALUES_CAPACITY]; in internalGetShortDefinitionString() local
1581 …length = uloc_getKeywordValue(resultLocale, "collation", subtag, UPRV_LENGTHOF(subtag), &errorCode… in internalGetShortDefinitionString()
1582 appendSubtag(result, 'K', subtag, length, errorCode); in internalGetShortDefinitionString()
1583 length = uloc_getLanguage(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
1587 appendSubtag(result, 'L', subtag, length, errorCode); in internalGetShortDefinitionString()
1592 length = uloc_getCountry(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
1593 appendSubtag(result, 'R', subtag, length, errorCode); in internalGetShortDefinitionString()
1597 length = uloc_getVariant(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
[all …]
/external/cldr/specs/rfc/
Ddraft-davis-t-langtag-ext.txt207 the primary language subtag.
233 singleton (a single-character subtag), because that would start a new
250 fields, where each field consists of a field separator subtag
252 subtag consists of a single letter followed by a single digit.
272 short, visually distinctive, and cannot occur in a language subtag
359 a. The 't' extension MUST have at least one subtag.
376 e. The 't' subtag fields are defined by Section 3 [1] of Unicode
428 o The allocation of subtags valid after a field separator subtag.
430 o The addition of subtag aliases and descriptions.
432 o The modification of subtag descriptions.
[all …]
Ddraft-davis-u-langtag-ext-00.txt190 o An 'attribute' is a subtag with a length of three or more
195 o A 'keyword' is a sequence of subtags consisting of a 'key' subtag,
200 'type' subtag.
202 A. A 'key' is a subtag with a length of exactly two characters.
205 B. A 'type' is a subtag with a length of three or more characters
/external/icu/icu4c/source/tools/genrb/
Dparse.cpp821 char subtag[1024]; in addCollation() local
857 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in addCollation()
865 member = parseResource(state, subtag, NULL, status); in addCollation()
876 else if (uprv_strcmp(subtag, "Version") == 0 && member->isString()) in addCollation()
893 else if(uprv_strcmp(subtag, "%%CollationBin")==0) in addCollation()
897 else if (uprv_strcmp(subtag, "Sequence") == 0 && member->isString()) in addCollation()
1054 char subtag[1024], typeKeyword[1024]; in parseCollationElements() local
1096 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in parseCollationElements()
1104 if (uprv_strcmp(subtag, "default") == 0) in parseCollationElements()
1106 member = parseResource(state, subtag, NULL, status); in parseCollationElements()
[all …]
/external/icu/icu4c/source/common/
Duloc_tag.cpp2774 const char *subtag, *p; in ulocimp_forLanguageTag() local
2785subtag = ultag_getExtlangSize(lt.getAlias()) > 0 ? ultag_getExtlang(lt.getAlias(), 0) : ultag_getL… in ulocimp_forLanguageTag()
2786 if (uprv_compareInvCharsAsAscii(subtag, LANG_UND) != 0) { in ulocimp_forLanguageTag()
2787 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag()
2789 sink.Append(subtag, len); in ulocimp_forLanguageTag()
2795 subtag = ultag_getScript(lt.getAlias()); in ulocimp_forLanguageTag()
2796 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag()
2802 char c = uprv_toupper(*subtag); in ulocimp_forLanguageTag()
2804 sink.Append(subtag + 1, len - 1); in ulocimp_forLanguageTag()
2808 subtag = ultag_getRegion(lt.getAlias()); in ulocimp_forLanguageTag()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DULocale.java3093 String subtag = tag.getLanguage(); in toLanguageTag() local
3094 if (subtag.length() > 0) { in toLanguageTag()
3095 buf.append(LanguageTag.canonicalizeLanguage(subtag)); in toLanguageTag()
3098 subtag = tag.getScript(); in toLanguageTag()
3099 if (subtag.length() > 0) { in toLanguageTag()
3101 buf.append(LanguageTag.canonicalizeScript(subtag)); in toLanguageTag()
3104 subtag = tag.getRegion(); in toLanguageTag()
3105 if (subtag.length() > 0) { in toLanguageTag()
3107 buf.append(LanguageTag.canonicalizeRegion(subtag)); in toLanguageTag()
3122 subtag = tag.getPrivateuse(); in toLanguageTag()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java3231 String subtag = tag.getLanguage(); in toLanguageTag() local
3232 if (subtag.length() > 0) { in toLanguageTag()
3233 buf.append(LanguageTag.canonicalizeLanguage(subtag)); in toLanguageTag()
3236 subtag = tag.getScript(); in toLanguageTag()
3237 if (subtag.length() > 0) { in toLanguageTag()
3239 buf.append(LanguageTag.canonicalizeScript(subtag)); in toLanguageTag()
3242 subtag = tag.getRegion(); in toLanguageTag()
3243 if (subtag.length() > 0) { in toLanguageTag()
3245 buf.append(LanguageTag.canonicalizeRegion(subtag)); in toLanguageTag()
3260 subtag = tag.getPrivateuse(); in toLanguageTag()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DULocale.java2587 String subtag = tag.getLanguage(); in toLanguageTag() local
2588 if (subtag.length() > 0) { in toLanguageTag()
2589 buf.append(LanguageTag.canonicalizeLanguage(subtag)); in toLanguageTag()
2592 subtag = tag.getScript(); in toLanguageTag()
2593 if (subtag.length() > 0) { in toLanguageTag()
2595 buf.append(LanguageTag.canonicalizeScript(subtag)); in toLanguageTag()
2598 subtag = tag.getRegion(); in toLanguageTag()
2599 if (subtag.length() > 0) { in toLanguageTag()
2601 buf.append(LanguageTag.canonicalizeRegion(subtag)); in toLanguageTag()
2616 subtag = tag.getPrivateuse(); in toLanguageTag()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/tool/locale/
DLikelySubtagsBuilder.java310 private static <K, V, T> Map<V, T> getSubtable(Map<K, Map<V, T>> table, final K subtag) {
311 Map<V, T> subTable = table.get(subtag);
313 table.put(subtag, subTable = new TreeMap<>());
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/locale/
DLikelySubtagsBuilder.java307 private static <K, V, T> Map<V, T> getSubtable(Map<K, Map<V, T>> table, final K subtag) {
308 Map<V, T> subTable = table.get(subtag);
310 table.put(subtag, subTable = new TreeMap<>());
/external/cldr/tools/java/org/unicode/cldr/util/data/
Dlstreg.txt7 # type | subtag | description | date | canonical_value | recommended_prefix # comments
10 # - 'type' is the type of subtag (language, extlang, script, region, variant, grandfathered, redund…
11 # - 'subtag' is the subtag (or tag, if grandfathered or redundant) defined by this record
12 # - 'description' is an English-language description of the subtag
14 # - 'canonical_value', if present, is the canonical subtag for which this subtag is an alias
15 …ix' is an informative list of language-ranges considered most appropriate for this (variant) subtag
/external/icu/icu4c/source/common/unicode/
Dlocalematcher.h403 Builder &setFavorSubtag(ULocMatchFavorSubtag subtag);

12