mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 00:46:26 +08:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
391 B
C
23 lines
391 B
C
#include "ruby.h"
|
|
|
|
VALUE
|
|
bug_str_modify(VALUE str)
|
|
{
|
|
rb_str_modify(str);
|
|
return str;
|
|
}
|
|
|
|
VALUE
|
|
bug_str_modify_expand(VALUE str, VALUE expand)
|
|
{
|
|
rb_str_modify_expand(str, NUM2LEN(expand));
|
|
return str;
|
|
}
|
|
|
|
void
|
|
Init_string_modify(VALUE klass)
|
|
{
|
|
rb_define_method(klass, "modify!", bug_str_modify, 0);
|
|
rb_define_method(klass, "modify_expand!", bug_str_modify_expand, 1);
|
|
}
|