Ruby 4.1 リファレンスマニュアル

function rb_str_substr

[edit]
VALUE rb_str_substr(VALUE str, rb_len_t beg, rb_len_t len)

str[beg, len]