class Mail::Multibyte::Chars

def g_length

Mail::Multibyte.mb_chars('क्षि').g_length # => 3
Mail::Multibyte.mb_chars('क्षि').length # => 4
Example:

Returns the number of grapheme clusters in the string.
def g_length
  Unicode.g_unpack(@wrapped_string).length
end