summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2024-11-27 09:31:17 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-12-02 10:50:34 +0900
commit79cc3d26ed3a038750988070d81912ece31c735b (patch)
tree22618f1d3ed3b89fb272cd4c3416157371fda7b9 /spec/ruby/core
parent5514485e1336382b02f61c5e2f127ec9d437b201 (diff)
StringScanner#scan_integer support base 16 integers (#116)
Followup: https://github.com/ruby/strscan/pull/115 `scan_integer` is now implemented in Ruby as to efficiently handle keyword arguments without allocating a Hash. Given the goal of `scan_integer` is to more effciently parse integers without having to allocate an intermediary object, using `rb_scan_args` would defeat the purpose. Additionally, the C implementation now uses `rb_isdigit` and `rb_isxdigit`, because on Windows `isdigit` is locale dependent.
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions