ksss
ebf6da7e30
mrb_str_pool add string capa
2014-03-25 08:44:59 +09:00
Yukihiro "Matz" Matsumoto
13f0f597c8
Merge pull request #1934 from ksss/safe-name
...
src/string.c RESIZE_CAPA use safe name variables
2014-03-25 00:01:57 +09:00
Yukihiro "Matz" Matsumoto
d7d54b6e69
Fix Enumerable#cycle; ref #1933
...
* add multi value support
* `each` method may not rewind the sequence so that `cycle` should save elements
2014-03-24 23:58:21 +09:00
Yukihiro "Matz" Matsumoto
915b158e89
Merge pull request #1933 from suzukaze/add-enum.cycle
...
Add Enumerable#cycle
2014-03-24 23:49:01 +09:00
Yukihiro "Matz" Matsumoto
aa5920aaae
Enumerable#reverse_each should not rely on mruby-array-ext gem
2014-03-24 23:44:23 +09:00
ksss
e6e462c07d
src/string.c RESIZE_CAPA use safe name variables
...
This has a possibility of naming conflicts
2014-03-24 23:05:44 +09:00
Jun Hiroe
381f126f1b
Add Enumerable#cycle
2014-03-24 20:24:23 +09:00
Yukihiro "Matz" Matsumoto
c326ab877e
improve Enumerable#reverse_each to be efficient
2014-03-24 18:39:06 +09:00
Yukihiro "Matz" Matsumoto
23610d5489
Merge pull request #1932 from suzukaze/add-enum.reverse_each
...
Add Enumerable#reverse_each
2014-03-24 18:31:20 +09:00
Jun Hiroe
70bbe9a894
Add Enumerable#reverse_each
2014-03-24 18:03:37 +09:00
Yukihiro "Matz" Matsumoto
2ce232144b
Merge pull request #1930 from chasonr/unicode-escape
...
Implement \u notation for strings and regexes.
2014-03-24 17:35:32 +09:00
Yukihiro "Matz" Matsumoto
53d6df3fdb
fix multiple value handling; ref #1931
2014-03-24 17:31:43 +09:00
Jun Hiroe
7e41e2ed0e
Enumerable#each_with_object
2014-03-24 16:26:23 +09:00
chasonr
8162295ba2
Small correction to the test identification.
2014-03-23 22:31:49 -04:00
chasonr
509cbc51eb
Implement \u notation for strings and regexes.
...
This change adds the \u notation for double quoted strings and regular
expressions. It does not implement the \u notation for character literals.
Both the \uNNNN and \u{NNNN} notations are supported.
\uNNNN is implemented by emitting equivalent UTF-8; that is, "\u4000" is
equivalent to "\xE4\x80\x80".
Unlike CRuby, the \u{NNNN} notation allows only one character per pair of
braces; I see no way to lift this restriction without remodeling the parser.
2014-03-23 21:46:00 -04:00
Yukihiro "Matz" Matsumoto
b8d7f1ce7a
Merge pull request #1928 from ksss/fix-typo
...
Hash#__update fix typo
2014-03-24 09:17:42 +09:00
Yukihiro "Matz" Matsumoto
4592862b0d
remove unnecessary operator method call; ref #1927
2014-03-24 09:17:09 +09:00
Yukihiro "Matz" Matsumoto
e2da53c60d
Merge pull request #1927 from take-cheeze/count_crash
...
Count crashed tests in total tests count.
2014-03-24 09:15:33 +09:00
ksss
2981b4e3d9
Hash#__update fix typo
...
It's called by create Hash of over 126 keys
2014-03-24 08:43:44 +09:00
take_cheeze
db5d78e229
Count crashed tests in total tests count.
2014-03-24 03:22:17 +09:00
Yukihiro "Matz" Matsumoto
75eed54bba
move conditional out of loop
2014-03-24 00:24:02 +09:00
Yukihiro "Matz" Matsumoto
d05635e252
Enumerable#one? to prune iteration when count > 1; ref #1926
2014-03-24 00:13:37 +09:00
Yukihiro "Matz" Matsumoto
2a771760be
Merge pull request #1926 from suzukaze/add-enum.one
...
Add Enumerable#one?
2014-03-24 00:08:01 +09:00
Jun Hiroe
919ca8f42b
Add Enumerable#one?
2014-03-23 23:47:03 +09:00
Yukihiro "Matz" Matsumoto
e2bab8c71b
Merge pull request #1925 from ksss/hash-reject
...
Hash#{reject,reject!} support return Enumerator
2014-03-23 22:54:18 +09:00
ksss
d9068f0583
Hash#{reject,reject!} fix yield value
2014-03-23 20:13:49 +09:00
ksss
d8fc05fcb9
Hash#{reject,reject!} support return Enumerator
2014-03-23 20:11:20 +09:00
ksss
b0f10b5c3d
mrb_str_pool use embed-string
2014-03-23 08:04:54 +00:00
Yukihiro "Matz" Matsumoto
81e0c30cc5
Merge pull request #1921 from cubicdaiya/issues/not_use_old_macro
...
Use MRB_ARGS_REST() instead of ARGS_REST()
2014-03-23 16:36:47 +09:00
Yukihiro "Matz" Matsumoto
9beef5fdb0
Merge pull request #1923 from ksss/hash-enumerator-select
...
Hash#{select,select!} support return Enumerator
2014-03-23 16:36:19 +09:00
Yukihiro "Matz" Matsumoto
85d20127a1
Merge pull request #1922 from suzukaze/add-enum.none
...
Add Enumerable.none?
2014-03-23 16:35:55 +09:00
ksss
d09e4475bf
Hash#{select,select!} fix yield value
2014-03-23 13:31:26 +09:00
ksss
5e4626c9ba
Hash#{select,select!} support return Enumerator
...
if non block given
2014-03-23 13:31:26 +09:00
Jun Hiroe
d8d47b80c3
Support multiple values in Enumerable#none?
2014-03-23 13:06:18 +09:00
Jun Hiroe
1f709c1ef0
Add Enumerable#none?
2014-03-23 12:58:12 +09:00
cubicdaiya
8f8c174fc2
Use MRB_ARGS_REST() instead of ARGS_REST()
...
According to include/mruby.h,
/* compatibility macros; will be removed */
#define ARGS_REST() MRB_ARGS_REST()
2014-03-23 12:48:34 +09:00
Yukihiro "Matz" Matsumoto
ff6666632f
Merge pull request #1920 from suzukaze/add-enum.minmax_by
...
Add Enumerable#minmax_by
2014-03-23 12:12:32 +09:00
Jun Hiroe
5b31ee9a2a
Suppoert multiple values in Enumerable#minmax_by
2014-03-23 11:48:46 +09:00
Jun Hiroe
776a680e89
Enumerable#minmax_by
2014-03-23 11:41:23 +09:00
Yukihiro "Matz" Matsumoto
bbee56f284
Merge pull request #1915 from suzukaze/add-enum.minmax
...
Add Enumerable#minmax
2014-03-23 02:13:06 +09:00
Yukihiro "Matz" Matsumoto
76b2ba886a
Merge pull request #1916 from ksss/hash-enumerator
...
Hash#each_{key,value} support return Enumerator if non block given
2014-03-23 02:11:54 +09:00
ksss
5386cd9b9b
Hash#each_{key,value} support return Enumerator
...
if non block given
2014-03-23 00:22:22 +09:00
Yukihiro "Matz" Matsumoto
539d9cb855
need not to add assertion in STR_SET_LEN() where n is mrb_int
2014-03-22 22:33:09 +09:00
Jun Hiroe
77291f3531
Support multiple values in Enumerable#minmax
2014-03-22 22:06:39 +09:00
Jun Hiroe
5027aaaf4e
Add Enumerable#minmax
2014-03-22 21:52:08 +09:00
Yukihiro "Matz" Matsumoto
7182ef6358
Merge pull request #1914 from stomar/struct-emsg
...
use the same error message
2014-03-22 18:46:10 +09:00
Yukihiro "Matz" Matsumoto
6b43f71b21
Merge pull request #1913 from take-cheeze/fiber_unnecessary_get_args
...
Remove unnecessary mrb_get_args in fiber_switch.
2014-03-22 18:45:02 +09:00
Marcus Stollsteimer
4f0a163842
use the same error message
2014-03-22 09:51:46 +01:00
take_cheeze
cad9648bde
remove unnecessary mrb_get_args in fiber_switch
2014-03-22 17:51:43 +09:00
Yukihiro "Matz" Matsumoto
5488da6c44
Merge pull request #1907 from ksss/float-round
...
Float#round fix bug for infinity and nan cases
2014-03-22 16:58:56 +09:00