Add `String#tr` and `#tr!` to `mruby-string-ext` gem; fix #4086
This patch is based on `mruby/c` implementation by Hirohito Higashi. We might need to add `#tr_s`, `#squeeze` and `#delete` as well. Adding them should not be too hard using functions we implemented here.
Showing
Please register or sign in to comment