Email List: Xaustin-group-lX
[All Lists]

Re: AI 2000-05-010: proposed interface

To: yyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Re: AI 2000-05-010: proposed interface
From: David Korn <yyy@xxxxxxxxxxxxxxxx>
Date: Mon, 14 Aug 2000 16:46:06 -0400 (EDT)
> The semantics of the function is to return a value <0, ==0, or >0
> depending of the collation sequence value of the first character
> following the prefix common to both strings s1 and s2 (the prefix can
> be the empty string).

If it is true, that no two characters can have the same
collation order, (which I assume is required), then wouldn't == mean
that the strings are equal?

Wouldn't a simpler interface be
        int colseq( int c)

where colseq() >=0 for any character c, and
        colseq(a) > colseq(b)
===>    that the a comes after b in the colation sequence.

Clearly this can be written in terms of yours and vica versa,
but this seems more likely to be more efficient to implement.
It could even be done as a table lookup.


David Korn
research!dgk
yyy@xxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>