/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
D | LocaleValidityChecker.java | 158 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 …]
|
D | UnicodeLocaleExtension.java | 112 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/ |
D | LocaleValidityChecker.java | 163 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 …]
|
D | UnicodeLocaleExtension.java | 116 String subtag = idx < 0 ? s.substring(startIdx) : s.substring(startIdx, idx); in isType() 117 if (!isTypeSubtag(subtag)) { in isType()
|
/third_party/elfutils/tests/ |
D | run-unit-info.sh | 51 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 …]
|
D | unit-info.c | 36 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 …]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | gen-tag-table.py | 536 subtag = None 551 subtag = line.split (' ')[1] 553 self.grandfathered.add (subtag.lower ()) 558 if subtag in self.names: 559 self.names[subtag] += '\n' + description 561 self.names[subtag] = description 571 self.scopes[subtag] = scope 573 self.scopes[subtag] = ' (retired code)' + self.scopes.get (subtag, '') 579 self._add_macrolanguage (subtag, language) 587 self._add_macrolanguage (macrolanguage, subtag) [all …]
|
D | update-unicode-tables.make | 20 hb-ot-tag-table.hh: gen-tag-table.py languagetags language-subtag-registry 40 language-subtag-registry: 41 curl -O https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry 49 languagetags language-subtag-registry ucd.nounihan.grouped.zip Scripts.txt
|
D | hb-ot-tag.cc | 192 const char *subtag) in subtag_matches() argument 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()
|
/third_party/libexif/libexif/canon/ |
D | mnote-canon-entry.c | 69 unsigned int subtag; member 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() 468 for (j = 0; table[j].name && (table[j].subtag <= t); j++) { in canon_search_table_bitfield() 469 if (table[j].subtag == t) { in canon_search_table_bitfield() 473 if ((table[j].subtag == t) && table[j].name) { in canon_search_table_bitfield() 480 for (i = j; table[i].name && (table[i].subtag == t); i++) { in canon_search_table_bitfield() 487 for (i = j; table[i].name && (table[i].subtag == t); i++) { in canon_search_table_bitfield()
|
D | mnote-canon-tag.c | 116 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/skia/third_party/externals/icu/source/i18n/ |
D | rulebasedcollator.cpp | 1514 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 …]
|
/third_party/icu/icu4c/source/i18n/ |
D | rulebasedcollator.cpp | 1515 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_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString() 1594 appendSubtag(result, 'R', subtag, length, errorCode); in internalGetShortDefinitionString() 1598 length = uloc_getVariant(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | rulebasedcollator.cpp | 1515 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_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString() 1594 appendSubtag(result, 'R', subtag, length, errorCode); in internalGetShortDefinitionString() 1598 length = uloc_getVariant(resultLocale, subtag, UPRV_LENGTHOF(subtag), &errorCode); in internalGetShortDefinitionString() [all …]
|
/third_party/skia/third_party/externals/icu/source/tools/genrb/ |
D | parse.cpp | 821 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, NULL, status); in parseCollationElements() [all …]
|
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/ |
D | DistanceTable.java | 442 for (String subtag : subtagPairs) { in fromSubtags() 443 keyPairs.add(fixAny(subtag)); in fromSubtags() 450 private static String fixAny(String subtag) { in fixAny() argument 451 return subtag.equals("*") ? ANY : subtag; in fixAny()
|
D | LocaleDistanceMapper.java | 476 private static boolean isAny(String subtag) { in isAny() argument 477 return subtag.equals("*"); in isAny() 481 private static boolean isAny(Optional<String> subtag) { in isAny() argument 482 return subtag.map(LocaleDistanceMapper::isAny).orElse(false); in isAny()
|
/third_party/node/deps/icu-small/source/common/ |
D | uloc_tag.cpp | 2786 const char *subtag, *p; in ulocimp_forLanguageTag() local 2797 …subtag = ultag_getExtlangSize(lt.getAlias()) > 0 ? ultag_getExtlang(lt.getAlias(), 0) : ultag_getL… in ulocimp_forLanguageTag() 2798 if (uprv_compareInvCharsAsAscii(subtag, LANG_UND) != 0) { in ulocimp_forLanguageTag() 2799 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag() 2801 sink.Append(subtag, len); in ulocimp_forLanguageTag() 2807 subtag = ultag_getScript(lt.getAlias()); in ulocimp_forLanguageTag() 2808 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag() 2814 char c = uprv_toupper(*subtag); in ulocimp_forLanguageTag() 2816 sink.Append(subtag + 1, len - 1); in ulocimp_forLanguageTag() 2820 subtag = ultag_getRegion(lt.getAlias()); in ulocimp_forLanguageTag() [all …]
|
/third_party/icu/icu4c/source/common/ |
D | uloc_tag.cpp | 2786 const char *subtag, *p; in ulocimp_forLanguageTag() local 2797 …subtag = ultag_getExtlangSize(lt.getAlias()) > 0 ? ultag_getExtlang(lt.getAlias(), 0) : ultag_getL… in ulocimp_forLanguageTag() 2798 if (uprv_compareInvCharsAsAscii(subtag, LANG_UND) != 0) { in ulocimp_forLanguageTag() 2799 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag() 2801 sink.Append(subtag, len); in ulocimp_forLanguageTag() 2807 subtag = ultag_getScript(lt.getAlias()); in ulocimp_forLanguageTag() 2808 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag() 2814 char c = uprv_toupper(*subtag); in ulocimp_forLanguageTag() 2816 sink.Append(subtag + 1, len - 1); in ulocimp_forLanguageTag() 2820 subtag = ultag_getRegion(lt.getAlias()); in ulocimp_forLanguageTag() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | uloc_tag.cpp | 2782 const char *subtag, *p; in ulocimp_forLanguageTag() local 2793 …subtag = ultag_getExtlangSize(lt.getAlias()) > 0 ? ultag_getExtlang(lt.getAlias(), 0) : ultag_getL… in ulocimp_forLanguageTag() 2794 if (uprv_compareInvCharsAsAscii(subtag, LANG_UND) != 0) { in ulocimp_forLanguageTag() 2795 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag() 2797 sink.Append(subtag, len); in ulocimp_forLanguageTag() 2803 subtag = ultag_getScript(lt.getAlias()); in ulocimp_forLanguageTag() 2804 len = (int32_t)uprv_strlen(subtag); in ulocimp_forLanguageTag() 2810 char c = uprv_toupper(*subtag); in ulocimp_forLanguageTag() 2812 sink.Append(subtag + 1, len - 1); in ulocimp_forLanguageTag() 2816 subtag = ultag_getRegion(lt.getAlias()); in ulocimp_forLanguageTag() [all …]
|
/third_party/node/deps/icu-small/source/tools/genrb/ |
D | parse.cpp | 1156 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, nullptr, status); in parseCollationElements() [all …]
|
/third_party/icu/icu4c/source/tools/genrb/ |
D | parse.cpp | 1156 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, NULL, status); in parseCollationElements() [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | ULocale.java | 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() 1694 builder.append(LanguageTag.SEP).append(toUnicodeLocaleType(tkey, subtag)); in replaceTransformedExtensions() 1697 processedLength += subtag.length() + 1; in replaceTransformedExtensions() 3539 String subtag = tag.getLanguage(); in toLanguageTag() local 3540 if (subtag.length() > 0) { in toLanguageTag() 3541 buf.append(LanguageTag.canonicalizeLanguage(subtag)); in toLanguageTag() 3544 subtag = tag.getScript(); in toLanguageTag() [all …]
|
/third_party/cups-filters/fontembed/ |
D | embed_pdf.c | 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/ |
D | ULocale.java | 2991 String subtag = tag.getLanguage(); in toLanguageTag() local 2992 if (subtag.length() > 0) { in toLanguageTag() 2993 buf.append(LanguageTag.canonicalizeLanguage(subtag)); in toLanguageTag() 2996 subtag = tag.getScript(); in toLanguageTag() 2997 if (subtag.length() > 0) { in toLanguageTag() 2999 buf.append(LanguageTag.canonicalizeScript(subtag)); in toLanguageTag() 3002 subtag = tag.getRegion(); in toLanguageTag() 3003 if (subtag.length() > 0) { in toLanguageTag() 3005 buf.append(LanguageTag.canonicalizeRegion(subtag)); in toLanguageTag() 3023 subtag = tag.getPrivateuse(); in toLanguageTag() [all …]
|