src/share/classes/java/text/RBCollationTables.java

Print this page

        

*** 190,206 **** * @return the maximum length of any expansion seuences ending * with the specified order. * * @see CollationElementIterator#getMaxExpansion */ ! int getMaxExpansion(int order) ! { int result = 1; if (expandTable != null) { // Right now this does a linear search through the entire ! // expandsion table. If a collator had a large number of expansions, // this could cause a performance problem, but in practise that // rarely happens for (int i = 0; i < expandTable.size(); i++) { int[] valueList = expandTable.elementAt(i); int length = valueList.length; --- 190,205 ---- * @return the maximum length of any expansion seuences ending * with the specified order. * * @see CollationElementIterator#getMaxExpansion */ ! int getMaxExpansion(int order) { int result = 1; if (expandTable != null) { // Right now this does a linear search through the entire ! // expansion table. If a collator had a large number of expansions, // this could cause a performance problem, but in practise that // rarely happens for (int i = 0; i < expandTable.size(); i++) { int[] valueList = expandTable.elementAt(i); int length = valueList.length;
*** 217,236 **** /** * Get the entry of hash table of the expanding string in the collation * table. * @param idx the index of the expanding string value list */ ! final int[] getExpandValueList(int order) { ! return expandTable.elementAt(order - EXPANDCHARINDEX); } /** * Get the comarison order of a character from the collation table. * @return the comparison order of a character. */ ! int getUnicodeOrder(int ch) ! { return mapping.elementAt(ch); } short getMaxSecOrder() { return maxSecOrder; --- 216,234 ---- /** * Get the entry of hash table of the expanding string in the collation * table. * @param idx the index of the expanding string value list */ ! final int[] getExpandValueList(int idx) { ! return expandTable.elementAt(idx - EXPANDCHARINDEX); } /** * Get the comarison order of a character from the collation table. * @return the comparison order of a character. */ ! int getUnicodeOrder(int ch) { return mapping.elementAt(ch); } short getMaxSecOrder() { return maxSecOrder;