Masaki Muranaka
|
68652da6f6
|
Use mrb_true_or_false_value() / in mrb_str_include().
|
2013-03-19 11:04:23 +09:00 |
|
Masaki Muranaka
|
02a6334d0d
|
Use mrb_true_or_false_value() / in mrb_str_eql().
|
2013-03-19 11:04:23 +09:00 |
|
Masaki Muranaka
|
055cad0739
|
Use mrb_true_or_false_value() / in mrb_str_empty_p().
|
2013-03-19 11:04:23 +09:00 |
|
Masaki Muranaka
|
be5e5fd75e
|
Use mrb_true_or_false_value() / in mrb_str_equal_m().
|
2013-03-19 11:04:23 +09:00 |
|
Masaki Muranaka
|
11ed7a6128
|
Fix a warning happens on MRB_INT64 enabled.
|
2013-03-17 03:24:19 +09:00 |
|
Masaki Muranaka
|
3aa3b4af90
|
Remove stdlib.h from mruby.h. It is for portability (care for freestanding environments).
This is a first step. It will be reduced stdlib.h in each files later.
|
2013-03-16 21:29:39 +09:00 |
|
Masaki Muranaka
|
6ba298ed54
|
Remove unnecessory stdint.h.
|
2013-03-16 21:06:32 +09:00 |
|
Yukihiro Matz Matsumoto
|
08a0c9f328
|
add mrb_int overflow check for mrb_int
|
2013-03-14 23:12:21 +09:00 |
|
Yukihiro Matz Matsumoto
|
9d0bbdb7f8
|
use size_t for string length C API
|
2013-03-14 19:33:38 +09:00 |
|
Yukihiro Matz Matsumoto
|
535a5489c7
|
remove PARANOID from comments
|
2013-03-14 18:47:59 +09:00 |
|
Masaki Muranaka
|
fe057faf1b
|
Add the type check in mrb_str_to_cstr().
|
2013-03-13 17:28:26 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c9f3fd4779
|
Merge pull request #986 from monaka/pr-use-mrb_obj_alloc_string-instead-of-str_alloc
Remove str_alloc(). Use mrb_obj_alloc_string() instead.
|
2013-03-12 17:26:50 -07:00 |
|
Yukihiro "Matz" Matsumoto
|
3f4c2d451d
|
Merge pull request #985 from monaka/pr-remove-unused-code-20130312
Remove mrb_str_sublen() as it is not used.
|
2013-03-12 17:26:04 -07:00 |
|
Yukihiro "Matz" Matsumoto
|
e53628eb9d
|
Merge pull request #984 from monaka/pr-make-mrb_str_new2-obsolete
Remove mrb_str_new2().
|
2013-03-12 17:25:23 -07:00 |
|
Yukihiro "Matz" Matsumoto
|
7ba309600a
|
Merge pull request #982 from monaka/pr-make-MRB_STR_BUF_MIN_SIZE-configurable
Rename STR_BUF_MIN_SIZE to MRB_STR_BUF_MIN_SIZE. Make it configurable.
|
2013-03-12 17:24:02 -07:00 |
|
Masaki Muranaka
|
e7fe4ed499
|
Use suitable types for variables.
|
2013-03-12 20:50:02 +09:00 |
|
Masaki Muranaka
|
588f51508b
|
Remove str_alloc(). Use mrb_obj_alloc_string instead.
|
2013-03-12 18:21:23 +09:00 |
|
Masaki Muranaka
|
3af128c742
|
Remove mrb_str_sublen() as it is not used.
|
2013-03-12 18:08:40 +09:00 |
|
Masaki Muranaka
|
be506de3fc
|
Remove mrb_str_new2(). Use mrb_str_new_cstr() instead.
Make mrb_str_new_cstr() accept NULL pointer. It generates 0byte strings by NULL pointer.
|
2013-03-12 17:54:40 +09:00 |
|
Masaki Muranaka
|
e2d31ba3f3
|
Rename STR_BUF_MIN_SIZE to MRB_STR_BUF_MIN_SIZE. Make it configurable.
|
2013-03-12 17:10:18 +09:00 |
|
kano4
|
0751faf467
|
Fix indent in string.c
|
2013-03-11 21:16:33 +09:00 |
|
kano4
|
fbbe6309fc
|
Replace tabs with spaces
|
2013-03-05 23:06:44 +09:00 |
|
Masaki Muranaka
|
95c34a90ca
|
Remove RB_GC_GUARD(x) macro. See also mruby/mruby#948.
|
2013-03-05 13:00:17 +09:00 |
|
Masaki Muranaka
|
5a025813b5
|
Include stdio.h in mrbconf.h instead of C extension sources.
|
2013-03-05 01:38:51 +09:00 |
|
Carson McDonald
|
a306ac7651
|
The variable len isn't used anywhere.
|
2013-03-03 07:57:20 -05:00 |
|
Masaki Muranaka
|
e4231a0a33
|
Add typedef to structures that have mrb_ prefix. Use typedef-ed type instead of struct directly.
|
2013-03-01 14:28:22 +09:00 |
|
Masaki Muranaka
|
cb7cf4e795
|
Simplify mrb_range_beg_len(). Don't use OTHER macro.
|
2013-02-26 15:43:19 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
bbd50cca2f
|
Merge pull request #878 from monaka/pr-reduce-sprintf
Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.
|
2013-02-23 21:31:39 -08:00 |
|
Masaki Muranaka
|
b833df3d37
|
Remove commented out code. Remove redundant function calls.
|
2013-02-24 00:11:48 +09:00 |
|
Masaki Muranaka
|
dd62349749
|
Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.
|
2013-02-23 21:21:15 +09:00 |
|
Yukihiro Matz Matsumoto
|
7ce9cc3b83
|
String#split should honor limit arg
|
2013-02-18 18:47:25 +09:00 |
|
mattn
|
55ef8c50fb
|
REGEXP_CLASS
|
2013-02-15 10:22:10 +09:00 |
|
mattn
|
6aee0485fc
|
Should be OP_LOADL
|
2013-02-15 09:22:59 +09:00 |
|
mattn
|
b1a5146ea8
|
Pluggable Regexp
|
2013-02-15 04:38:27 +09:00 |
|
Akira Yumiyama
|
397d1e7aa9
|
add mrb_str_to_cstr
|
2013-02-11 21:02:35 +09:00 |
|
Masamitsu MURASE
|
eaf32e02e0
|
Restore arena in String#split.
|
2013-02-03 17:10:05 +09:00 |
|
Masaki Muranaka
|
3ab1afa07d
|
Remove API mrb_str_catf().
|
2013-01-29 17:21:50 +09:00 |
|
skandhas
|
15c96cf8b5
|
remove mrb_str_each_line form src/string.c
|
2013-01-11 15:38:55 +08:00 |
|
Masamitsu MURASE
|
72ae2150c7
|
Modify String#bytes.
It should return non-negative integer.
|
2012-12-19 23:54:00 +09:00 |
|
Masamitsu MURASE
|
a7182c20eb
|
Fix memory leak in String#to_i and String#to_f.
|
2012-12-10 02:29:38 +09:00 |
|
Yukihiro Matz Matsumoto
|
1d3f4b3ff7
|
Fix typos: invalide -> invalid; patch from @darashi; close #577
|
2012-12-01 12:10:29 +09:00 |
|
Yukihiro Matz Matsumoto
|
7cea9d7b94
|
int and mrb_int should not be mixed under -DMRB_INT64; may fix #557
|
2012-11-17 02:16:35 +09:00 |
|
Akira Yumiyama
|
d090f3eedb
|
adjust string length after String#chomp!
|
2012-11-08 15:13:23 +09:00 |
|
Yukihiro Matz Matsumoto
|
c903910c6b
|
replace RBASIC by mrb_basic
|
2012-11-04 13:56:08 +09:00 |
|
Yukihiro Matz Matsumoto
|
d2d2e9f5f9
|
add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p()
|
2012-11-04 05:02:39 +09:00 |
|
Yukihiro Matsumoto
|
fe36bdb7f1
|
add String#bytes to return bytes in a string
|
2012-11-01 06:12:11 +09:00 |
|
Masaki Muranaka
|
6069a33089
|
mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
|
2012-10-23 09:42:22 +09:00 |
|
Masaki Muranaka
|
dd10048094
|
Remove redundant sizeof(char). "Always sizeof(char) == 1" is described in ISO C specs.
|
2012-10-22 11:21:04 +09:00 |
|
Yukihiro Matsumoto
|
f0f113ef0e
|
should define String#+ (non inlined); close #469
|
2012-09-13 22:28:04 +09:00 |
|
Tomoyuki Sahara
|
32b88c72af
|
two more wrapper macros for ctype.h
we need them on the platform where 'char' is signed.
|
2012-09-12 14:02:58 +09:00 |
|