diff options
| author | Ralph Desir <[email protected]> | 2015-08-31 23:16:45 -0400 |
|---|---|---|
| committer | Ralph Desir <[email protected]> | 2015-08-31 23:16:45 -0400 |
| commit | d78d0017342ef42cc0d5db517446c805e23ae344 (patch) | |
| tree | 6b14ce83c83cd83ee5e26642ca6f4a2f983b645e /doc | |
| parent | 00dd2dfa3939d15e437d1779a7de23b1018a7cd7 (diff) | |
| download | mruby-d78d0017342ef42cc0d5db517446c805e23ae344.tar.gz mruby-d78d0017342ef42cc0d5db517446c805e23ae344.zip | |
Update string.h.md
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/api/mruby/string.h.md | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/doc/api/mruby/string.h.md b/doc/api/mruby/string.h.md index e2a10c2cf..428a3ca40 100644 --- a/doc/api/mruby/string.h.md +++ b/doc/api/mruby/string.h.md @@ -10,6 +10,36 @@ Adds to strings together. Converts pointer into a Ruby string.
### mrb_obj_as_string
```C
- mrb_obj_as_string(mrb_state *mrb, mrb_value obj);
+ mrb_value mrb_obj_as_string(mrb_state *mrb, mrb_value obj);
```
Returns an object as a Ruby string.
+### mrb_str_resize
+```C
+ mrb_value mrb_str_resize(mrb_state *mrb, mrb_value str, mrb_int len);
+```
+Resizes the string's length.
+### mrb_str_substr
+```C
+ mrb_value mrb_str_substr(mrb_state *mrb, mrb_value str, mrb_int beg, mrb_int len);
+```
+Returns a sub string.
+### mrb_string_type
+```C
+ mrb_value mrb_string_type(mrb_state *mrb, mrb_value str);
+```
+Returns a Ruby string type.
+### mrb_str_new_cstr
+```C
+ const char *mrb_string_value_cstr(mrb_state *mrb, mrb_value *ptr);
+```
+Returns a Ruby string as a C string.
+### mrb_str_dup
+```C
+ mrb_value mrb_str_dup(mrb_state *mrb, mrb_value str);
+```
+Duplicates a string object.
+### mrb_str_intern
+```C
+ mrb_value mrb_str_intern(mrb_state *mrb, mrb_value self);
+```
+Returns a symbol from a passed in string.
|
