com.ibm.icu.text
Class UnicodeSet.XSymbolTable

java.lang.Object
  extended by com.ibm.icu.text.UnicodeSet.XSymbolTable
All Implemented Interfaces:
SymbolTable
Enclosing class:
UnicodeSet

Deprecated. This API is ICU internal only.

public abstract static class UnicodeSet.XSymbolTable
extends java.lang.Object
implements SymbolTable

Internal class for customizing UnicodeSet parsing of properties. TODO: extend to allow customizing of codepoint ranges

Author:
medavis

Field Summary
 
Fields inherited from interface com.ibm.icu.text.SymbolTable
SYMBOL_REF
 
Constructor Summary
UnicodeSet.XSymbolTable()
          Deprecated. This API is ICU internal only.
 
Method Summary
 boolean applyPropertyAlias(java.lang.String propertyName, java.lang.String propertyValue, UnicodeSet result)
          Deprecated. This API is ICU internal only.
 char[] lookup(java.lang.String s)
          Deprecated. This API is ICU internal only.
 UnicodeMatcher lookupMatcher(int i)
          Deprecated. This API is ICU internal only.
 java.lang.String parseReference(java.lang.String text, java.text.ParsePosition pos, int limit)
          Deprecated. This API is ICU internal only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeSet.XSymbolTable

public UnicodeSet.XSymbolTable()
Deprecated. This API is ICU internal only.

Default constructor

Method Detail

lookupMatcher

public UnicodeMatcher lookupMatcher(int i)
Deprecated. This API is ICU internal only.

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 interface SymbolTable
Parameters:
i - 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.

applyPropertyAlias

public boolean applyPropertyAlias(java.lang.String propertyName,
                                  java.lang.String propertyValue,
                                  UnicodeSet result)
Deprecated. This API is ICU internal only.


lookup

public char[] lookup(java.lang.String s)
Deprecated. This API is ICU internal only.

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 interface SymbolTable
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.

parseReference

public java.lang.String parseReference(java.lang.String text,
                                       java.text.ParsePosition pos,
                                       int limit)
Deprecated. This API is ICU internal only.

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 interface SymbolTable
Parameters:
text - the text to parse for the name
pos - 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.


Copyright (c) 2007 IBM Corporation and others.