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