aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb
blob: 916215c2ceaa1707a80b5d345ea289c8b827b628 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                                                                                    
                                                                  





                                                         
# Chars uses this handler when $KCODE is not set to 'UTF8'. Because this handler doesn't define any methods all call
# will be forwarded to String.
class ActiveSupport::Multibyte::Handlers::PassthruHandler #:nodoc:
  
  # Return the original byteoffset
  def self.translate_offset(string, byte_offset) #:nodoc:
    byte_offset
  end
end