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