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

Author: Michael H. Kay

Field Summary
intcaseOrder
Method Summary
intcompare(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
ComparersetCaseOrder(int caseOrder)

Field Detail

caseOrder

int caseOrder

Method Detail

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

Returns: <0 if a0 if a>b

setCaseOrder

public Comparer setCaseOrder(int caseOrder)