grapheme_length()
Instance Public methods
Returns the number of grapheme clusters in the string.
'à¤à¥à¤·à¤¿'.mb_chars.length # => 4 'à¤à¥à¤·à¤¿'.mb_chars.grapheme_length # => 3
Returns the number of grapheme clusters in the string.
'à¤à¥à¤·à¤¿'.mb_chars.length # => 4 'à¤à¥à¤·à¤¿'.mb_chars.grapheme_length # => 3
Please login to continue.