home *** CD-ROM | disk | FTP | other *** search
- /*
- File: StringInfo.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __STRINGINFO__
- #define __STRINGINFO__ 1
-
- #ifndef __OCE__
- #include <OCE.h>
- #endif
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- class TStringInfo
- {
- public: TStringInfo ( const RString& rStr );
- TStringInfo ( const char* str );
- TStringInfo ( const Str255 str );
- TStringInfo ( const void* data, unsigned long length );
- ~TStringInfo ();
-
- short Count ( char c ) const;
- short First ( char c ) const;
- short Last ( char c ) const;
-
- void SetString ( const RString& rStr );
- void SetString ( const char* str );
- void SetString ( const Str255 str );
- void SetString ( const void * data, unsigned long length );
-
- protected:
-
- short fFirst [ 256 ];
- short fCount [ 256 ];
- short fLast [ 256 ];
- };
-
- #endif //__STRINGINFO__
-