Package com.ibm.icu.text
Class RBBISymbolTable
- java.lang.Object
-
- com.ibm.icu.text.RBBISymbolTable
-
- All Implemented Interfaces:
SymbolTable
class RBBISymbolTable extends java.lang.Object implements SymbolTable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RBBISymbolTable.RBBISymbolTableEntry
-
Field Summary
Fields Modifier and Type Field Description (package private) UnicodeSet
fCachedSetLookup
(package private) java.lang.String
ffffString
(package private) java.util.HashMap<java.lang.String,RBBISymbolTable.RBBISymbolTableEntry>
fHashTable
(package private) RBBIRuleScanner
fRuleScanner
-
Fields inherited from interface com.ibm.icu.text.SymbolTable
SYMBOL_REF
-
-
Constructor Summary
Constructors Constructor Description RBBISymbolTable(RBBIRuleScanner rs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addEntry(java.lang.String key, RBBINode val)
char[]
lookup(java.lang.String s)
Lookup the characters associated with this string and return it.UnicodeMatcher
lookupMatcher(int ch)
Lookup the UnicodeMatcher associated with the given character, and return it.(package private) RBBINode
lookupNode(java.lang.String key)
java.lang.String
parseReference(java.lang.String text, java.text.ParsePosition pos, int limit)
Parse a symbol reference name from the given string, starting at the given position.(package private) void
rbbiSymtablePrint()
-
-
-
Field Detail
-
fHashTable
java.util.HashMap<java.lang.String,RBBISymbolTable.RBBISymbolTableEntry> fHashTable
-
fRuleScanner
RBBIRuleScanner fRuleScanner
-
ffffString
java.lang.String ffffString
-
fCachedSetLookup
UnicodeSet fCachedSetLookup
-
-
Constructor Detail
-
RBBISymbolTable
RBBISymbolTable(RBBIRuleScanner rs)
-
-
Method Detail
-
lookup
public char[] lookup(java.lang.String s)
Description copied from interface:SymbolTable
Lookup the characters associated with this string and return it. Return null if no such name exists. The resultant array may have length zero.- Specified by:
lookup
in interfaceSymbolTable
- Parameters:
s
- the symbolic name to lookup- Returns:
- a char array containing the name's value, or null if there is no mapping for s.
-
lookupMatcher
public UnicodeMatcher lookupMatcher(int ch)
Description copied from interface:SymbolTable
Lookup the UnicodeMatcher associated with the given character, and return it. Return null if not found.- Specified by:
lookupMatcher
in interfaceSymbolTable
- Parameters:
ch
- a 32-bit code point from 0 to 0x10FFFF inclusive.- Returns:
- the UnicodeMatcher object represented by the given character, or null if there is no mapping for ch.
-
parseReference
public java.lang.String parseReference(java.lang.String text, java.text.ParsePosition pos, int limit)
Description copied from interface:SymbolTable
Parse a symbol reference name from the given string, starting at the given position. If no valid symbol reference name is found, return null and leave pos unchanged. That is, if the character at pos cannot start a name, or if pos is at or after text.length(), then return null. This indicates an isolated SYMBOL_REF character.- Specified by:
parseReference
in interfaceSymbolTable
- Parameters:
text
- the text to parse for the namepos
- on entry, the index of the first character to parse. This is the character following the SYMBOL_REF character. On exit, the index after the last parsed character. If the parse failed, pos is unchanged on exit.limit
- the index after the last character to be parsed.- Returns:
- the parsed name, or null if there is no valid symbolic name at the given position.
-
lookupNode
RBBINode lookupNode(java.lang.String key)
-
addEntry
void addEntry(java.lang.String key, RBBINode val)
-
rbbiSymtablePrint
void rbbiSymtablePrint()
-
-