Name

String -- character string object

(.. This type will be more fully documented when it is generalized beyond its current status as nothing more than an object wrapper for a null-terminated character array.)


Synopsis

//
// String -- character string object
//
@deftype String <Create, Drop, Copy, CREATABLE>
CREATING
+		create: aZone setC: (char *)cstring;
SETTING
- (void)	setC: (char *)cstring;
USING
- (char *)	getC;
- (void)	appendC: (char *)cstring;

- (int)		getCount;
- (int)		compare: aString;
@end

Description

The String object type packages a null-terminated, C-format character string into an object. All memory allocation needed to hold the string value is handled by the object. This type currently defines only the most rudimentary operations for initializing and appending C-format character strings. These are sufficient for its current limited roles in places that need a uniformity between character strings and other kinds of allocated objects.


Inherited behavior

@deftype String <Create, Drop, Copy, CREATABLE>
...

Create-time options

CREATING
+		create: aZone setC: (char *)cstring;
SETTING
- (void)	setC: (char *)cstring;
...

String behavior

- (char *)	getC;
- (void)	appendC: (char *)cstring;

- (int)		getCount;
- (int)		compare: aString;
@end
...


Roger Burkhart <rmb@santafe.edu>
Last modified: