Package com.icl.saxon.sort
Class Compare_en
java.lang.Object
com.icl.saxon.sort.Comparer
com.icl.saxon.sort.TextComparer
com.icl.saxon.sort.Compare_en
A Comparer used with lang="en". Note this only does anything intelligent with characters
in ISO 8859/1, which are mapped to their unaccented equivalents
- Author:
- Michael H. Kay
-
Field Summary
FieldsFields inherited from class com.icl.saxon.sort.TextComparer
DEFAULT_CASE_ORDER, LOWERCASE_FIRST, UPPERCASE_FIRST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compare two string objects, in three phases: (a) ignoring accents and case (b) if still equal, ignoring case (c) if still equal, taking case into accountsetCaseOrder
(int caseOrder) Set case orderMethods inherited from class com.icl.saxon.sort.Comparer
setDataType, setOrder
-
Field Details
-
caseOrder
int caseOrder
-
-
Constructor Details
-
Compare_en
public Compare_en()
-
-
Method Details
-
compare
Compare two string objects, in three phases: (a) ignoring accents and case (b) if still equal, ignoring case (c) if still equal, taking case into account -
setCaseOrder
Description copied from class:TextComparer
Set case order- Overrides:
setCaseOrder
in classTextComparer
- Parameters:
caseOrder
- one of DEFAULT_CASE_ORDER, LOWERCASE_FIRST, or UPPERCASE_FIRST. Indicates whether upper case letters precede or follow lower case letters in the ordering- Returns:
- either this or a different Comparer that will be used to perform the comparisons. This allows the TextComparer to delegate the comparison to a Comparer dedicated to a specific case order.
-