Locale$FilteringMode enum

This enum provides constants to select a filtering mode for locale matching. Refer to RFC 4647 Matching of Language Tags for details.

Inheritance
Available extensions

Values

autoselectFiltering → const Locale$FilteringMode

Specifies automatic filtering mode based on the given Language Priority List consisting of language ranges. If all of the ranges are basic, basic filtering is selected. Otherwise, extended filtering is selected.

extendedFiltering → const Locale$FilteringMode

Specifies extended filtering.

ignoreExtendedRanges → const Locale$FilteringMode

Specifies basic filtering: Note that any extended language ranges included in the given Language Priority List are ignored.

mapExtendedRanges → const Locale$FilteringMode

Specifies basic filtering: If any extended language ranges are included in the given Language Priority List, they are mapped to the basic language range. Specifically, a language range starting with a subtag "" is treated as a language range "". For example, "-US" is treated as "". If "" is not the first subtag, "" and extra "-" are removed. For example, "ja-*-JP" is mapped to "ja-JP".

rejectExtendedRanges → const Locale$FilteringMode

Specifies basic filtering: If any extended language ranges are included in the given Language Priority List, the list is rejected and the filtering method throws IllegalArgumentException.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<Locale$FilteringMode>
A constant List of the values in this enum, in order of their declaration.