Module: UTF8Proc::JRuby::StringExtension
- Defined in:
- lib/utf8_proc/core_ext/string_jruby.rb
Overview
Module containing JRuby core extension methods for the String class.
You can activate this by using:
require "utf8_proc/core_ext/string"
It will load either C or Java extensions, depending on your Ruby version.
Instance Method Summary collapse
- #NFC ⇒ Object (also: #nfc)
- #NFD ⇒ Object (also: #nfd)
- #NFKC ⇒ Object (also: #nfkc)
- #NFKC_CF ⇒ Object (also: #nfkc_cf)
- #NFKD ⇒ Object (also: #nfkd)
- #normalize(form = :nfc) ⇒ Object
Instance Method Details
#NFC ⇒ Object Also known as: nfc
19 20 21 |
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 19 def NFC ::UTF8Proc.NFC(self) end |
#NFD ⇒ Object Also known as: nfd
25 26 27 |
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 25 def NFD ::UTF8Proc.NFD(self) end |
#NFKC ⇒ Object Also known as: nfkc
31 32 33 |
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 31 def NFKC ::UTF8Proc.NFKC(self) end |
#NFKC_CF ⇒ Object Also known as: nfkc_cf
43 44 45 |
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 43 def NFKC_CF ::UTF8Proc.NFKC_CF(self) end |
#NFKD ⇒ Object Also known as: nfkd
37 38 39 |
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 37 def NFKD ::UTF8Proc.NFKD(self) end |
#normalize(form = :nfc) ⇒ Object
49 50 51 |
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 49 def normalize(form = :nfc) ::UTF8Proc.normalize(self, form) end |