Methods Summary |
---|
static native void | closeCollator(int collatoraddress)Close a C collator
Once closed, a UCollatorOld should not be used.
|
static native void | closeElements(int address)Close a C collation element iterator.
|
static native int | compare(int collatoraddress, java.lang.String source, java.lang.String target)Compare two strings.
The strings will be compared using the normalization mode and options
specified in openCollator or openCollatorFromRules
|
static native int | getAttribute(int collatoraddress, int type)Universal attribute getter
|
private static native int | getAvailableLocalesCountImpl()
|
static java.lang.String[] | getAvailableLocalesImpl()
int count = getAvailableLocalesCountImpl();
String[] result = new String[count];
for(int i = 0; i < count; i++) {
result[i] = getAvailableLocalesImpl(i);
}
return result;
|
private static native java.lang.String | getAvailableLocalesImpl(int i)
|
static native int | getCollationElementIterator(int collatoraddress, java.lang.String source)Create a CollationElementIterator object that will iterator over the
elements in a string, using the collation rules defined in this
RuleBasedCollator
|
static native int | getMaxExpansion(int address, int order)Get the maximum length of any expansion sequences that end with the
specified comparison order.
|
static native int | getNormalization(int collatoraddress)Get the normalization mode for this object.
The normalization mode influences how strings are compared.
|
static native int | getOffset(int address)Get the offset of the current source character.
This is an offset into the text of the character containing the current
collation elements.
|
static native java.lang.String | getRules(int collatoraddress)Get the collation rules from a UCollator.
The rules will follow the rule syntax.
|
static native byte[] | getSortKey(int collatoraddress, java.lang.String source)Get a sort key for the argument string
Sort keys may be compared using java.util.Arrays.equals
|
static native int | hashCode(int collatoraddress)Returns a hash of this collation object
|
static native int | next(int address)Get the ordering priority of the next collation element in the text.
A single character may contain more than one collation element.
|
static native int | openCollator()Method to create a new C Collator using the default locale rules.
|
static native int | openCollator(java.lang.String locale)Method to create a new C Collator using the argument locale rules.
|
static native int | openCollatorFromRules(java.lang.String rules, int normalizationmode, int collationstrength)Method to create a new C Collator using the argument rules.
|
static native int | previous(int address)Get the ordering priority of the previous collation element in the text.
A single character may contain more than one collation element.
|
static native void | reset(int address)Reset the collation elements to their initial state.
This will move the 'cursor' to the beginning of the text.
|
static native int | safeClone(int collatoraddress)Thread safe cloning operation
|
static native void | setAttribute(int collatoraddress, int type, int value)Universal attribute setter.
|
static native void | setNormalization(int collatoraddress, int normalizationmode)Set the normalization mode used int this object
The normalization mode influences how strings are compared.
|
static native void | setOffset(int address, int offset)Set the offset of the current source character.
This is an offset into the text of the character to be processed.
|
static native void | setText(int address, java.lang.String source)Set the text containing the collation elements.
|