summaryrefslogtreecommitdiff
path: root/README.EXT
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-03 13:03:54 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-03 13:03:54 (GMT)
commit5669902126ec202d2cb482e6d15c0c28bc6025cd (patch)
tree3512b669204ad8c6fcd5255fbff0e2278a61b241 /README.EXT
parentad6731b0f9a3e41fac176f90ed5c2cbb43618433 (diff)
string.c: rb_enc_str_new_cstr
* string.c (rb_enc_str_new_cstr): new function to create a string from the C-string pointer with the specified encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.EXT b/README.EXT
index dc3136c..09354a1 100644
--- a/README.EXT
+++ b/README.EXT
@@ -218,6 +218,7 @@ rb_str_vcatf(VALUE str, const char* format, va_list ap) ::
rb_str_cat2(str, rb_vsprintf(format, ap)), respectively.
rb_enc_str_new(const char *ptr, long len, rb_encoding *enc) ::
+rb_enc_str_new_cstr(const char *ptr, rb_encoding *enc) ::
Creates a new Ruby string with the specified encoding.