# File lib/active_support/multibyte/chars.rb, line 123 def self.consumes?(string) # Unpack is a little bit faster than regular expressions. string.unpack('U*') true rescue ArgumentError false end