3 class DynamicString : Array<char>
19 int len = strlen(value) + 1;
21 memcpy(s.array, value, len);
34 if(pos == -1) { Add('\0'); pos = 0; }
36 memcpy(&(this[pos]), s, len+1);
40 void concatf(char * format, ...)
42 // TODO: improve this to vsprinf directly in the Array<char> instead of calling concat
43 char string[MAX_F_STRING];
45 va_start(args, format);
46 vsprintf(string, format, args);
51 void concatx(typed_object object, ...)
53 // TODO: improve this to work directly on the Array<char> instead of calling PrintStdArgsToBuffer
54 char string[MAX_F_STRING];
57 va_start(args, object);
58 len = PrintStdArgsToBuffer(string, sizeof(string), object, args);