summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-12-01 16:18:01 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-12-01 16:18:01 +0900
commit36fabe104b68ffe887b1e3fc9405ce734a6d5798 (patch)
treef7de61a3e70bc98cab11bb6f6b8072059e355164 /include
parent0701236dacd1c108d79f9cc90665fb4069d43c55 (diff)
downloadmruby-36fabe104b68ffe887b1e3fc9405ce734a6d5798.tar.gz
mruby-36fabe104b68ffe887b1e3fc9405ce734a6d5798.zip
new API function mrb_string_value_len()
Diffstat (limited to 'include')
-rw-r--r--include/mruby/string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h
index bc3a89338..a66ba70ff 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -123,7 +123,8 @@ MRB_API mrb_value mrb_check_string_type(mrb_state *mrb, mrb_value str);
MRB_API mrb_value mrb_str_buf_new(mrb_state *mrb, size_t capa);
MRB_API const char *mrb_string_value_cstr(mrb_state *mrb, mrb_value *ptr);
-MRB_API const char *mrb_string_value_ptr(mrb_state *mrb, mrb_value ptr);
+MRB_API const char *mrb_string_value_ptr(mrb_state *mrb, mrb_value str);
+MRB_API mrb_int mrb_string_value_len(mrb_state *mrb, mrb_value str);
/*
* Duplicates a string object.