Home
last modified time | relevance | path

Searched refs:subtag (Results 1 - 25 of 36) sorted by relevance

12

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
H A 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 in isValidU()
269 isSubdivision(ULocale locale, String subtag) isSubdivision() argument
298 isScriptReorder(String subtag) isScriptReorder() argument
[all...]
H A DUnicodeLocaleExtension.java112 String subtag = idx < 0 ? s.substring(startIdx) : s.substring(startIdx, idx); in isType()
113 if (!isTypeSubtag(subtag)) { in isType()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
H A 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 in isValidU()
274 isSubdivision(ULocale locale, String subtag) isSubdivision() argument
303 isScriptReorder(String subtag) isScriptReorder() argument
[all...]
H A DUnicodeLocaleExtension.java116 String subtag = idx < 0 ? s.substring(startIdx) : s.substring(startIdx, idx); in isType()
117 if (!isTypeSubtag(subtag)) { in isType()
/third_party/elfutils/tests/
H A Dunit-info.c36 int subtag; member
70 int subtag = dwarf_tag (&subdie); in main() local
73 unit_info[u].subtag = subtag; in main()
77 printf ("%zu cu dietag: %x, subtag: %x, version %" PRIx32 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 in main()
209 int subtag = dwarf_tag (&subdie); main() local
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dgen-tag-table.py8 subtag registry, with some manual adjustments. The mappings are
20 usage: ./gen-tag-table.py languagetags language-subtag-registry
24 * https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
246 and the other subtag fields are empty.
247 language (str): The language subtag.
248 script (str): The script subtag.
249 region (str): The region subtag.
250 variant (str): The variant subtag.
407 a language subtag, an
[all...]
H A Dhb-ot-tag.cc192 const char *subtag) in subtag_matches()
195 const char *s = strstr (lang_str, subtag); in subtag_matches()
198 if (!ISALNUM (s[strlen (subtag)])) in subtag_matches()
200 lang_str = s + strlen (subtag); in subtag_matches()
190 subtag_matches(const char *lang_str, const char *limit, const char *subtag) subtag_matches() argument
/third_party/libexif/libexif/canon/
H A Dmnote-canon-entry.c69 unsigned int subtag; member
445 /* Search the table for the first matching subtag and value. */ in canon_search_table_value()
446 for (j = 0; table[j].name && ((table[j].subtag < t) || in canon_search_table_value()
447 ((table[j].subtag == t) && table[j].value <= vs)); j++) { in canon_search_table_value()
448 if ((table[j].subtag == t) && (table[j].value == vs)) { in canon_search_table_value()
452 if ((table[j].subtag == t) && (table[j].value == vs) && table[j].name) { in canon_search_table_value()
453 /* Matching subtag and value found. */ in canon_search_table_value()
456 /* No matching subtag and/or value found. */ in canon_search_table_value()
467 /* Search the table for the first matching subtag. */ in canon_search_table_bitfield()
468 for (j = 0; table[j].name && (table[j].subtag < in canon_search_table_bitfield()
[all...]
H A Dmnote-canon-tag.c116 unsigned int subtag; member
226 if (table_sub[i].subtag == s) in mnote_canon_tag_get_name_sub()
256 if (table_sub[i].subtag == s) in mnote_canon_tag_get_title_sub()
/third_party/icu/icu4c/source/i18n/
H A Drulebasedcollator.cpp1515 void appendSubtag(CharString &s, char letter, const char *subtag, int32_t length, in appendSubtag() argument
1523 s.append(uprv_toupper(subtag[i]), errorCode); in appendSubtag()
1562 char subtag[ULOC_KEYWORD_AND_VALUES_CAPACITY]; in internalGetShortDefinitionString() local
1582 length = uloc_getKeywordValue(resultLocale, "collation", subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
1583 appendSubtag(result, 'K', subtag, length, errorCode); in internalGetShortDefinitionString()
1584 length = uloc_getLanguage(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
1588 appendSubtag(result, 'L', subtag, length, errorCode); in internalGetShortDefinitionString()
1593 length = uloc_getCountry(resultLocale, subtag, UPRV_LENGTHO in internalGetShortDefinitionString()
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A 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_LENGTHO in internalGetShortDefinitionString()
[all...]
/third_party/icu/icu4c/source/tools/genrb/
H A Dparse.cpp1156 char subtag[1024]; in addCollation() local
1192 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in addCollation()
1200 member = parseResource(state, subtag, NULL, status); in addCollation()
1211 else if (uprv_strcmp(subtag, "Version") == 0 && member->isString()) in addCollation()
1228 else if(uprv_strcmp(subtag, "%%CollationBin")==0) in addCollation()
1232 else if (uprv_strcmp(subtag, "Sequence") == 0 && member->isString()) in addCollation()
1398 char subtag[1024], typeKeyword[1024]; in parseCollationElements() local
1440 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in parseCollationElements()
1448 if (uprv_strcmp(subtag, "default") == 0) in parseCollationElements()
1450 member = parseResource(state, subtag, NUL in parseCollationElements()
1526 char subtag[1024]; realParseTable() local
[all...]
/third_party/node/deps/icu-small/source/tools/genrb/
H A Dparse.cpp1156 char subtag[1024]; in addCollation() local
1192 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in addCollation()
1200 member = parseResource(state, subtag, nullptr, status); in addCollation()
1211 else if (uprv_strcmp(subtag, "Version") == 0 && member->isString()) in addCollation()
1228 else if(uprv_strcmp(subtag, "%%CollationBin")==0) in addCollation()
1232 else if (uprv_strcmp(subtag, "Sequence") == 0 && member->isString()) in addCollation()
1398 char subtag[1024], typeKeyword[1024]; in parseCollationElements() local
1440 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in parseCollationElements()
1448 if (uprv_strcmp(subtag, "default") == 0) in parseCollationElements()
1450 member = parseResource(state, subtag, nullpt in parseCollationElements()
1526 char subtag[1024]; realParseTable() local
[all...]
/third_party/skia/third_party/externals/icu/source/tools/genrb/
H A 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()
1050 char subtag[1024], typeKeyword[1024]; in parseCollationElements() local
1092 u_UCharsToChars(tokenValue->fChars, subtag, u_strlen(tokenValue->fChars) + 1); in parseCollationElements()
1100 if (uprv_strcmp(subtag, "default") == 0) in parseCollationElements()
1102 member = parseResource(state, subtag, NUL in parseCollationElements()
1178 char subtag[1024]; realParseTable() local
[all...]
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
H A DDistanceTable.java45 * is replaced by the {@code '�'} character (a.k.a ANY), whenever a subtag is
54 // <languageMatch> locale subtag). Any incoming subtags are normalized to
346 // If desired is ANY, the only supported subtag must also be ANY. in writeSupported()
359 "unexpected supported='ANY' subtag: %s", supported); in writeSupported()
431 * Returns a new key from the specified subtag pairs, converting {@code '*'}
435 * @param distance the distance associated with the subtag mapping.
442 for (String subtag : subtagPairs) { in fromSubtags()
443 keyPairs.add(fixAny(subtag)); in fromSubtags()
448 // Converts a '*' (from a subtag) into the wildcard match character used by the Trie.
450 private static String fixAny(String subtag) { in fixAny() argument
[all...]
H A DLocaleDistanceMapper.java172 // A language subtag (e.g. "en") or "*".
174 // If present, a script subtag (e.g. "Latn") or "*".
474 // Returns if the subtag is the '*' wildcard. This is not to be confused with the
476 private static boolean isAny(String subtag) { in isAny() argument
477 return subtag.equals("*"); in isAny()
480 // Returns if the subtag exists and is the '*' wildcard.
481 private static boolean isAny(Optional<String> subtag) { in isAny() argument
482 return subtag.map(LocaleDistanceMapper::isAny).orElse(false); in isAny()
/third_party/icu/icu4c/source/common/
H A Duloc_tag.cpp87 https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry .
93 curl https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry |\
140 https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry .
145 curl https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry |\
151 a variant tag 'hepburn-heploc' has the preferred subtag, 'alaic97'.
188 https://www.iana.org/assignments/language-subtag
2786 const char *subtag, *p; ulocimp_forLanguageTag() local
[all...]
/third_party/node/deps/icu-small/source/common/
H A Duloc_tag.cpp87 https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry .
93 curl https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry |\
140 https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry .
145 curl https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry |\
151 a variant tag 'hepburn-heploc' has the preferred subtag, 'alaic97'.
188 https://www.iana.org/assignments/language-subtag
2730 const char *subtag, *p; ulocimp_forLanguageTag() local
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Duloc_tag.cpp87 https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry .
93 curl https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry |\
140 https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry .
145 curl https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry |\
151 a variant tag 'hepburn-heploc' has the preferred subtag, 'alaic97'.
188 https://www.iana.org/assignments/language-subtag
2782 const char *subtag, *p; ulocimp_forLanguageTag() local
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Drulebasedcollator.cpp1517 void appendSubtag(CharString &s, char letter, const char *subtag, int32_t length, in appendSubtag() argument
1525 s.append(uprv_toupper(subtag[i]), errorCode); in appendSubtag()
1564 char subtag[ULOC_KEYWORD_AND_VALUES_CAPACITY]; in internalGetShortDefinitionString() local
1590 length = uloc_getLanguage(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
1594 appendSubtag(result, 'L', subtag, length, errorCode); in internalGetShortDefinitionString()
1599 length = uloc_getCountry(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString()
1600 appendSubtag(result, 'R', subtag, length, errorCode); in internalGetShortDefinitionString()
1604 length = uloc_getVariant(resultLocale, subtag, UPRV_LENGTHO in internalGetShortDefinitionString()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DULocale.java1097 * Gets the shortest length subtag's size.
1100 * @return The size of the shortest length subtag
1237 * @param language language subtag to be replaced. Cannot be null but could be empty.
1238 * @param script script subtag to be replaced. Cannot be null but could be empty.
1239 * @param region region subtag to be replaced. Cannot be null but could be empty.
1502 // Do not consider ill-formed variant subtag. in replaceLanguage()
1677 for (String subtag : subtags) { in replaceTransformedExtensions()
1678 if (LanguageTag.isTKey(subtag)) { in replaceTransformedExtensions()
1690 tkey = subtag; in replaceTransformedExtensions()
1691 builder.append(subtag); in replaceTransformedExtensions()
[all...]
/third_party/cups-filters/fontembed/
H A Dembed_pdf.c156 // {{{ generate pdf subtag in emb_pdf_fontdescr()
162 char subtag[7]; in emb_pdf_fontdescr() local
163 subtag[6]=0; in emb_pdf_fontdescr()
168 subtag[iA]='A'+x; in emb_pdf_fontdescr()
170 subset_tag=subtag; in emb_pdf_fontdescr()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DULocale.java1041 * Gets the shortest length subtag's size.
1044 * @return The size of the shortest length subtag
1175 // If the BCP 47 primary language subtag matches the type attribute of a languageAlias in canonicalize()
1176 // element in Supplemental Data, replace the language subtag with the replacement value. in canonicalize()
1178 // only if there is no corresponding subtag already in the tag. in canonicalize()
1274 // If the BCP 47 region subtag matches the type attribute of a in canonicalize()
1276 // subtag with the replacement value, as follows: in canonicalize()
1417 * Pairs of (language subtag, + or -) for finding out fast if common languages
1425 * If there is no script subtag, then the likely script is used,
2622 * @param tags An array of three String references to return the subtag string
[all...]
/third_party/ffmpeg/libavcodec/
H A Dgdv.c387 int i, subtag = read_bits32(&bits, gb, 2); in decompress_68() local
389 if (subtag != 3) { in decompress_68()
392 if ((subtag != 0) || (offs <= 0xF80)) { in decompress_68()
393 int len = (subtag) + 3; in decompress_68()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/tool/locale/
H A DLikelySubtagsBuilder.java310 private static <K, V, T> Map<V, T> getSubtable(Map<K, Map<V, T>> table, final K subtag) { in getSubtable() argument
311 Map<V, T> subTable = table.get(subtag); in getSubtable()
313 table.put(subtag, subTable = new TreeMap<>()); in getSubtable()

Completed in 35 milliseconds

12