From 990845662cd4284a73ecc926c33cd1c8efb82354 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 19 Sep 2014 04:55:21 +0000 Subject: README.EXT: utf-8 string functions * README.EXT (String Functions): rb_utf8_str_new() and rb_utf8_str_new_cstr(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- README.EXT | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.EXT') diff --git a/README.EXT b/README.EXT index f7ee0022df..f4e4a20d14 100644 --- a/README.EXT +++ b/README.EXT @@ -231,6 +231,11 @@ rb_usascii_str_new_cstr(const char *ptr) :: Creates a new Ruby string with encoding US-ASCII. +rb_utf8_str_new(const char *ptr, long len) :: +rb_utf8_str_new_cstr(const char *ptr) :: + + Creates a new Ruby string with encoding UTF-8. + rb_str_resize(VALUE str, long len) :: Resizes Ruby string to len bytes. If str is not modifiable, this -- cgit v1.2.1