home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!darwin.sura.net!haven.umd.edu!umd5!mac19-pg2.umd.edu!user
- From: de19@umail.umd.edu (Dana S Emery)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: A problem with toupper and tolower in Think C 5.03?
- Message-ID: <de19-171192062455@mac19-pg2.umd.edu>
- Date: 17 Nov 92 11:32:46 GMT
- References: <6958@news.duke.edu>
- Sender: news@umd5.umd.edu
- Followup-To: comp.sys.mac.programmer
- Organization: personal
- Lines: 28
-
- In article <6958@news.duke.edu>, tasavard@phy.duke.edu (Tom Savard) wrote:
- >
- > Has anyone had trouble with the functions tolower and toupper in Think C?
- > A colleague and I were trying to use the function to no avail. Then,
- > we looked in the ctype.h file and noticed toupper and tolower were not defined
- > like the other functions in that header. (They substitute most functions with
- > macros.)
- >
-
- I suspect if you browse a bit deeper, you will find them defined somewhere,
- perhaps in <strings.h> or <stdio.h>.
-
- anyway, you should be aware that tolower and toupper assume ascii content.
-
- In these days of growing international usage, that is not always valid, and
- your program should avoid allowing the user to associate international
- fonts to such text if you are going to make that assumption.
-
- System 7 has alternatives which are sensitive to the script associated
- with the font of the current graphport. Many foreign langauges dont use
- upper/lower case letter forms, and no such translation would be needed, or
- appropriate.
-
- Look to IM v 6 (ch 3, 14, 15) or the upcoming new IM "Text" for more info.
- (also "Guide to Software Localization")
- --
-
- Dana S Emery <de19@umail.umd.edu>
-