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(CharSequence s1,
CharSequence s2)
Compare two strings for equality.
|
int |
compareStrings(CharSequence o1,
CharSequence o2)
Compare two strings
|
AtomicMatchKey |
getCollationKey(CharSequence s)
Get a collation key for a String.
|
String |
getCollationURI()
Get the collation URI.
|
String getCollationURI()
int compareStrings(CharSequence o1, CharSequence o2)
o1
- the first stringo2
- the second stringboolean comparesEqual(CharSequence s1, CharSequence s2)
s1
- the first strings2
- the second stringAtomicMatchKey getCollationKey(CharSequence s)
s
- the string whose collation key is requiredCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.