David Korn <yyy@xxxxxxxxxxxxxxxx> writes:
> 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?
Yes.
> 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.
Speaking from experience, implementing the string comparison function
in terms of your function is far less efficient. You have to look up
in various tables and possibly ceate data structures. Also, this is
the more consistent interface since there is strcoll().
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
|