[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compact char mapping (Re: CharClass code for XTerm)
Thomas Wolff <towo@xxxxxxxxxxxx>:
> is there such a compact function already available for toupper and
> tolower (and perhaps totitle) mapping? I've browsed the new glibc and
> it seems a large table is used there for that purpose.
The implementations of towupper and towlower in libutf8-0.7.2 each use
a table of 3.5 KB, and the functions are O(1): only two array accesses
per call.
Bruno
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/