string

string

Functions

Types and Values

typedef String

Description

Functions

string_new ()

String *
string_new (String const *string);

string_new_append ()

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

string_new_appendv ()

String *
string_new_appendv (String const *string,
                    va_list ap);

string_new_format ()

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

string_new_formatv ()

String *
string_new_formatv (String const *format,
                    va_list ap);

string_new_length ()

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

string_new_replace ()

String *
string_new_replace (String const *string,
                    String const *what,
                    String const *by);

string_delete ()

void
string_delete (String *string);

string_get ()

String const *
string_get (String const *string);

string_get_length ()

size_t
string_get_length (String const *string);

string_get_size ()

size_t
string_get_size (String const *string);

string_set ()

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

string_append ()

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

string_append_format ()

int
string_append_format (String **string,
                      String const *format,
                      ...);

string_append_formatv ()

int
string_append_formatv (String **string,
                       String const *format,
                       va_list ap);

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);

string_compare_length ()

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

string_explode ()

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

string_find ()

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

string_index ()

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

string_rindex ()

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

string_replace ()

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

string_ltrim ()

size_t
string_ltrim (String *string,
              String const *which);

string_rtrim ()

size_t
string_rtrim (String *string,
              String const *which);

string_trim ()

size_t
string_trim (String *string,
             String const *which);

string_tolower ()

void
string_tolower (String *string);

string_toupper ()

void
string_toupper (String *string);

Types and Values

String

typedef char String;