28 string_reserve(&result, string_length(self));
31 string_append_char(&result, function(c));
36#pragma GCC diagnostic push
37#pragma GCC diagnostic ignored "-Wcast-function-type"
42 return string_map(self, (
char (*)(
char))tolower);
48 return string_map(self, (
char (*)(
char))toupper);
51#pragma GCC diagnostic pop
Dynamic string implementation.
#define string_foreach(STRING, Element)
Iterate over each character of the string.
string_t string_new(void)
Constructs an empty string.
array_t string_t
A string is an array of char.