From 5669902126ec202d2cb482e6d15c0c28bc6025cd Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 3 Sep 2013 13:03:54 +0000 Subject: 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 --- README.EXT | 1 + 1 file changed, 1 insertion(+) (limited to 'README.EXT') diff --git a/README.EXT b/README.EXT index dc3136c414..09354a149b 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. -- cgit v1.2.1