Re: Finding out if a given character is in UpperCase, LowerCase or Numeric
- From: Sinna <news4sinna_NOSPAM@xxxxxxxxxx>
- Date: Thu, 03 Jul 2008 08:30:17 +0200
Tony Proctor wrote:
I shouldn't worry Sinna. I'm sure the OP wasn't really interested in worldwide distribution :-)Well, most examples I find on the Internet don't cover Unicode at all, especially when calling APIs.
I always try to bring the subject up whenever I can, though, just to remind people. The majority of applications written in the Western world are not globally aware, and it doesn't make any difference whether the programming language uses Unicode, or offers locale-aware support. I've been involved in international projects for 20 years and developers always make the same mistakes or assumptions. :-(
It's not just a matter of character sets, or alphabets (as in this case), or decimal-point/triple-point characters, or date representations, or boolean representations, etc. There are fundamental differences at the local language level such as how the sentences are put together (affects parameter placement, for instance), or the concept of plurals, or the concept of masculine/feminine, etc. Even writing English language s/w for UK and US distribution should consider such differences, although it rarely does
Ah well, back to work, eh?
Tony Proctor
"Sinna" <news4sinna_NOSPAM@xxxxxxxxxx> wrote in message news:e3fqu0A3IHA.2348@xxxxxxxxxxxxxxxxxxxxxxxTony Proctor wrote:Being pedantic, most of the replies to your question are not totally accurate. If all you're interested in is A-Z and a-z then they'll do. However, be aware that other languages based on the Latin alphabet may have diacritical marks (aka accents) and so simply looking at A-Z will not work.That's why I stated in my reply that I was only covering ANSI/ASCII. Now I read your reply, I should have said: ASCII-7.
For instance, consider A with an acute accent. Chr$(193) is the uppercase and Chr$(225) is the lowercase.
Sinna
Before I had to introduce Japanese language support in my application, I didn't either, but since then, I always try to use the W-variant of the API (if available). I don't have to deal with the A-variant anymore as the 'oldest' OS my application supports is Win2k.
Fact is that calling the W-variants is quite a lot harder to implement (and so to read as newbee).
Sinna
.
- Follow-Ups:
- Re: Finding out if a given character is in UpperCase, LowerCase or Numeric
- From: Tony Proctor
- Re: Finding out if a given character is in UpperCase, LowerCase or Numeric
- References:
- Prev by Date: Re: Finding out if a given character is in UpperCase, LowerCase or Numeric
- Next by Date: Re: Finding out if a given character is in UpperCase, LowerCase or Numeric
- Previous by thread: Re: Finding out if a given character is in UpperCase, LowerCase or Numeric
- Next by thread: Re: Finding out if a given character is in UpperCase, LowerCase or Numeric
- Index(es):
Relevant Pages
|