Method: ActiveSupport::Multibyte::Unicode#decompose
- Defined in:
- lib/active_support/multibyte/unicode.rb
#decompose(type, codepoints) ⇒ Object
Decompose composed characters to the decomposed form.
24 25 26 27 28 29 30 |
# File 'lib/active_support/multibyte/unicode.rb', line 24 def decompose(type, codepoints) if type == :compatibility codepoints.pack("U*").unicode_normalize(:nfkd).codepoints else codepoints.pack("U*").unicode_normalize(:nfd).codepoints end end |