String utility class.
More...
| void * __constructor__ |
( |
void * |
self, |
|
|
char * |
data |
|
) |
| |
Build new string from data.
- Parameters
-
- Returns
- Initialized instance.
| void * copy |
( |
const void * |
self | ) |
|
Copy string in a new String object.
- Parameters
-
- Returns
- New String object.
| const char * cstr |
( |
const void * |
self | ) |
|
Get String content.
- Parameters
-
- Returns
- Pointer to String content.
| void format |
( |
void * |
self, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Format String content.
- Parameters
-
| self | String object. |
| fmt | Format string. |
| ... | Argument list used to format string. |
Uses vasprintf().
| size_t len |
( |
const void * |
self | ) |
|