tr!(p1, p2)
public
Translates str in place, using the same rules as String#tr. Returns str, or
nil if no changes were made.
Show source
/*
* call-seq:
* str.tr!(from_str, to_str) => str or nil
*
* Translates <i>str</i> in place, using the same rules as
* <code>String
* changes were made.
*/
static VALUE
rb_str_tr_bang(str, src, repl)
VALUE str, src, repl;
{
return tr_trans(str, src, repl, 0);
}