method

unpack_graphemes

Importance_1
v4.2.9 - Show latest stable - 0 notes - Class: ActiveSupport::Multibyte::Unicode
unpack_graphemes(string) public

Unpack the string at grapheme boundaries. Returns a list of character lists.

Unicode.unpack_graphemes('क्षि') # => [[2325, 2381], [2359], [2367]]
Unicode.unpack_graphemes('Café') # => [[67], [97], [102], [233]]
Show source
Register or log in to add new notes.