| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Ignoring case |
IT> > JdeBP> > > John is implying that there's not necessarily a one-to-one > JdeBP> > > mapping between lower and upper case in all character sets. > JdeBP> > > JdeBP> > The normal way of handling that case is to not map the > JdeBP> > characters that have no other-case equivalent. > JdeBP> > JdeBP>Consider the Greek alphabet. > > There's a 'Dos' API that should be used in this situation, it ensures you > get the correct corresponding uppercase characters for the specified > country and codepage. > > usRc = DosCaseMap( usLenStr, &ctrycCountryInfo, pszAnyStr ) ; IT> But, of course, in Greek two strings can compare identical if you map to upper case before comparison, and non-identical if you map to lower case before comparison. The decision then becomes which to choose. For this reason, amongst others, stricmp never became a standard library function. If it is of any interest to anyone, incidentally, the whole of the API for PowerPC OS/2 is available in Unicode form. > JdeBP < ___ X MegaMail 2.10 #0: --- Maximus/2 2.02* Origin: DoNoR/2,Woking UK (44-1483-722344) (2:440/4) SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 440/4 141/209 270/101 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.