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