Top Inners Fields Constructors Methods
com.ibm.icu.text

pack-priv Class RBBISymbolTable

extends Object
implements SymbolTable
Class Inheritance
All Implemented Interfaces
com.ibm.icu.text.SymbolTable
Imports
java.text.ParsePosition, java.util.HashMap, com.ibm.icu.lang.UCharacter

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv UnicodeSet
pack-priv String
pack-priv HashMap<String, RBBISymbolTable.RBBISymbolTableEntry>
pack-priv RBBIRuleScanner

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public char[]
lookup(String
the symbolic name to lookup
s
)

Implements com.ibm.icu.text.SymbolTable.lookup.

Lookup the characters associated with this string and return it.
public UnicodeMatcher
lookupMatcher(int
a 32-bit code point from 0 to 0x10FFFF inclusive.
ch
)

Implements com.ibm.icu.text.SymbolTable.lookupMatcher.

Lookup the UnicodeMatcher associated with the given character, and return it.
pack-priv RBBINode
public String
parseReference(String
the text to parse for the name
text
,
ParsePosition
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.
pos
,
int
the index after the last character to be parsed.
limit
)

Implements com.ibm.icu.text.SymbolTable.parseReference.

Parse a symbol reference name from the given string, starting at the given position.
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fCachedSetLookupback to summary
pack-priv UnicodeSet fCachedSetLookup
ffffStringback to summary
pack-priv String ffffString
fHashTableback to summary
pack-priv HashMap<String, RBBISymbolTable.RBBISymbolTableEntry> fHashTable
fRuleScannerback to summary
pack-priv RBBIRuleScanner fRuleScanner

Constructor Detail

RBBISymbolTableback to summary
pack-priv RBBISymbolTable(RBBIRuleScanner rs)

Method Detail

addEntryback to summary
pack-priv void addEntry(String key, RBBINode val)
lookupback to summary
public char[] lookup(String s)

Implements com.ibm.icu.text.SymbolTable.lookup.

Doc from com.ibm.icu.text.SymbolTable.lookup.

Lookup the characters associated with this string and return it. Return null if no such name exists. The resultant array may have length zero.

Parameters
s:String

the symbolic name to lookup

Returns:char[]

a char array containing the name's value, or null if there is no mapping for s.

lookupMatcherback to summary
public UnicodeMatcher lookupMatcher(int ch)

Implements com.ibm.icu.text.SymbolTable.lookupMatcher.

Doc from com.ibm.icu.text.SymbolTable.lookupMatcher.

Lookup the UnicodeMatcher associated with the given character, and return it. Return null if not found.

Parameters
ch:int

a 32-bit code point from 0 to 0x10FFFF inclusive.

Returns:UnicodeMatcher

the UnicodeMatcher object represented by the given character, or null if there is no mapping for ch.

lookupNodeback to summary
pack-priv RBBINode lookupNode(String key)
parseReferenceback to summary
public String parseReference(String text, ParsePosition pos, int limit)

Implements com.ibm.icu.text.SymbolTable.parseReference.

Doc from com.ibm.icu.text.SymbolTable.parseReference.

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.

Parameters
text:String

the text to parse for the name

pos:ParsePosition

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:int

the index after the last character to be parsed.

Returns:String

the parsed name, or null if there is no valid symbolic name at the given position.

rbbiSymtablePrintback to summary
pack-priv void rbbiSymtablePrint()
com.ibm.icu.text back to summary

pack-priv Class RBBISymbolTable.RBBISymbolTableEntry

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv RBBINode

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
pack-priv String key
valback to summary
pack-priv RBBINode val

Constructor Detail

RBBISymbolTableEntryback to summary
pack-priv RBBISymbolTableEntry()