Am Sonntag, 3. September 2006 15:20 schrieb Abdelrazak Younes:
> Yes, it compiles. I will commit it with two more methods if that is fine
> with you:
>
> char_type lowercase(char_type c)
> {
> if (c >= 256)
> return c;
>
> return tolower(static_cast<char>(c));
> }
>
>
> char_type uppercase(char_type c)
> {
> if (c >= 256)
> return c;
>
> return char(toupper(c));
Why different casts?
If you add a FIXME then yes: tolower and toupper use the current locale,
which is wrong if it is not latin1 based (latin1 is a subset of UCS4).
Georg