returns empty string with length -1
Usage:
string test = NewString();
writes char* into string data
returns 1 on success and 0 on fail to allocate memory
Usage:
result = StrSetdata(data, „Stuff...“);
returns length of char array *data
Usage:
result = StrLen(data);
returns first index of character (rexp)
Usage:
index = StrIndexOf(data, 'A');
returns last index of character (rexp)
Usage:
index = StrLastIndexOf(data, 'A');
returns new char array, filled by characters from char array *data from start index to end index or return empty string represented by STR_NULL which is character '\0'
Usage:
new = StrSubstring(data, 1, 6);
replace old characters with new cahracters
Usage:
StrReplace(data, 'y', 'i');
remove content of char array *data in structure string from heap and set length of string to -1
Usage:
StrFree(data);