mruby/c String class More...
#include "value.h"Go to the source code of this file.
Data Structures | |
| struct | RString |
| String object. More... | |
Macros | |
| #define | MRBC_STRING_SIZE_T uint16_t |
| #define | RSTRING_LEN(str) |
| #define | RSTRING_PTR(str) |
Typedefs | |
| typedef struct RString | mrbc_string |
| String object. | |
Functions | |
| static mrbc_value | mrbc_string_new_cstr (struct VM *vm, const char *src) |
| static int | mrbc_string_compare (const mrbc_value *v1, const mrbc_value *v2) |
| static int | mrbc_string_size (const mrbc_value *str) |
| static char * | mrbc_string_cstr (const mrbc_value *v) |
| static int | mrbc_string_append_cstr (mrbc_value *s1, const char *s2) |
mruby/c String class
Copyright (C) 2015- Kyushu Institute of Technology. Copyright (C) 2015- Shimane IT Open-Innovation Center. This file is distributed under BSD 3-Clause License.
Definition in file c_string.h.
| #define MRBC_STRING_SIZE_T uint16_t |
Definition at line 33 of file c_string.h.
| #define RSTRING_LEN | ( | str | ) |
Definition at line 37 of file c_string.h.
| #define RSTRING_PTR | ( | str | ) |
Definition at line 38 of file c_string.h.
| typedef struct RString mrbc_string |
String object.
|
inlinestatic |
append c string (s1 += s2)
| s1 | pointer to target value 1 |
| s2 | pointer to char (c_str) |
Definition at line 128 of file c_string.h.
|
inlinestatic |
|
inlinestatic |
get c-language string (char *)
Definition at line 116 of file c_string.h.
|
inlinestatic |
constructor by c string
| vm | pointer to VM. |
| src | source string or NULL |
Definition at line 85 of file c_string.h.
|
inlinestatic |