Found 13 other functions taking a
stringbuf
argument:
Move down all the data from pos + len, effectively deleting the data at position 'pos' of length 'len'
Inserts the given string *before* (zero-based) 'index' in the stringbuf. If index is past the end of the buffer, the string is appended, just like sb_append()
Delete the bytes at index 'index' for length 'len' Has no effect if the index is past the end of the list.
Appends a null terminated string to the stringbuf
Like sb_append() except does not require a null terminated string. The length of 'str' is given as 'len' Note that in utf8 mode, characters will *not* be counted correctly if a partial utf8 sequence is added with sb_append_len()
Return an allocated copy of buffer and frees 'sb'. If 'sb' is empty, returns an allocated copy of "".
Clear to an empty buffer.
Returns the length of the buffer. Returns 0 for both a NULL buffer and an empty buffer.
Returns the utf8 character length of the buffer. Returns 0 for both a NULL buffer and an empty buffer.
Returns a pointer to the null terminated string in the buffer. Note this pointer only remains valid until the next modification to the string buffer. The returned pointer can be used to update the buffer in-place as long as care is taken to not overwrite the end of the buffer.
Returns an allocated copy of the stringbuf