Package com.ibm.icu.text
Class RuleBasedTransliterator.Data
java.lang.Object
com.ibm.icu.text.RuleBasedTransliterator.Data
- Enclosing class:
RuleBasedTransliterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionRule table.Map variable name (String) to variable (char[]).(package private) Object[]
Map category variable (Character) to UnicodeMatcher or UnicodeReplacer.(package private) char
The character that represents variables[0]. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlookupMatcher
(int standIn) Return the UnicodeMatcher represented by the given character, or null if none.lookupReplacer
(int standIn) Return the UnicodeReplacer represented by the given character, or null if none.
-
Field Details
-
ruleSet
Rule table. May be empty. -
variableNames
Map variable name (String) to variable (char[]). A variable name corresponds to zero or more characters, stored in a char[] array in this hash. One or more of these chars may also correspond to a UnicodeSet, in which case the character in the char[] in this hash is a stand-in: it is an index for a secondary lookup in data.variables. The stand-in also represents the UnicodeSet in the stored rules. -
variables
Object[] variablesMap category variable (Character) to UnicodeMatcher or UnicodeReplacer. Variables that correspond to a set of characters are mapped from variable name to a stand-in character in data.variableNames. The stand-in then serves as a key in this hash to lookup the actual UnicodeSet object. In addition, the stand-in is stored in the rule text to represent the set of characters. variables[i] represents character (variablesBase + i). -
variablesBase
char variablesBaseThe character that represents variables[0]. Characters variablesBase through variablesBase + variables.length - 1 represent UnicodeSet objects.
-
-
Constructor Details
-
Data
public Data()
-
-
Method Details
-
lookupMatcher
Return the UnicodeMatcher represented by the given character, or null if none. -
lookupReplacer
Return the UnicodeReplacer represented by the given character, or null if none.
-