LStr255 is a PowerPlant class that is used for Pascal-style strings, having a maximum of 255 characters.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Use these constructors to create and convert strings into 255-character Pascal strings.
Source files:
Ancestors:
Purpose:
This is the default constructor.
Access:
Prototype:
LStr255();Parameters:
Purpose:
Access:
Prototype:
LStr255( const LStr255& inOriginal );Parameters:
This constructor takes the following parameter:
Purpose:
Access:
Prototype:
LStr255( const LString& inOriginal );Parameters:
This constructor takes the following parameter:
Purpose:
Constructor to convert from a pointer to a string.
Access:
Prototype:
LStr255( ConstStringPtr inStringPtr );Parameters:
This constructor takes the following parameter:
Purpose:
Constructor to make a string from a single character.
Access:
Prototype:
LStr255( UInt8 inChar );Parameters:
This constructor takes the following parameter:
Purpose:
Constructor to make a string from a single character.
Access:
Prototype:
LStr255( char inChar );Parameters:
This constructor takes the following parameter:
Purpose:
Constructor to make a string from a C string (null terminated).
Access:
Prototype:
LStr255( const char* inCString );Parameters:
This constructor takes the following parameter:
LStr255(const void*,unsigned char)
Purpose:
Constructor to make a string from a pointer and length.
Access:
Prototype:
LStr255( const void* inPtr, UInt8 inLength );Parameters:
This constructor takes the following parameters:
Purpose:
Constructor to make a string from the data in a handle.
Access:
Prototype:
LStr255( Handle inHandle );Parameters:
This constructor takes the following parameter:
Purpose:
Constructor to make a string from a resource.
Access:
Prototype:
LStr255( ResIDT inResID, SInt16 inIndex );Parameters:
This constructor takes the following parameters:
Purpose:
Constructor to make a string from a long integer.
Access:
Prototype:
LStr255( SInt32 inNumber );Parameters:
This constructor takes the following parameter:
LStr255(long double,signed char,short)
Purpose:
Assignment to create a string from floating point number.
Access:
Prototype:
LStr255( double_t inNumber, SInt8 inStyle,Parameters:
SInt16 inDigits );
This constructor takes the following parameters:
Purpose:
Constructor to create a string from a four character code, which
is an unsigned long, the same as ResType and OSType.
Access:
Prototype:
LStr255( FourCharCode inCode );Parameters:
This constructor takes the following parameter:
Purpose:
The assignment operator performs typecasting on strings.
Access:
Prototype:
LStr255& operator=( FourCharCode inCode );
LStr255& operator=( SInt32 inNumber );
LStr255& operator=( const char* inCString );
LStr255& operator=( char inChar );
LStr255& operator=( UInt8 inChar );
LStr255& operator=( ConstStringPtr inStringPtr );
LStr255& operator=( const LString& inString );Parameters:
This operator takes the following parameters:
| The "C" string to convert. | ||
| The character to make a string from. | ||
| The character to make a string from. | ||
| The string pointer to make a string from. | ||
| The LString to make a string from. |
Return:
Purpose:
Access:
Prototype:
Str255 mString;