home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13218 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!microsoft!hexnut!ericsc
  3. From: ericsc@microsoft.com (Eric Schlegel)
  4. Subject: Re: string comparisons
  5. Message-ID: <1992Jul30.155806.5178@microsoft.com>
  6. Date: 30 Jul 92 15:58:06 GMT
  7. Organization: Microsoft Corporation
  8. References: <jpurlia-280792143857@129.46.5.45> <Bs56G5.1Jy@taligent.com>
  9. Lines: 31
  10.  
  11. In article <Bs56G5.1Jy@taligent.com> keith@taligent.com (Keith Rollin) writes:
  12. >Here are some notes I have on the functions (I can never keep them straight!):
  13. >
  14. >    Name            Takes   Case    Diac    Returns         Trap used
  15. >    --------------  ------- -----   -----   ------------    ----------
  16. >    RelString:      Str255  spec    spec    -1, 0, 1        _RelString
  17. >    EqualString:    Str255  spec    spec    Boolean         _CmpString
  18. >
  19. >    IUCompString:   Str255  TRUE    TRUE    -1, 0, 1        _Pack6,#10
  20. >    IUMagString:    Ptr/len TRUE    TRUE    -1, 0, 1        _Pack6,#10
  21. >
  22. >    IUEqualString:  Str255  FALSE   FALSE   Inv. Boolean    _Pack6,#12
  23. >    IUMagIDString:  Ptr/len FALSE   FALSE   Inv. Boolean    _Pack6,#12
  24. >
  25. >The Case and Diac columns refer to whether or not the functions are
  26. >sensitive to case or diacriticals. "spec" means that you can specify
  27. >whether they are or not.
  28.  
  29. There's also a little-known trap _IUMagWString which does the following:
  30.      IUMagWString:   Ptr/len FALSE   FALSE   -1, 0, 1        _Pack6,#18
  31.  
  32. That is, it does the same as IUMagIDString, except that it tells you whether
  33. one string is less than, greater than, or equal to the other string, instead
  34. of just telling you whether they differ.
  35.  
  36. This trap is currently undocumented, but when I talked to DTS about it earlier
  37. this year DTS said they'd try to get it documented in New Inside Macintosh.
  38.  
  39. -eric
  40. -----
  41. My opinion, not Microsoft's.
  42.