Module: Babosa::UTF8::UnicodeProxy

Extended by:
Proxy, UnicodeProxy
Included in:
UnicodeProxy
Defined in:
lib/babosa/utf8/unicode_proxy.rb

Overview

A UTF-8 proxy using the Unicode gem.

Constant Summary

Constants included from Proxy

Proxy::CP1252

Instance Method Summary collapse

Methods included from Proxy

tidy_bytes

Instance Method Details

#downcase(string) ⇒ Object


10
11
12
# File 'lib/babosa/utf8/unicode_proxy.rb', line 10

def downcase(string)
  Unicode.downcase(string)
end

#normalize_utf8(string) ⇒ Object


18
19
20
# File 'lib/babosa/utf8/unicode_proxy.rb', line 18

def normalize_utf8(string)
  Unicode.normalize_C(string)
end

#upcase(string) ⇒ Object


14
15
16
# File 'lib/babosa/utf8/unicode_proxy.rb', line 14

def upcase(string)
  Unicode.upcase(string)
end