Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!usc!rpi!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!yale.edu!ox.com!heifetz!tbomb!time From: time@ice.com (Tim Endres) Newsgroups: comp.sys.mac.programmer Subject: Re: GetIndString and System 7 Message-ID: <1CE00001.i5pzda@tbomb.ice.com> Date: 27 Jun 91 21:13:24 GMT Reply-To: time@ice.com Organization: ICE Engineering, Inc. Lines: 22 X-Mailer: uAccess - Mac Release: 1.5 In article <54390@apple.Apple.COM>, nerm@Apple.COM (Dean Yu) writes: > GetIndString has always been a glue routine that is implemented by whoever > sells compilers, so we couldn't really re-write it using Partial Resource > calls. Except for MPW. > At any rate, you can't really use these calls to implement GetIndString > since ReadPartialResource takes a byte offset from the beginning of the > resource, and you can't know where a string starts in a 'STR#'. Since they are Pascal strings, you can jump off the length bytes, but I doubt you would see any difference unless you had huge resources with some type of index. ------------------------------------------------------------- Tim Endres | time@ice.com ICE Engineering | uupsi!ice.com!time 8840 Main Street | Voice FAX Whitmore Lake MI. 48189 | (313) 449 8288 (313) 449 9208 -------- USENET: A slow moving self parody.....