Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
g_length()
public
Returns the number of grapheme clusters in the string.
Example:
'à¤à¥à¤·à¤¿'.mb_chars.length
'à¤à¥à¤·à¤¿'.mb_chars.g_length
# File activesupport/lib/active_support/multibyte/chars.rb, line 405
def g_length
Unicode.g_unpack(@wrapped_string).length
end