|
TRIO_STRING_PRIVATE trio_string_t * | TrioStringAlloc (TRIO_NOARGS) |
|
TRIO_STRING_PRIVATE BOOLEAN_T TrioStringGrow | TRIO_ARGS2 ((self, delta), trio_string_t *self, size_t delta) |
|
TRIO_STRING_PRIVATE BOOLEAN_T TrioStringGrowTo | TRIO_ARGS2 ((self, length), trio_string_t *self, size_t length) |
|
TRIO_STRING_PUBLIC trio_string_t *trio_string_create | TRIO_ARGS1 ((initial_size), int initial_size) |
|
TRIO_STRING_PUBLIC void trio_string_destroy | TRIO_ARGS1 ((self), trio_string_t *self) |
|
TRIO_STRING_PUBLIC char *trio_string_get | TRIO_ARGS2 ((self, offset), trio_string_t *self, int offset) |
|
TRIO_STRING_PUBLIC void trio_xstring_set | TRIO_ARGS2 ((self, buffer), trio_string_t *self, char *buffer) |
|
TRIO_STRING_PUBLIC int trio_string_append | TRIO_ARGS2 ((self, other), trio_string_t *self, trio_string_t *other) |
|
TRIO_STRING_PUBLIC int trio_xstring_append | TRIO_ARGS2 ((self, other), trio_string_t *self, TRIO_CONST char *other) |
|
TRIO_STRING_PUBLIC int trio_xstring_append_char | TRIO_ARGS2 ((self, character), trio_string_t *self, char character) |
|
TRIO_STRING_PUBLIC trio_string_t *trio_string_duplicate | TRIO_ARGS1 ((other), trio_string_t *other) |
|
TRIO_STRING_PUBLIC trio_string_t *trio_xstring_duplicate | TRIO_ARGS1 ((other), TRIO_CONST char *other) |
|
TRIO_STRING_PUBLIC int trio_string_equal_max | TRIO_ARGS3 ((self, max, other), trio_string_t *self, size_t max, trio_string_t *other) |
|
TRIO_STRING_PUBLIC int trio_xstring_equal_max | TRIO_ARGS3 ((self, max, other), trio_string_t *self, size_t max, TRIO_CONST char *other) |
|
TRIO_STRING_PUBLIC size_t trio_string_format_date_max | TRIO_ARGS4 ((self, max, format, datetime), trio_string_t *self, size_t max, TRIO_CONST char *format, TRIO_CONST struct tm *datetime) |
|
TRIO_STRING_PUBLIC char *trio_string_index | TRIO_ARGS2 ((self, character), trio_string_t *self, int character) |
|
Get a pointer to the content.
- Parameters
-
self | Dynamic string. |
offset | Offset into content. |
- Returns
- Pointer to the content.
Offset
can be zero, positive, or negative. If offset
is zero, then the start of the content will be returned. If offset
is positive, then a pointer to offset
number of characters from the beginning of the content is returned. If offset
is negative, then a pointer to offset
number of characters from the ending of the string, starting at the terminating zero, is returned.
Definition at line 1411 of file triostr.c.
1414{
1416
1418
1420 {
1422 {
1423 (
void)trio_string_length(self);
1424 }
1426 {
1428 {
1430 }
1431 }
1432 else
1433 {
1436 {
1438 }
1439 }
1441 }
1443}