Last edited by MK27; 02-03-2009 at 03:20 PM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Oh I'm not using them at all. I thought a wide character was one that actually occupied more screen space. That's fine, since the character count will be the same and I imagine "wide character" alphabets (like ideograms) do not really use upper and lower case. Altho that begs the question: what is towlower for?
But the romance languages, etc contain a lot of "modified" ascii characters (an e with an accent, etc) which I presume, since they are not part of ASCII, must be UTF-8, and can be capitalized (an E with an accent).
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
I believe the parameter for tolower / toupper must be in the range [0 .. UCHAR_MAX), which would make it useless for multi-byte characters.
The standard says nothing about the encoding of wide characters. However, on most Unix platforms, wchar_t represents UTF-32 code points (a property you can check by veryfing the existance of the __STDC_ISO_10646__ macro), whereas on windows, it usually represents UCS-2 or UTF-16. So one could use towlower / towupper and then convert back to UTF-8 according to the host platform.Originally Posted by tabstop
Last edited by Ronix; 02-03-2009 at 03:35 PM.