# File lib/active_support/multibyte/chars.rb, line 207 def index(needle, offset=0) index = @wrapped_string.index(needle, offset) index ? (self.class.u_unpack(@wrapped_string.slice(0...index)).size) : nil end