Flowdock
method

g_length

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveSupport::Multibyte::Chars

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   # => 4
'क्षि'.mb_chars.g_length # => 3
Show source
Register or log in to add new notes.