13 Commits

Author SHA1 Message Date
John Bampton 44db4f18d3 Remove # coding: utf-8 from Ruby files
The default script encoding is Encoding::UTF-8 after v2.0.

https://ruby-doc.org/core-2.1.2/Encoding.html#class-Encoding-label-Script+encoding
2022-10-27 04:43:13 +10:00
Yukihiro "Matz" Matsumoto e1c9e7efab Changed packing format of inline symbols.
To make inline symbols packed in 30 bits.
2021-01-12 14:51:33 +09:00
KOBAYASHI Shuji bc3176da63 Use __ENCODING__ in tests
It cannot be used for `String#size` test if judging whether or not `MRB_UTF8_STRING` is defined by result of `String#size`.
2019-06-28 19:26:29 +09:00
Yukihiro "Matz" Matsumoto 37bc343e0a Disable Symbol.all_symbols. 2019-02-12 17:30:34 +09:00
KOBAYASHI Shuji 69fd1a5925 Fix Symbol#size for multi-byte characters with MRB_UTF8_STRING
Before:

  p :あ.size  #=> 3

After:

  p :あ.size  #=> 1
2019-02-04 18:11:22 +09:00
Yukihiro "Matz" Matsumoto 3a9caad8eb Move Symbol#to_proc to the core from mruby-symbol-ext gem.
Even though `Symbol#to_proc` is not included in ISO standard, the
`some_method(&:method_name)` is used very widely and convenient.
So we moved it to the core.
2018-09-20 13:47:29 +09:00
take_cheeze 257725cecb Add Symbol#intern. 2014-06-24 21:44:22 +09:00
take_cheeze 0a6b54acd6 Reduce new string creation in capitalize, downcase, upcase method of Symbol class extension.
Add test to check unmodified result is working.
2014-06-23 19:51:27 +09:00
take_cheeze 0d2c307ef6 Suppress test script syntax warning. 2014-04-20 22:11:08 +09:00
ksss bb52324bd9 Implement Symbol#casecmp 2014-04-20 13:43:59 +09:00
skandhas 81c0fda8ec add some methods to Symbol 2013-10-08 21:47:11 +08:00
Daniel Bovensiepen a28c7c081a Improve test of mruby-symbol-ext GEM 2013-08-04 22:42:27 +08:00
h2so5 2fa8bf4683 Add Symbol#to_proc, Symbol.all_symbols 2013-04-21 18:01:09 +09:00