Object <- ForwardSortOrder |
|
|
CompareCharacters CompareTextBySortOrder |
Class ForwardSortOrder defines no new attributes.
Fields
No fields are defined by ForwardSortOrder or any of its superclasses.
Instance template
Class ForwardSortOrder cannot be instantiated.
Class definition
Define Class ForwardSortOrder; abstract; inherits from Object, HasLocale, HasSortOrder; operation CompareCharacters(aText: CharactersPointer; var aLength: Unsigned; aFinalPart: Boolean; bText: CharactersPointer; var bLength: Unsigned; bFinalPart: Boolean; var currentResult: SignedShort), noMethod; // Called by CompareTextBySortOrder to compare substrings of a and b. // On entry: // aText: substring of a to be compared // aLength: length of substring of a to be compared // aFinalPart: whether this is the final substring of a // bText, bLength, bFinalPart: dito for b // currentResult: the result of previous calls (initially 0) // On exit: // aLength, bLength: the number of characters actually used // for comparison. If you need to group characters into // chunks for comparison (such as including combining // marks or forming "ch" for pre-94 Spanish), you may // decide to defer comparison of the last characters to // the next call. // You should not defer characters if both aFinalPart and // bFinalPart are set. You must not defer all characters. // currentResult: the most relevant change found so far. // If the value on entry was 0, you can set it to any value. // If the value on entry was anything else, its absolute // value can only move towards 1. overrides CompareTextBySortOrder; end class;