This function appends the passed-in Ruby String object to an
existing str_t instance.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
str_append(str, other->ptr, other->len);
}
+void str_append_rb_str(str_t *str, VALUE other)
+{
+ str_append(str, RSTRING_PTR(other), RSTRING_LEN(other));
+}
+
void str_swap(str_t **a, str_t **b)
{
str_t *c;
// appends the "other" string struct onto str
void str_append_str(str_t *str, str_t *other);
+// appends the "other" string (a Ruby String) onto str
+void str_append_rb_str(str_t *str, VALUE other)
+
// this is a temporary convenience measure
// later on if I develop in-place variants of some functions this won't be needed
void str_swap(str_t **a, str_t **b);