| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private final int | |
| public static final XLikelySubtags | |
| private final Map | |
| private final LSR[] | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final Map | |
| public static final int | |
| private final BytesTrie | |
| private final long[] | |
| private final long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ULocale | |
| pack-priv int | |
| private static String | |
| private int | |
| private Map | |
| private boolean | |
| private LSR | makeMaximizedLsr(String language, String script, String region, String variant, boolean returnInputIfUnmatch)
|
| public LSR | |
| public LSR | |
| private LSR | |
| public LSR | minimizeSubtags(String languageIn, String scriptIn, String regionIn, ULocale.
Deprecated
as a consequence of
ULocale.Minimize being deprecated.
|
| public String | |
| private static final int |
| DEBUG_OUTPUT | back to summary |
|---|---|
| private static final boolean DEBUG_OUTPUT | |
| defaultLsrIndex | back to summary |
|---|---|
| private final int defaultLsrIndex | |
| INSTANCE | back to summary |
|---|---|
| public static final XLikelySubtags INSTANCE | |
| languageAliases | back to summary |
|---|---|
| private final Map<String, String> languageAliases | |
| lsrs | back to summary |
|---|---|
| private final LSR[] lsrs | |
| PSEUDO_ACCENTS_PREFIX | back to summary |
|---|---|
| private static final String PSEUDO_ACCENTS_PREFIX | |
| PSEUDO_BIDI_PREFIX | back to summary |
|---|---|
| private static final String PSEUDO_BIDI_PREFIX | |
| PSEUDO_CRACKED_PREFIX | back to summary |
|---|---|
| private static final String PSEUDO_CRACKED_PREFIX | |
| regionAliases | back to summary |
|---|---|
| private final Map<String, String> regionAliases | |
| SKIP_SCRIPT | back to summary |
|---|---|
| public static final int SKIP_SCRIPT | |
| trie | back to summary |
|---|---|
| private final BytesTrie trie | |
| trieFirstLetterStates | back to summary |
|---|---|
| private final long[] trieFirstLetterStates | |
| trieUndState | back to summary |
|---|---|
| private final long trieUndState | |
| trieUndZzzzState | back to summary |
|---|---|
| private final long trieUndZzzzState | |
| XLikelySubtags | back to summary |
|---|---|
| private XLikelySubtags(XLikelySubtags. | |
| canonicalize | back to summary |
|---|---|
| public ULocale canonicalize(ULocale locale) Implementation of LocaleMatcher.canonicalize(ULocale). | |
| compareLikely | back to summary |
|---|---|
| pack-priv int compareLikely(LSR lsr, LSR other, int likelyInfo) Tests whether lsr is "more likely" than other. For example, fr-Latn-FR is more likely than fr-Latn-CH because FR is the default region for fr-Latn. The likelyInfo caches lookup information between calls. The return value is an updated likelyInfo value, with bit 0 set if lsr is "more likely". The initial value of likelyInfo must be negative. | |
| getCanonical | back to summary |
|---|---|
| private static String getCanonical(Map<String, String> aliases, String alias) | |
| getLikelyIndex | back to summary |
|---|---|
| private int getLikelyIndex(String language, String script) | |
| getTable | back to summary |
|---|---|
| private Map | |
| isMacroregion | back to summary |
|---|---|
| private boolean isMacroregion(String region) Helper method to find out a region is a macroregion | |
| makeMaximizedLsr | back to summary |
|---|---|
| private LSR makeMaximizedLsr(String language, String script, String region, String variant, boolean returnInputIfUnmatch) | |
| makeMaximizedLsrFrom | back to summary |
|---|---|
| public LSR makeMaximizedLsrFrom(ULocale locale, boolean returnInputIfUnmatch) | |
| makeMaximizedLsrFrom | back to summary |
|---|---|
| public LSR makeMaximizedLsrFrom(Locale locale) | |
| maximize | back to summary |
|---|---|
| private LSR maximize(String language, String script, String region, boolean returnInputIfUnmatch) Raw access to addLikelySubtags. Input must be in canonical format, eg "en", not "eng" or "EN". | |
| minimizeSubtags | back to summary |
|---|---|
| public LSR minimizeSubtags(String languageIn, String scriptIn, String regionIn, ULocale. Deprecated as a consequence of | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| trieNext | back to summary |
|---|---|
| private static final int trieNext(BytesTrie iter, String s, int i) | |