instance method
decompose
Ruby on Rails 8.0.4
Since v2.2.3Signature
decompose()
Performs canonical decomposition on all the characters.
'é'.length # => 1 'é'.mb_chars.decompose.to_s.length # => 2
Source
# File activesupport/lib/active_support/multibyte/chars.rb, line 135
def decompose
chars(Unicode.decompose(:canonical, @wrapped_string.codepoints.to_a).pack("U*"))
end
Defined in activesupport/lib/active_support/multibyte/chars.rb line 135
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Multibyte::Chars