#import <ObjectiveLib/Text.h>
Public Member Functions | |
| (id) | - class | 
| Return the class object.   | |
| (int) | - compare: | 
| Compare this object to another.   | |
| (id) | - copy | 
| Copy this object.   | |
| (const char *) | - cString | 
| Return the array of characters controlled by this object.   | |
| (id) | - free | 
| Free the memory associated with this object.   | |
| (unsigned) | - hash | 
| Return a hash code.   | |
| (BOOL) | - isEqual: | 
| Return whether this text object is equal to another one.   | |
| (unsigned) | - length | 
| Return the length of the controlled sequence of characters.   | |
Static Public Member Functions | |
| (id) | + class | 
| Return the class object.   | |
| (void) | + load | 
| Performed when the class is loaded into the runtime system.   | |
Protected Attributes | |
| char * | c_string | 
| The character data.   | |
| unsigned | len | 
| The length of the data.   | |
Instances of this class that contain non-ASCII characters are not supported.
| - (id) class | 
Return the class object.
| + (id) class | 
Return the class object.
| - (int) compare: | (id) | other | 
Compare this object to another.
OLConstantString objects can be compared to other OLConstantString objects and to OLText objects. The two objects, if compatible, will be compared lexicographically.
| other | the object to which to compare this one | 
| - (id) copy | 
Copy this object.
| - (const char*) cString | 
Return the array of characters controlled by this object.
| - (id) free | 
Free the memory associated with this object.
| - (unsigned) hash | 
Return a hash code.
The hash code for this text object is computed using OLHash.
| - (BOOL) isEqual: | (id) | other | 
Return whether this text object is equal to another one.
This message returns YES if compare: returns zero.
| other | the object to test | 
| - (unsigned) length | 
Return the length of the controlled sequence of characters.
| + (void) load | 
Performed when the class is loaded into the runtime system.
Please do not call this method. It is for the use of the runtime system.
- (char*) c_string [protected]           | 
        
The character data.
- (unsigned) len [protected]           | 
        
The length of the data.
  |