ICU-1875
added API getLatin1LinearValue(char ch) ; X-SVN-Rev: 8518
This commit is contained in:
parent
db3c628396
commit
829023a615
@ -5,8 +5,8 @@
|
||||
******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/impl/CharTrie.java,v $
|
||||
* $Date: 2002/04/02 21:00:09 $
|
||||
* $Revision: 1.4 $
|
||||
* $Date: 2002/04/25 22:19:25 $
|
||||
* $Revision: 1.5 $
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
@ -138,6 +138,18 @@ public class CharTrie extends Trie
|
||||
}
|
||||
return m_initialValue_;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Gets the latin 1 fast path value.</p>
|
||||
* <p>Note this only works if latin 1 characters have their own linear
|
||||
* array.</p>
|
||||
* @param ch latin 1 characters
|
||||
* @return value associated with latin character
|
||||
*/
|
||||
public final char getLatin1LinearValue(char ch)
|
||||
{
|
||||
return m_data_[INDEX_STAGE_3_MASK_ + 1 + ch];
|
||||
}
|
||||
|
||||
// protected methods -----------------------------------------------
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/impl/IntTrie.java,v $
|
||||
* $Date: 2002/04/02 21:00:09 $
|
||||
* $Revision: 1.4 $
|
||||
* $Date: 2002/04/25 22:19:25 $
|
||||
* $Revision: 1.5 $
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
@ -143,6 +143,18 @@ public class IntTrie extends Trie
|
||||
}
|
||||
return m_initialValue_;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Gets the latin 1 fast path value.</p>
|
||||
* <p>Note this only works if latin 1 characters have their own linear
|
||||
* array.</p>
|
||||
* @param ch latin 1 characters
|
||||
* @return value associated with latin character
|
||||
*/
|
||||
public final int getLatin1LinearValue(char ch)
|
||||
{
|
||||
return m_data_[INDEX_STAGE_3_MASK_ + 1 + ch];
|
||||
}
|
||||
|
||||
// protected methods -----------------------------------------------
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/impl/Trie.java,v $
|
||||
* $Date: 2002/04/02 21:00:09 $
|
||||
* $Revision: 1.4 $
|
||||
* $Date: 2002/04/25 22:19:25 $
|
||||
* $Revision: 1.5 $
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
@ -73,6 +73,17 @@ public abstract class Trie
|
||||
*/
|
||||
public int getFoldingOffset(int value);
|
||||
}
|
||||
|
||||
// public methods --------------------------------------------------
|
||||
|
||||
/**
|
||||
* Determines if this trie has a linear latin 1 array
|
||||
* @return true if this trie has a linear latin 1 array, false otherwise
|
||||
*/
|
||||
public final boolean isLatin1Linear()
|
||||
{
|
||||
return m_isLatin1Linear_;
|
||||
}
|
||||
|
||||
// protected constructor -------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user