| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | caseInsensitiveMatch(List<String> list, String tag)
Returns true if the given |
| public static List | filter(List<Locale.
|
| private static List | |
| private static List | |
| public static List | filterTags(List<Locale.
|
| private static String | |
| private static String[] | |
| private static int | |
| public static Locale | |
| public static String | |
| public static List | |
| private static int | |
| public static List | |
| private static String | replaceFirstSubStringMatch(String range, String substr, String replacement)
A faster alternative approach to String.replaceFirst(), if the given string is a literal String, not a regex. |
| private static boolean | shouldIgnoreFilterBasicMatch(List<Locale.
The tag which is falling in the basic exclusion range(s) should not be considered as the matching tag. |
| private static boolean | shouldIgnoreFilterExtendedMatch(List<Locale.
The tag which is falling in the extended exclusion range(s) should not be considered as the matching tag. |
| private static boolean | shouldIgnoreLookupMatch(List<Locale.
The tag which is falling in the exclusion range(s) should not be considered as the matching tag. |
| private static int | |
| private static String |
| LocaleMatcher | back to summary |
|---|---|
| private LocaleMatcher() | |
| caseInsensitiveMatch | back to summary |
|---|---|
| private static boolean caseInsensitiveMatch(List<String> list, String tag) Returns true if the given | |
| filter | back to summary |
|---|---|
| public static List | |
| filterBasic | back to summary |
|---|---|
| private static List | |
| filterExtended | back to summary |
|---|---|
| private static List | |
| filterTags | back to summary |
|---|---|
| public static List | |
| getEquivalentForRegionAndVariant | back to summary |
|---|---|
| private static String getEquivalentForRegionAndVariant(String range) | |
| getEquivalentsForLanguage | back to summary |
|---|---|
| private static String[] getEquivalentsForLanguage(String range) | |
| getExtentionKeyIndex | back to summary |
|---|---|
| private static int getExtentionKeyIndex(String s) | |
| lookup | back to summary |
|---|---|
| public static Locale lookup(List<Locale. | |
| lookupTag | back to summary |
|---|---|
| public static String lookupTag(List<Locale. | |
| mapEquivalents | back to summary |
|---|---|
| public static List | |
| matchFilterExtendedSubtags | back to summary |
|---|---|
| private static int matchFilterExtendedSubtags(String[] rangeSubtags, String[] tagSubtags) | |
| parse | back to summary |
|---|---|
| public static List | |
| replaceFirstSubStringMatch | back to summary |
|---|---|
| private static String replaceFirstSubStringMatch(String range, String substr, String replacement) A faster alternative approach to String.replaceFirst(), if the given string is a literal String, not a regex. | |
| shouldIgnoreFilterBasicMatch | back to summary |
|---|---|
| private static boolean shouldIgnoreFilterBasicMatch(List<Locale. The tag which is falling in the basic exclusion range(s) should not be considered as the matching tag. Ignores the tag matching with the non-zero ranges, if the tag also matches with one of the basic exclusion ranges i.e. range(s) having quality weight q=0 | |
| shouldIgnoreFilterExtendedMatch | back to summary |
|---|---|
| private static boolean shouldIgnoreFilterExtendedMatch(List<Locale. The tag which is falling in the extended exclusion range(s) should not be considered as the matching tag. Ignores the tag matching with the non zero range(s), if the tag also matches with one of the extended exclusion range(s) i.e. range(s) having quality weight q=0 | |
| shouldIgnoreLookupMatch | back to summary |
|---|---|
| private static boolean shouldIgnoreLookupMatch(List<Locale. The tag which is falling in the exclusion range(s) should not be considered as the matching tag. Ignores the tag matching with the non zero range(s), if the tag also matches with one of the exclusion range(s) i.e. range(s) having quality weight q=0. | |
| splitRanges | back to summary |
|---|---|
| private static int splitRanges(List<Locale. | |
| truncateRange | back to summary |
|---|---|
| private static String truncateRange(String rangeForRegex) | |