Method: ActiveSupport::Multibyte::Unicode#compose

Defined in:
lib/active_support/multibyte/unicode.rb

#compose(codepoints) ⇒ Object

Compose decomposed characters to the composed form.



33
34
35
# File 'lib/active_support/multibyte/unicode.rb', line 33

def compose(codepoints)
  codepoints.pack("U*").unicode_normalize(:nfc).codepoints
end