diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 07:48:00 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-22 07:48:00 +0000 |
| commit | 4ab0b9959602363ebff6101729ea704280c049a1 (patch) | |
| tree | b1949c7c1e76b46a4c6adf172ac5af6e20d62f31 /include/ruby | |
| parent | f00a72d3662b1553c0463d234238b8526fdedf66 (diff) | |
| download | ruby-4ab0b9959602363ebff6101729ea704280c049a1.tar.gz ruby-4ab0b9959602363ebff6101729ea704280c049a1.tar.xz ruby-4ab0b9959602363ebff6101729ea704280c049a1.zip | |
* include/ruby/intern.h, sprintf.c (rb_str_catf, rb_str_vcatf): new
functions. [ruby-dev:35597]
* string.c (rb_str_capacity): new function to return the capacity.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/intern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 3d63c3877..9a7068854 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -523,6 +523,8 @@ void ruby_default_signal(int); VALUE rb_f_sprintf(int, const VALUE*); PRINTF_ARGS(VALUE rb_sprintf(const char*, ...), 1, 2); VALUE rb_vsprintf(const char*, va_list); +PRINTF_ARGS(VALUE rb_str_catf(VALUE, const char*, ...), 2, 3); +VALUE rb_str_vcatf(VALUE, const char*, va_list); VALUE rb_str_format(int, const VALUE *, VALUE); /* string.c */ VALUE rb_str_new(const char*, long); @@ -578,6 +580,7 @@ void rb_str_setter(VALUE, ID, VALUE*); VALUE rb_str_intern(VALUE); VALUE rb_sym_to_s(VALUE); VALUE rb_str_length(VALUE); +size_t rb_str_capacity(VALUE); #if defined __GNUC__ #define rb_str_new2(str) __extension__ ( \ { \ |
