Documentation Set for Swarm 2.2
Prev | Reference II. Collections Library | Next

# String

## Name

String -- Character string object (later to support collection behavior).

## 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.

## Protocols adopted by String

Create Drop Copy CREATABLE

## Methods

### Phase: Creating

- + create: (id <Zone>)aZone setC: (const char *)cstring

### Phase: Setting

- - (void)setC: (const char *)cstring

### Phase: Using

- - (unsigned)getCount

- - (void)catC: (const char *)cstring

- - (const char *)getC

Prev | Home | Next
Set | Up | General