grapheme_length()
Instance Public methods
Returns the number of grapheme clusters in the string.
1 2 | 'à¤à¥à¤·à¤¿' .mb_chars.length # => 4 'à¤à¥à¤·à¤¿' .mb_chars.grapheme_length # => 3 |
Returns the number of grapheme clusters in the string.
1 2 | 'à¤à¥à¤·à¤¿' .mb_chars.length # => 4 'à¤à¥à¤·à¤¿' .mb_chars.grapheme_length # => 3 |
Designed by : w10schools
service@w10schools.com
Please login to continue.