On Nov 18, 12:20 am, Juha Nieminen <nos...@thanks.invalidwrote:
oogie wrote:
The isupper(), islower(), toupper(), and tolower() functions should
handle this.
Note that they might not handle correctly characters outside the ASCII
range (such as ä, ö, etc).
It's locale specific.
Note, on the other hand, that you cannot reliably pass a char to
the isupper() et al. functions in <cctypewithout risking
undefined behavior. For this, you need the functions in
std::locale::ctype<char(which is probably the better way to do
it anyway, although it can be awfully verbose).
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34