Georg Baum wrote:
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:
Why different casts?
Temporay code... Here is the correct version:
char_type lowercase(char_type c)
{
if (c >= 256)
return c;
return tolower(c);
}
char_type uppercase(char_type c)
{
if (c >= 256)
return c;
return toupper(c);
}
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).
OK, I'll do that, thanks.
Abdel.
Georg