com.icl.saxon.sort

Class Compare_en


public class Compare_en
extends TextComparer

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

Field Summary

Fields inherited from class com.icl.saxon.sort.TextComparer

DEFAULT_CASE_ORDER, LOWERCASE_FIRST, UPPERCASE_FIRST

Method Summary

int
compare(Object a, Object b)
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
Comparer
setCaseOrder(int caseOrder)

Methods inherited from class com.icl.saxon.sort.TextComparer

setCaseOrder

Methods inherited from class com.icl.saxon.sort.Comparer

compare, setDataType, setOrder

Method Details

compare

public int compare(Object a,
                   Object b)
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
Overrides:
compare in interface Comparer

Returns:
<0 if a0 if a>b


setCaseOrder

public Comparer setCaseOrder(int caseOrder)
Overrides:
setCaseOrder in interface TextComparer