Method: String#unicode_normalize!

Defined in:
string.c

#unicode_normalize!(form = :nfc) ⇒ self

Like String#unicode_normalize, except that the normalization is performed on self.

Related String#unicode_normalized?.

Returns:

  • (self)


11873
11874
11875
11876
11877
# File 'string.c', line 11873

static VALUE
rb_str_unicode_normalize_bang(int argc, VALUE *argv, VALUE str)
{
    return rb_str_replace(str, unicode_normalize_common(argc, argv, str, id_normalize));
}