public class UCACollator extends Collator
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY
Constructor and Description |
---|
UCACollator() |
UCACollator(String uri) |
Modifier and Type | Method and Description |
---|---|
int |
compare(String source,
String target) |
CollationKey |
getCollationKey(String source) |
Properties |
getCollationProperties() |
com.ibm.icu.util.ULocale |
getLocale() |
static String[] |
getLocales()
Return the locales supported in this version of ICU
Note that with Java 6 this method has been known to throw an array index exception from RuleBasedCollator,
With Java 7 this performs correctly and getAvailableLocales() does not appear to be
invoked from any of the UCA or numbering support.
|
com.ibm.icu.text.RuleBasedCollator |
getRuleBasedCollator() |
static String |
getUCAVersion()
Return the version of UCA supported
|
int |
hashCode() |
static void |
main(String[] args) |
SubstringMatcher |
makeSubstringMatcher() |
void |
setProps(Properties props)
Set the properties for the UCA collation
|
void |
setStrength(int newStrength) |
String |
show() |
clone, compare, equals, equals, getAvailableLocales, getDecomposition, getInstance, getInstance, getStrength, setDecomposition
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public UCACollator()
public UCACollator(String uri) throws XPathException
XPathException
public static String getUCAVersion()
public com.ibm.icu.text.RuleBasedCollator getRuleBasedCollator()
public Properties getCollationProperties()
public SubstringMatcher makeSubstringMatcher()
public static String[] getLocales()
public String show()
public CollationKey getCollationKey(String source)
getCollationKey
in class Collator
public void setProps(Properties props) throws XPathException
props
- the set of properties parsed from the UCA parametersXPathException
public void setStrength(int newStrength)
setStrength
in class Collator
public com.ibm.icu.util.ULocale getLocale()
public static void main(String[] args)
Copyright (c) 2004-2017 Saxonica Limited. All rights reserved.