size(str)
Returns the number of codepoints in the string
# File activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb, line 237 def size(str) u_unpack(str).size end