22 #include <drizzled/function/str/alloc_buffer.h>
26 String* alloc_buffer(String *res,String *str,String *tmp_value,
29 if (res->alloced_length() < length)
31 if (str->alloced_length() >= length)
33 (void) str->copy(*res);
37 tmp_value->alloc(length);
38 (void) tmp_value->copy(*res);
39 tmp_value->length(length);