method

g_unpack

rails latest stable - Class: ActiveSupport::Multibyte::Chars

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

g_unpack(string)
public

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

Example:

  Chars.g_unpack('क्षि') #=> [[2325, 2381], [2359], [2367]]
  Chars.g_unpack('Café') #=> [[67], [97], [102], [233]]