module Babosa::UTF8::ActiveSupportProxy

A UTF-8 proxy using Active Support's multibyte support.

Public Class Methods

normalize_utf8(string) click to toggle source
# File lib/babosa/utf8/active_support_proxy.rb, line 11
def self.normalize_utf8(string)
  normalize(string, :c)
end

Public Instance Methods

downcase(string) click to toggle source
# File lib/babosa/utf8/active_support_proxy.rb, line 16
def downcase(string)
  ActiveSupport::Multibyte::Chars.new(string).downcase.to_s
end
upcase(string) click to toggle source
# File lib/babosa/utf8/active_support_proxy.rb, line 20
def upcase(string)
  ActiveSupport::Multibyte::Chars.new(string).upcase.to_s
end