libSystem Reference Manual: String

## String String |

## Functions

#define | string_length()
String * | string_new ()
String * | string_new_append ()
String * | string_new_format ()
String * | string_new_length ()
void | string_delete ()
size_t | string_get_length ()
size_t | string_get_size ()
int | string_set ()
int | string_append ()
void | string_clear ()
void | string_cut ()
int | string_compare ()
int | string_compare_length ()
String ** | string_explode ()
String * | string_find ()
ssize_t | string_index ()
int | string_replace ()

## Types and Values

typedef | String

## Description

## Functions

### string_length()

    #define string_length(a) string_get_length(a)

#### Returns

### string_new ()

    String *
    string_new (String const *string);

#### Returns

### string_new_append ()

    String *
    string_new_append (String const *string,
                       ...);

#### Returns

### string_new_format ()

    String *
    string_new_format (String const *format,
                       ...);

#### Returns

### string_new_length ()

    String *
    string_new_length (String const *string,
                       size_t length);

#### Returns

### string_delete ()

    void
    string_delete (String *string);

### string_get_length ()

    size_t
    string_get_length (String const *string);

#### Returns

### string_get_size ()

    size_t
    string_get_size (String const *string);

#### Returns

### string_set ()

    int
    string_set (String **string,
                String const *string2);

#### Returns

### string_append ()

    int
    string_append (String **string,
                   String const *append);

#### Returns

### string_clear ()

    void
    string_clear (String *string);

### string_cut ()

    void
    string_cut (String *string,
                size_t length);

### string_compare ()

    int
    string_compare (String const *string,
                    String const *string2);

#### Returns

### string_compare_length ()

    int
    string_compare_length (String const *string,
                           String const *string2,
                           size_t length);

#### Returns

### string_explode ()

    String **
    string_explode (String const *string,
                    String const *separator);

#### Returns

### string_find ()

    String *
    string_find (String const *string,
                 String const *key);

#### Returns

### string_index ()

    ssize_t
    string_index (String const *string,
                  String const *key);

#### Returns

### string_replace ()

    int
    string_replace (String **string,
                    String const *what,
                    String const *by);

#### Returns

## Types and Values

### String

    typedef char String;