summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-symbol-ext
AgeCommit message (Collapse)Author
2021-01-12Changed packing format of inline symbols.Yukihiro "Matz" Matsumoto
To make inline symbols packed in 30 bits.
2021-01-09Remove `khash.h` leftovers.Yukihiro "Matz" Matsumoto
2020-11-26Fix loop condition in `mrb_sym_all_symbols`KOBAYASHI Shuji
2020-11-26Fix `Symbol.all_symbols` to include preallocated symbols; ref #5116Yukihiro "Matz" Matsumoto
2020-11-26Symbols should work with `MRB_USE_ALL_SYMBOLS`; fix #5116Yukihiro "Matz" Matsumoto
2020-11-21Rename `MRB_{ENABLE,DISABLE}_` to `MRB_{USE,NO}_`; close #5163KOBAYASHI Shuji
| Previous Name | New Name | |------------------------------|-------------------------| | MRB_ENABLE_ALL_SYMBOLS | MRB_USE_ALL_SYMBOLS | | MRB_ENABLE_SYMBOLL_ALL | MRB_USE_ALL_SYMBOLS | | MRB_ENABLE_CXX_ABI | MRB_USE_CXX_ABI | | MRB_ENABLE_CXX_EXCEPTION | MRB_USE_CXX_EXCEPTION | | MRB_ENABLE_DEBUG_HOOK | MRB_USE_DEBUG_HOOK | | MRB_DISABLE_DIRECT_THREADING | MRB_NO_DIRECT_THREADING | | MRB_DISABLE_STDIO | MRB_NO_STDIO | | ENABLE_LINENOISE | MRB_USE_LINENOISE | | ENABLE_READLINE | MRB_USE_READLINE | | DISABLE_MIRB_UNDERSCORE | MRB_NO_MIRB_UNDERSCORE | | DISABLE_GEMS | MRB_NO_GEMS | * `MRB_ENABLE_SYMBOLL_ALL` seems to be a typo, so it is fixed. * `MRB_` prefix is added to those without. * The previous names can also be used for compatibility.
2020-04-28Rename (and expose) UTF-8 related functions; ref #4712Yukihiro "Matz" Matsumoto
- mrb_utf8len() - returns the size of a UTF-8 char (in bytes) - mrb_utf8_strlen() - returns the length of a UTF-8 string (in char)
2019-11-16Revert "Implement Ruby2.7's frozen strings from `Symbol#to_s`"KOBAYASHI Shuji
This feature was reverted from Ruby 2.7.
2019-10-04Implement Ruby2.7's frozen strings from `Symbol#to_s`.Yukihiro "Matz" Matsumoto
2019-09-25Rename symbol-to-string functions; close #4684Yukihiro "Matz" Matsumoto
* mrb_sym2name -> mrb_sym_name * mrb_sym2name_len -> mrb_sym_name_len * mrb_sym2str -> mrb_sym_str
2019-06-28Use `__ENCODING__` in testsKOBAYASHI Shuji
It cannot be used for `String#size` test if judging whether or not `MRB_UTF8_STRING` is defined by result of `String#size`.
2019-02-12Disable `Symbol.all_symbols`.Yukihiro "Matz" Matsumoto
2019-02-12Implement inline packed symbols.Yukihiro "Matz" Matsumoto
Small symbols with all alphanumeric characters (<5) are packed in 32bit symbol integer a la base64. This means those small symbols are not listed in `Symbol.all_symbols`.
2019-02-04Fix `Symbol#size` for multi-byte characters with `MRB_UTF8_STRING`KOBAYASHI Shuji
Before: p :あ.size #=> 3 After: p :あ.size #=> 1
2018-09-20Move `Symbol#to_proc` to the core from `mruby-symbol-ext` gem.Yukihiro "Matz" Matsumoto
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.
2017-10-17Add `{String,Symbol}#casecmp?`; CRuby2.4Yukihiro "Matz" Matsumoto
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-06-28Rename extended xxxx class or module to xxxx class or module extensionJun Hiroe
2015-06-28Fix typo; Replace extensional with extendedJun Hiroe
2014-09-30O(1) mrb_sym2name_len(); close #2591Yukihiro "Matz" Matsumoto
instead of adding sym->name hash table, linear symbol table is added, and reduced name->sym hash table size.
2014-06-24Add `Symbol#intern`.take_cheeze
2014-06-23Reduce string creation in `Symbol#casecmp` by using `case!`.take_cheeze
2014-06-23Reduce string creation of `length`, `size`, `empty?` method of `Symbol` ↵take_cheeze
extension.
2014-06-23Reduce new string creation in `capitalize`, `downcase`, `upcase` method of ↵take_cheeze
`Symbol` class extension. Add test to check unmodified result is working.
2014-04-30use Kernel#__send__ insteard of Kernel#sendksss
2014-04-20Suppress test script syntax warning.take_cheeze
2014-04-20Merge pull request #2089 from ksss/sym-casecmpYukihiro "Matz" Matsumoto
Implement Symbol#casecmp
2014-04-20Implement Symbol#casecmpksss
2014-04-20Symbol class include Comparable module.ksss
2014-04-17Symbol#to_proc to support block call.Yukihiro "Matz" Matsumoto
based on a patch from @ksss; close #2071
2014-04-17raises an ArgumentError when calling #callYukihiro "Matz" Matsumoto
based on a patch from @ksss; close #2070
2014-04-02Use bool macro KHASH_DEFINE and KHASH_DECLAREksss
2014-03-17move summary of mrbgems in default gembox to its spectake_cheeze
2013-10-08add some methods to Symbolskandhas
2013-08-04Improve test of mruby-symbol-ext GEMDaniel Bovensiepen
2013-07-23"spec.author" is better for single-author gems.Tomoyuki Sahara
"spec.author=" expects a String represents a single author. "spec.authors=" expects an Array which is a list of multiple authors. http://guides.rubygems.org/specification-reference/
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-04-21Add Symbol#to_proc, Symbol.all_symbolsh2so5