Georg Baum wrote:
Am Sonntag, 3. September 2006 15:56 schrieb Abdelrazak Younes:
Georg Baum wrote:
Am Sonntag, 3. September 2006 15:30 schrieb Abdelrazak Younes:
Question first: std::tolower() is a template and compiles fine with
char_type.
??? std::tolower comes from the C library (ctype.h) and is defined like
this:
int tolower(int);
MSVC doc says:
Converts a character to upper case.
template<Class CharType>
CharType toupper(
CharType _Ch,
const locale& _Loc
)
That is a different beast with two arguments ;-)
Ah? I thought the second one has a default english locale.
Maybe we could use this
instead with a suitable locale.
Yes but I guess this wouldn't work with full unicode. Arabic for example
has a notion of uppercase (kind-off). AFAIU this wouldn't be enough for
language like German which could need two chars for a different case.
How do we know which locale we are in? Some global functions?
That's a matter of taste I guess ;-)
Yep. Therefore I am not going to stop you from doing this.
Committed ;-)
Abdel.