Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
String#unicode_normalize!
(?:nfc | :nfd | :nfkc | :nfkd form) -> self
unicode_normalize!(form = :nfc) → self
string.c
View on GitHub ↗
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));
}
Like String#unicode_normalize, except that the normalization is performed on self.
Related String#unicode_normalized?.
See also
#unicode_normalize
#unicode_normalized?
#undump
#unpack
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0