Methods Summary |
---|
java.util.Vector | getContractValues(int ch)Get the entry of hash table of the contracting string in the collation
table.
int index = mapping.elementAt(ch);
return getContractValuesImpl(index - CONTRACTCHARINDEX);
|
private java.util.Vector | getContractValuesImpl(int index)
if (index >= 0)
{
return (Vector)contractTable.elementAt(index);
}
else // not found
{
return null;
}
|
static final int | getEntry(java.util.Vector list, java.lang.String name, boolean fwd)
for (int i = 0; i < list.size(); i++) {
EntryPair pair = (EntryPair)list.elementAt(i);
if (pair.fwd == fwd && pair.entryName.equals(name)) {
return i;
}
}
return UNMAPPED;
|
final int[] | getExpandValueList(int order)Get the entry of hash table of the expanding string in the collation
table.
return (int[])expandTable.elementAt(order - EXPANDCHARINDEX);
|
int | getMaxExpansion(int order)Return the maximum length of any expansion sequences that end
with the specified comparison 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 = (int [])expandTable.elementAt(i);
int length = valueList.length;
if (length > result && valueList[length-1] == order) {
result = length;
}
}
}
return result;
|
short | getMaxSecOrder()
return maxSecOrder;
|
short | getMaxTerOrder()
return maxTerOrder;
|
public java.lang.String | getRules()Gets the table-based rules for the collation object.
return rules;
|
int | getUnicodeOrder(int ch)Get the comarison order of a character from the collation table.
return mapping.elementAt(ch);
|
public boolean | isFrenchSec()
return frenchSec;
|
public boolean | isSEAsianSwapping()
return seAsianSwapping;
|
static void | reverse(java.lang.StringBuffer result, int from, int to)Reverse a string.
int i = from;
char swap;
int j = to - 1;
while (i < j) {
swap = result.charAt(i);
result.setCharAt(i, result.charAt(j));
result.setCharAt(j, swap);
i++;
j--;
}
|
boolean | usedInContractSeq(int c)Returns true if this character appears anywhere in a contracting
character sequence. (Used by CollationElementIterator.setOffset().)
return contractFlags.get(c) == 1;
|