instiki/vendor/rails/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb

9 lines
336 B
Ruby
Raw Normal View History

2007-02-10 00:12:31 +01:00
# 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