com.ibm.icu.text
Class UnicodeSet.XSymbolTable
- UnicodeSet
- SymbolTable
public static abstract class UnicodeSet.XSymbolTable
Internal class for customizing UnicodeSet parsing of properties.
TODO: extend to allow customizing of codepoint ranges
boolean | applyPropertyAlias(String propertyName, String propertyValue, UnicodeSet result)
|
char[] | lookup(String s) - Lookup the characters associated with this string and return it.
|
UnicodeMatcher | lookupMatcher(int i) - Lookup the UnicodeMatcher associated with the given character, and
return it.
|
String | parseReference(String text, ParsePosition pos, int limit) - Parse a symbol reference name from the given string, starting
at the given position.
|
applyPropertyAlias
public boolean applyPropertyAlias(String propertyName,
String propertyValue,
UnicodeSet result)
lookup
public char[] lookup(String s)
Lookup the characters associated with this string and return it.
Return null if no such name exists. The resultant
array may have length zero.
- lookup in interface SymbolTable
s
- the symbolic name to lookup
- a char array containing the name's value, or null if
there is no mapping for s.
lookupMatcher
public UnicodeMatcher lookupMatcher(int i)
Lookup the UnicodeMatcher associated with the given character, and
return it. Return null if not found.
- lookupMatcher in interface SymbolTable
- the UnicodeMatcher object represented by the given
character, or null if there is no mapping for ch.
parseReference
public String parseReference(String text,
ParsePosition pos,
int limit)
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.
- parseReference in interface SymbolTable
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.
- the parsed name, or null if there is no valid symbolic
name at the given position.
Copyright (c) 2006 IBM Corporation and others.