summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-19 04:55:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-19 04:55:21 +0000
commit990845662cd4284a73ecc926c33cd1c8efb82354 (patch)
tree338ef570be0c047ce623afc9c4cac96446f6b7de
parent445086e56b4c847610506cf6bb072ef928329355 (diff)
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
-rw-r--r--README.EXT5
-rw-r--r--README.EXT.ja5
2 files changed, 10 insertions, 0 deletions
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
diff --git a/README.EXT.ja b/README.EXT.ja
index 0ab61abcbe..8027512c6a 100644
--- a/README.EXT.ja
+++ b/README.EXT.ja
@@ -257,6 +257,11 @@ rb_usascii_str_new_cstr(const char *ptr)
エンコーディングがUS-ASCIIのRubyの文字列を生成する.
+rb_utf8_str_new(const char *ptr, long len)
+rb_utf8_str_new_cstr(const char *ptr)
+
+ エンコーディングがUTF-8のRubyの文字列を生成する.
+
rb_str_resize(VALUE str, long len)
Rubyの文字列のサイズをlenバイトに変更する.strの長さは前