method
grapheme_length
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::Multibyte::Chars
grapheme_length()public
Returns the number of grapheme clusters in the string.
'à¤à¥à¤·à¤¿'.mb_chars.length # => 4 'à¤à¥à¤·à¤¿'.mb_chars.grapheme_length # => 3