public interface StringCollator
Note: an implementation of this interface that wraps a Java RuleBasedCollator
is
available: see RuleBasedSubstringMatcher
.
Modifier and Type | Method and Description |
---|---|
boolean |
comparesEqual(java.lang.CharSequence s1,
java.lang.CharSequence s2)
Compare two strings for equality.
|
int |
compareStrings(java.lang.CharSequence o1,
java.lang.CharSequence o2)
Compare two strings
|
AtomicMatchKey |
getCollationKey(java.lang.CharSequence s)
Get a collation key for a String.
|
java.lang.String |
getCollationURI()
Get the collation URI.
|
java.lang.String getCollationURI()
int compareStrings(java.lang.CharSequence o1, java.lang.CharSequence o2)
o1
- the first stringo2
- the second stringboolean comparesEqual(java.lang.CharSequence s1, java.lang.CharSequence s2)
s1
- the first strings2
- the second stringAtomicMatchKey getCollationKey(java.lang.CharSequence s)
s
- the string whose collation key is requiredCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.