instance method
decompose
Ruby on Rails 7.2.3
Since v4.0.13Signature
decompose(type, codepoints)
Decompose composed characters to the decomposed form.
Parameters
-
typereq -
codepointsreq
Source
# File activesupport/lib/active_support/multibyte/unicode.rb, line 12
def decompose(type, codepoints)
if type == :compatibility
codepoints.pack("U*").unicode_normalize(:nfkd).codepoints
else
codepoints.pack("U*").unicode_normalize(:nfd).codepoints
end
end
Defined in activesupport/lib/active_support/multibyte/unicode.rb line 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Multibyte::Unicode