Lines Matching defs:variant

131  *   <dt><a name="def_variant"/><b>variant</b></dt>
134 * <code>Locale</code>. Where there are two or more variant values
137 * underscore('_'). The variant field is case sensitive.</dd><br>
139 * <dd>Note: IETF BCP 47 places syntactic restrictions on variant
143 * region subtags. You can find a full list of valid variant codes
144 * in the IANA Language Subtag Registry (search for "Type: variant").
146 * <p>However, the variant field in <code>Locale</code> has
155 * <dd>Well-formed variant values have the form <code>SUBTAG
247 * {@link #Locale(String language, String country, String variant)}
251 * with language, country and variant, but you cannot specify
319 * of toString into language, country, and variant fields can continue
321 * variant field will have additional information in it if script or
328 * represent the state of locales whose language, country, or variant
499 * language, country, and variant are empty ("") strings. This is regarded
546 * Construct a locale from language, country and variant.
567 * @param variant Any arbitrary value used to indicate a variation of a <code>Locale</code>.
571 public Locale(String language, String country, String variant) {
572 if (language== null || country == null || variant == null) {
575 baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), "", country, variant);
576 localeExtensions = getCompatibilityExtensions(language, "", country, variant);
641 * <code>variant</code>. If the same <code>Locale</code> instance
648 * @param variant vendor and browser specific code. See class description.
652 static Locale getInstance(String language, String country, String variant) {
653 return getInstance(language, "", country, variant, null);
657 String variant, LocaleExtensions extensions) {
658 if (language== null || script == null || country == null || variant == null) {
663 extensions = getCompatibilityExtensions(language, script, country, variant);
666 BaseLocale baseloc = BaseLocale.getInstance(language, script, country, variant);
784 String language, region, script, country, variant;
795 variant = region.substring(i + 1);
798 variant = "";
806 variant = AccessController.doPrivileged(
807 new GetPropertyAction("user.variant", ""));
809 defaultLocale = getInstance(language, script, country, variant, null);
1037 * Returns the variant code for this locale.
1039 * @return The variant code, or the empty string if none is defined.
1156 * object, consisting of language, country, variant, script,
1159 * language + "_" + country + "_" + (variant + "_#" | "#") + script + "-" + extensions
1170 * the empty string, even if the variant, script, or extensions field is present (you
1171 * can't have a locale with just a variant, the variant must accompany a well-formed
1174 * <p>If script or extensions are present and variant is missing, no underscore is
1178 * previous uses of <code>toString</code> that expected language, country, and variant
1235 * variant that does not satisfy the IETF BCP 47 language tag
1247 * <p><b>Variant:</b> If variant <b>is</b> <a
1261 * <code>[0-9a-zA-Z]{1,8}</code>, the variant will be truncated
1278 * <li>A locale with language "no", country "NO", and variant
1361 * if any, is removed and appended to the variant field in the
1385 * <li>Case is normalized except for variant tags, which are left
1684 * Returns a name for the locale's variant code that is appropriate for display to the
1686 * doesn't specify a variant code, this function returns the empty string.
1693 * Returns a name for the locale's variant code that is appropriate for display to the
1695 * doesn't specify a variant code, this function returns the empty string.
1726 * language (script, country, variant)<br>
1728 * language (variant)<br>
1733 * language, sacript, country, and variant fields are all empty,
1748 * language (script, country, variant)<br>
1750 * language (variant)<br>
1755 * language, script, country, and variant fields are all empty,
1787 // (an anomalous situation) then the display name is simply the variant's
1889 * variant and extensions, and unequal to all other objects.
1924 * Return an array of the display names of the variant.
1929 // Split the variant name into tokens separated by '_'.
1933 // For each variant token, lookup the display name. If
1934 // not found, use the variant name itself.
2012 * @serialField variant String
2013 * variant subtags separated by LOWLINE characters. (See <a href="java/util/Locale.html#getVariant()">getVariant()</a>)
2029 new ObjectStreamField("variant", String.class),
2046 fields.put("variant", baseLocale.getVariant());
2065 String variant = (String)fields.get("variant", "");
2067 baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), script, country, variant);
2084 * language, country and variant fields read from the object data stream
2122 String variant) {
2128 && "JP".equals(variant)) {
2134 && "TH".equals(variant)) {
2192 "user.variant.display"),
2201 "user.variant.format");
2226 * syntactic restrictions on variant, while BCP 47 requires each variant
2229 * <code>IllformedLocaleException</code> for a variant that does not satisfy
2230 * this restriction. If it is necessary to support such a variant, use a
2232 * object created this way might lose the variant information when
2386 * Sets the variant. If variant is null or the empty string, the
2387 * variant in this <code>Builder</code> is removed. Otherwise, it
2391 * <p><b>Note:</b> This method checks if <code>variant</code>
2392 * satisfies the IETF BCP 47 variant subtag's syntax requirements,
2395 * restriction on variant, and the variant value in
2396 * <code>Locale</code> is case sensitive. To set such a variant,
2399 * @param variant the variant
2401 * @throws IllformedLocaleException if <code>variant</code> is ill-formed
2403 public Builder setVariant(String variant) {
2405 localeBuilder.setVariant(variant);
2530 * Language, script, region and variant are unchanged.