Home
last modified time | relevance | path

Searched refs:subtag (Results 1 – 25 of 33) 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.java111 String subtag = idx < 0 ? s.substring(startIdx) : s.substring(startIdx, idx); in isType()
112 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.java115 String subtag = idx < 0 ? s.substring(startIdx) : s.substring(startIdx, idx); in isType()
116 if (!isTypeSubtag(subtag)) { in isType()
/external/cldr/tools/java/org/unicode/cldr/util/
DLanguageTagParser.java214 String subtag; in set() local
216 subtag = getSubtag(st); in set()
222 if (subtag.equalsIgnoreCase("x")) { in set()
223 getExtension(subtag, st, 1); in set()
228 if (!ALPHA.containsAll(subtag) || subtag.length() < 2) { in set()
229 throwError(subtag, "Invalid language subtag"); in set()
232 language = subtag; in set()
233 subtag = getSubtag(st); // prepare for next in set()
236 if (subtag.length() == 4 && ALPHA.containsAll(subtag)) { in set()
237 script = subtag; in set()
[all …]
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 …]
DIso639Data.java647 public static String getChangeTo(String subtag) { in getChangeTo() argument
648 return getChangeToMap().get(subtag); in getChangeTo()
DTestUtilities.java505 String subtag = (String) it2.next(); in checkStandardCodes() local
506 Map labelData = (Map) subtagData.get(subtag); in checkStandardCodes()
507 System.out.println(type + "\t " + subtag + "\t " + labelData); in checkStandardCodes()
/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/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.cc195 const char *subtag) in subtag_matches() argument
198 const char *s = strstr (lang_str, subtag); in subtag_matches()
201 if (!ISALNUM (s[strlen (subtag)])) in subtag_matches()
203 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.java1076 String subtag, boolean allowDeprecated) { in checkValidCode()
1078 if (subtag.equals("und")) { in checkValidCode()
1082 if (subtag.isEmpty()) { in checkValidCode()
1086 if (!STANDARD_CODES.getAvailableCodes(subtagType).contains(subtag)) { in checkValidCode()
1088 + showCode(subtagType, subtag)); in checkValidCode()
1092 subtagType).get(subtag); in checkValidCode()
1095 + showCode(subtagType, subtag) + " " in checkValidCode()
1110 private String showCode(String subtagType, String subtag) { in showCode() argument
1111 return subtagType + " code: " + showName(subtagType, subtag); in showCode()
1114 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()
1565 char subtag[ULOC_KEYWORD_AND_VALUES_CAPACITY]; in internalGetShortDefinitionString() local
1585 …length = uloc_getKeywordValue(resultLocale, "collation", subtag, UPRV_LENGTHOF(subtag), &errorCode… in internalGetShortDefinitionString()
1586 appendSubtag(result, 'K', subtag, length, errorCode); in internalGetShortDefinitionString()
1587 length = uloc_getLanguage(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
1588 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.cpp2773 const char *subtag, *p; in ulocimp_forLanguageTag() local
2784 subtag = ultag_getExtlangSize(lt) > 0 ? ultag_getExtlang(lt, 0) : ultag_getLanguage(lt); in ulocimp_forLanguageTag()
2785 if (uprv_compareInvCharsAsAscii(subtag, LANG_UND) != 0) { in ulocimp_forLanguageTag()
2786 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag()
2789 uprv_memcpy(localeID, subtag, uprv_min(len, localeIDCapacity - reslen)); in ulocimp_forLanguageTag()
2796 subtag = ultag_getScript(lt); in ulocimp_forLanguageTag()
2797 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag()
2805 p = subtag; in ulocimp_forLanguageTag()
2808 if (p == subtag) { in ulocimp_forLanguageTag()
2820 subtag = ultag_getRegion(lt); in ulocimp_forLanguageTag()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DULocale.java3090 String subtag = tag.getLanguage(); in toLanguageTag() local
3091 if (subtag.length() > 0) { in toLanguageTag()
3092 buf.append(LanguageTag.canonicalizeLanguage(subtag)); in toLanguageTag()
3095 subtag = tag.getScript(); in toLanguageTag()
3096 if (subtag.length() > 0) { in toLanguageTag()
3098 buf.append(LanguageTag.canonicalizeScript(subtag)); in toLanguageTag()
3101 subtag = tag.getRegion(); in toLanguageTag()
3102 if (subtag.length() > 0) { in toLanguageTag()
3104 buf.append(LanguageTag.canonicalizeRegion(subtag)); in toLanguageTag()
3119 subtag = tag.getPrivateuse(); in toLanguageTag()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java3223 String subtag = tag.getLanguage(); in toLanguageTag() local
3224 if (subtag.length() > 0) { in toLanguageTag()
3225 buf.append(LanguageTag.canonicalizeLanguage(subtag)); in toLanguageTag()
3228 subtag = tag.getScript(); in toLanguageTag()
3229 if (subtag.length() > 0) { in toLanguageTag()
3231 buf.append(LanguageTag.canonicalizeScript(subtag)); in toLanguageTag()
3234 subtag = tag.getRegion(); in toLanguageTag()
3235 if (subtag.length() > 0) { in toLanguageTag()
3237 buf.append(LanguageTag.canonicalizeRegion(subtag)); in toLanguageTag()
3252 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/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
DlangtagRegex.txt42 # http://www.iana.org/assignments/language-subtag-registry

12