| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv static enum | CollationRuleParser.Position
Special reset positions. |
| pack-priv abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private final CollationData | |
| private static final String | |
| private static final String[] | |
| private CollationRuleParser. | |
| private Normalizer2 | |
| private Normalizer2 | |
| private static final int | |
| pack-priv static final char | POS_BASE
Base for the second character of contractions that encode special reset positions. |
| pack-priv static final char | POS_LEAD
First character of contractions that encode special reset positions. |
| pack-priv static final CollationRuleParser. | |
| private static final String[] | |
| private final StringBuilder | |
| private int | |
| private String | |
| private CollationSettings | |
| private CollationRuleParser. | |
| private static final int | |
| private static final int | STRENGTH_MASK
UCOL_PRIMARY=0 .. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| private static int | |
| public static int | Returns: the script/reorder code, or -1 if not recognizedGets a script or reorder code from its string representation. |
| private static final boolean | |
| private static boolean | |
| private ParseException | |
| pack-priv void | |
| private void | |
| private int | |
| private void | |
| private void | |
| private int | |
| private void | |
| private void | |
| private int | Returns: rule index after the special reset positionSets str to a contraction of U+FFFE and (U+2800 + Position). |
| private void | |
| private int | |
| private int | |
| private int | |
| private int | |
| pack-priv void | |
| private void | |
| private void | |
| pack-priv void | |
| private int | |
| private int |
| baseData | back to summary |
|---|---|
| private final CollationData baseData | |
| BEFORE | back to summary |
|---|---|
| private static final String BEFORE | |
| gSpecialReorderCodes | back to summary |
|---|---|
| private static final String[] gSpecialReorderCodes | |
| importer | back to summary |
|---|---|
| private CollationRuleParser. | |
| nfc | back to summary |
|---|---|
| private Normalizer2 nfc | |
| nfd | back to summary |
|---|---|
| private Normalizer2 nfd | |
| OFFSET_SHIFT | back to summary |
|---|---|
| private static final int OFFSET_SHIFT | |
| POS_BASE | back to summary |
|---|---|
| pack-priv static final char POS_BASE Base for the second character of contractions that encode special reset positions. Braille characters U+28xx are printable and normalization-inert.
| |
| POS_LEAD | back to summary |
|---|---|
| pack-priv static final char POS_LEAD First character of contractions that encode special reset positions. U+FFFE cannot be tailored via rule syntax. The second contraction character is POS_BASE + Position. | |
| POSITION_VALUES | back to summary |
|---|---|
| pack-priv static final CollationRuleParser. | |
| positions | back to summary |
|---|---|
| private static final String[] positions | |
| rawBuilder | back to summary |
|---|---|
| private final StringBuilder rawBuilder | |
| ruleIndex | back to summary |
|---|---|
| private int ruleIndex | |
| rules | back to summary |
|---|---|
| private String rules | |
| settings | back to summary |
|---|---|
| private CollationSettings settings | |
| sink | back to summary |
|---|---|
| private CollationRuleParser. | |
| STARRED_FLAG | back to summary |
|---|---|
| private static final int STARRED_FLAG | |
| STRENGTH_MASK | back to summary |
|---|---|
| private static final int STRENGTH_MASK UCOL_PRIMARY=0 .. UCOL_IDENTICAL=15 | |
| U_PARSE_CONTEXT_LEN | back to summary |
|---|---|
| private static final int U_PARSE_CONTEXT_LEN | |
| UCOL_DEFAULT | back to summary |
|---|---|
| private static final int UCOL_DEFAULT | |
| UCOL_OFF | back to summary |
|---|---|
| private static final int UCOL_OFF | |
| UCOL_ON | back to summary |
|---|---|
| private static final int UCOL_ON | |
| CollationRuleParser | back to summary |
|---|---|
| pack-priv CollationRuleParser(CollationData base) Constructor. The Sink must be set before parsing. The Importer can be set, otherwise [import locale] syntax is not supported. | |
| appendErrorContext | back to summary |
|---|---|
| private String appendErrorContext(String reason) | |
| getOnOffValue | back to summary |
|---|---|
| private static int getOnOffValue(String s) | |
| getReorderCode | back to summary |
|---|---|
| public static int getReorderCode(String word) Gets a script or reorder code from its string representation.
| |
| isSurrogate | back to summary |
|---|---|
| private static final boolean isSurrogate(int c) | |
| isSyntaxChar | back to summary |
|---|---|
| private static boolean isSyntaxChar(int c) ASCII [:P:] and [:S:]: [!-/ :-@ [-` {-~] | |
| makeParseException | back to summary |
|---|---|
| private ParseException makeParseException(String reason) | |
| parse | back to summary |
|---|---|
| pack-priv void parse(String ruleString, CollationSettings outSettings) throws ParseException | |
| parse | back to summary |
|---|---|
| private void parse(String ruleString) throws ParseException | |
| parseRelationOperator | back to summary |
|---|---|
| private int parseRelationOperator() | |
| parseRelationStrings | back to summary |
|---|---|
| private void parseRelationStrings(int strength, int i) throws ParseException | |
| parseReordering | back to summary |
|---|---|
| private void parseReordering(CharSequence raw) throws ParseException | |
| parseResetAndPosition | back to summary |
|---|---|
| private int parseResetAndPosition() throws ParseException | |
| parseRuleChain | back to summary |
|---|---|
| private void parseRuleChain() throws ParseException | |
| parseSetting | back to summary |
|---|---|
| private void parseSetting() throws ParseException | |
| parseSpecialPosition | back to summary |
|---|---|
| private int parseSpecialPosition(int i, StringBuilder str) throws ParseException Sets str to a contraction of U+FFFE and (U+2800 + Position).
| |
| parseStarredCharacters | back to summary |
|---|---|
| private void parseStarredCharacters(int strength, int i) throws ParseException | |
| parseString | back to summary |
|---|---|
| private int parseString(int i, StringBuilder raw) throws ParseException | |
| parseTailoringString | back to summary |
|---|---|
| private int parseTailoringString(int i, StringBuilder raw) throws ParseException | |
| parseUnicodeSet | back to summary |
|---|---|
| private int parseUnicodeSet(int i, UnicodeSet set) throws ParseException | |
| readWords | back to summary |
|---|---|
| private int readWords(int i, StringBuilder raw) | |
| setImporter | back to summary |
|---|---|
| pack-priv void setImporter(CollationRuleParser. Sets the pointer to an Importer object. The pointer is aliased: Pointer copy without cloning or taking ownership. | |
| setParseError | back to summary |
|---|---|
| private void setParseError(String reason) throws ParseException | |
| setParseError | back to summary |
|---|---|
| private void setParseError(String reason, Exception e) throws ParseException | |
| setSink | back to summary |
|---|---|
| pack-priv void setSink(CollationRuleParser. Sets the pointer to a Sink object. The pointer is aliased: Pointer copy without cloning or taking ownership. | |
| skipComment | back to summary |
|---|---|
| private int skipComment(int i) | |
| skipWhiteSpace | back to summary |
|---|---|
| private int skipWhiteSpace(int i) | |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| getRules | back to summary |
|---|---|
| public String getRules(String localeID, String collationType) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. | |
| public static final CollationRuleParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CollationRuleParser. | |
| public static CollationRuleParser. |
| FIRST_IMPLICIT | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| FIRST_PRIMARY_IGNORABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| FIRST_REGULAR | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| FIRST_SECONDARY_IGNORABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| FIRST_TERTIARY_IGNORABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| FIRST_TRAILING | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| FIRST_VARIABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| LAST_IMPLICIT | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| LAST_PRIMARY_IGNORABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| LAST_REGULAR | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| LAST_SECONDARY_IGNORABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| LAST_TERTIARY_IGNORABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| LAST_TRAILING | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| LAST_VARIABLE | back to summary |
|---|---|
| public static final CollationRuleParser. | |
| Position | back to summary |
|---|---|
| private Position() | |
| valueOf | back to summary |
|---|---|
| public static CollationRuleParser. | |
| values | back to summary |
|---|---|
| public static CollationRuleParser. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | addRelation(int strength, CharSequence prefix, CharSequence str, CharSequence extension)
Adds a relation with strength and prefix | str / extension. |
| pack-priv abstract void | |
| pack-priv void | |
| pack-priv void |
| Sink | back to summary |
|---|---|
| pack-priv Sink() | |
| addRelation | back to summary |
|---|---|
| pack-priv abstract void addRelation(int strength, CharSequence prefix, CharSequence str, CharSequence extension) Adds a relation with strength and prefix | str / extension. | |
| addReset | back to summary |
|---|---|
| pack-priv abstract void addReset(int strength, CharSequence str) Adds a reset. strength=UCOL_IDENTICAL for &str. strength=UCOL_PRIMARY/UCOL_SECONDARY/UCOL_TERTIARY for &[before n]str where n=1/2/3. | |
| optimize | back to summary |
|---|---|
| pack-priv void optimize(UnicodeSet set) | |
| suppressContractions | back to summary |
|---|---|
| pack-priv void suppressContractions(UnicodeSet set) | |