home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18513 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.7 KB

  1. 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
  2. From: de19@umail.umd.edu (Dana S Emery)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: A problem with toupper and tolower in Think C 5.03?
  5. Message-ID: <de19-171192062455@mac19-pg2.umd.edu>
  6. Date: 17 Nov 92 11:32:46 GMT
  7. References: <6958@news.duke.edu>
  8. Sender: news@umd5.umd.edu
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: personal
  11. Lines: 28
  12.  
  13. In article <6958@news.duke.edu>, tasavard@phy.duke.edu (Tom Savard) wrote:
  14. > Has anyone had trouble with the functions tolower and toupper in Think C?
  15. > A colleague and I were trying to use the function to no avail.  Then,
  16. > we looked in the ctype.h file and noticed toupper and tolower were not defined
  17. > like the other functions in that header.  (They substitute most functions with
  18. > macros.)
  19.  
  20. I suspect if you browse a bit deeper, you will find them defined somewhere,
  21. perhaps in <strings.h> or <stdio.h>.
  22.  
  23. anyway, you should be aware that tolower and toupper assume ascii content.
  24.  
  25. In these days of growing international usage, that is not always valid, and
  26. your program should avoid allowing the user to associate international
  27. fonts to such text if you are going to make that assumption. 
  28.  
  29. System 7 has alternatives which are sensitive to the script associated
  30. with the font of the current graphport.  Many foreign langauges dont use
  31. upper/lower case letter forms, and no such translation would be needed, or
  32. appropriate.
  33.  
  34. Look to IM v 6 (ch 3, 14, 15) or the upcoming new IM "Text" for more info.
  35. (also "Guide to Software Localization")
  36. --
  37.  
  38. Dana S Emery <de19@umail.umd.edu>
  39.