Home | History | Annotate | Download | only in util

Lines Matching refs:subtag

1111      * Gets the shortest length subtag's size.
1114 * @return The size of the shortest length subtag
1384 * Pairs of (language subtag, + or -) for finding out fast if common languages
1392 * If there is no script subtag, then the likely script is used,
2185 boolean subTag = false;
2196 subTag = false;
2209 subTag = true;
2213 subTag = true;
2219 if (subTag) {
2882 * @param tags An array of three String references to return the subtag strings.
3205 * (delimited by '-' or '_') is emitted as a subtag. Otherwise:
3211 * the private use subtag. The first appended subtag will be
3220 * emitted as a private use subtag as above (even if the remainder
3232 * will return "xx-YY", but the language subtag "xx" and the
3233 * region subtag "YY" are invalid because they are not registered
3234 * in the IANA Language Subtag Registry.
3265 String subtag = tag.getLanguage();
3266 if (subtag.length() > 0) {
3267 buf.append(LanguageTag.canonicalizeLanguage(subtag));
3270 subtag = tag.getScript();
3271 if (subtag.length() > 0) {
3273 buf.append(LanguageTag.canonicalizeScript(subtag));
3276 subtag = tag.getRegion();
3277 if (subtag.length() > 0) {
3279 buf.append(LanguageTag.canonicalizeRegion(subtag));
3294 subtag = tag.getPrivateuse();
3295 if (subtag.length() > 0) {
3300 buf.append(LanguageTag.canonicalizePrivateuse(subtag));
3310 * the first such subtag and all following subtags are ignored. Compare
3319 * <li>The portion of a private use subtag prefixed by "lvariant",
3322 * empty, the private use subtag is discarded:
3335 * <li>When the languageTag argument contains an extlang subtag,
3336 * the first such subtag is used as the language, and the primary
3337 * language subtag and other extlang subtags are ignored:
3401 * IANA Language Subtag Registry (search for "Type: grandfathered").
3572 * subtag to be 5 to 8 alphanumerics or a single numeric followed by 3
3744 * satisfies the IETF BCP 47 variant subtag's syntax requirements,
4316 // subtag not satisfying the criteria, the variant subtag