TStr255 class; a C++ class to replace the pascal Str255 string type.

User avatar
Info-Mac
Administrator
Posts:13716
Joined:December 21st, 1988, 11:00 am
TStr255 class; a C++ class to replace the pascal Str255 string type.

Post by Info-Mac » October 24th, 1995, 9:00 am

Download: http://archive.info-mac.org/dev/lib/t-str255-cpp.hqx

Why bother? Because I'm sick of horsing around with
utility string functions for simple things like string
assignment and concatenation, either with pascal or
C strings.

The class has been designed to be as transparent a
'drop-in' as possilbe, and use of inline functions
mean you don't have to pay any speed penalty for
using it.

A small metrowerks project has been included to show
what the class is capable of. Step through the
project's code in a debugger to see the strings
chop and change.

Andrew thinks: "Shouldn't Apple be doing this?"

Small CW7 project included

Andrew Nemeth
[email protected]
24 Oct 1995
Blue Mountains, Sydney Australia
Post Reply