Flowdock
method

grapheme_length

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - 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
Show source
Register or log in to add new notes.