This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Idea for string comparison aid
- From: dfeuer at techhouse dot brown dot edu (David Feuer)
- To: libc-alpha at gnu dot org
- Date: Tue, 2 Aug 2005 21:13:11 -0400
- Subject: Idea for string comparison aid
(w)strxfrm operate on whole strings. This is of course the most general
say to do it, but is impractical for some purposes (in particular, it
limits string sorting algorithms to comparison-based ones, or requires
them to store complete converted copies of strings). I am wondering if
it would be possible to write one-piece-at-a-time versions of strxfrm
and wstrxfrm, much like mbrtowc.
I know that German has a letter that compares as two
's's, and that Spanish 'll' compares as 'l'. These would be easy to
handle in this scheme. Are there languages with more complex collation
rules that would break things?
David Feuer