StringBuilder
I am a dynamically resizing builder for null-terminated byte strings.
StringBuilder
pub struct StringBuilder
Type of StringBuilders.
StringBuilder__new
pub fn StringBuilder__new(int capacity)
I create new builder, with the given initial capacity.
StringBuilder_drop
pub fn StringBuilder_drop(StringBuilder* self)
I drop the StringBuilder.
StringBuilder_into_chars
pub fn StringBuilder_into_chars(StringBuilder* self)
I consume the builder and produce a null-terminated byte string from it.
StringBuilder_into_int
pub fn StringBuilder_into_int(StringBuilder* self)
I consume the builder and produce a base-10 integer from it.
StringBuilder_length
pub fn StringBuilder_length(StringBuilder* self)
I return the number of characters in the buffer, as if by strlen.
StringBuilder_push
pub fn StringBuilder_push(StringBuilder* self, char c)
I push a single character into the buffer, which will be automatically extended if the character won't fit.
StringBuilder_push_str
pub fn StringBuilder_push_str(StringBuilder* self, char* str)
I push another string into the buffer, which will be automatically extended if needed.