This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]