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

Instance Method Details

#NFCObject Also known as: nfc



19
20
21
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 19

def NFC
  ::UTF8Proc.NFC(self)
end

#NFDObject Also known as: nfd



25
26
27
# File 'lib/utf8_proc/core_ext/string_jruby.rb', line 25

def NFD
  ::UTF8Proc.NFD(self)
end

#NFKCObject 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_CFObject 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

#NFKDObject 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