Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Translates str in place, using the same rules as String#tr. Returns str, or nil if no changes were made.
 
               static VALUE
rb_str_tr_bang(VALUE str, VALUE src, VALUE repl)
{
    return tr_trans(str, src, repl, 0);
}
            

Was this page useful?