mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
445086e56b
commit
990845662c
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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の長さは前
|
||||
|
|
Loading…
Reference in a new issue