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]

Re: [PATCH] speedup strcoll by using strdiff


Am 12.03.2015 um 14:13 schrieb Andreas Schwab:
Leonhard Holz <leonhard.holz@web.de> writes:

Well, actually this is what I did to create it: Look into the charmap if it
defines characters above 0xff. But writing a parser would be some effort, so maybe
someone can hint me to an existing API?

You won't need much of a parser, just look at the lines between CHARMAP
and END CHARMAP.

Andreas.


Hmm... actually there is a reader for charmap files (locale/programs/charmap.c).
Anyhow I think I found a smarter way to do this by adapting the MB_CUR_MAX macro.
v2 follows.


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