X7ROOT File Manager
Current Path:
/opt/alt/ruby22/lib64/ruby/2.2.0
opt
/
alt
/
ruby22
/
lib64
/
ruby
/
2.2.0
/
π
..
π
English.rb
(6.42 KB)
π
abbrev.rb
(3.46 KB)
π
base64.rb
(2.63 KB)
π
benchmark.rb
(17.73 KB)
π
cgi
π
cgi.rb
(9.77 KB)
π
cmath.rb
(9.34 KB)
π
csv.rb
(82.45 KB)
π
date.rb
(980 B)
π
debug.rb
(29.08 KB)
π
delegate.rb
(10.71 KB)
π
digest
π
digest.rb
(2.79 KB)
π
drb
π
drb.rb
(19 B)
π
e2mmap.rb
(3.77 KB)
π
erb.rb
(26.35 KB)
π
expect.rb
(2.14 KB)
π
fiddle
π
fiddle.rb
(1.65 KB)
π
fileutils.rb
(47.46 KB)
π
find.rb
(2.48 KB)
π
forwardable.rb
(8.22 KB)
π
getoptlong.rb
(15.38 KB)
π
io
π
ipaddr.rb
(17.06 KB)
π
irb
π
irb.rb
(20.03 KB)
π
json
π
json.rb
(1.74 KB)
π
kconv.rb
(5.74 KB)
π
logger.rb
(20.33 KB)
π
mathn.rb
(3.84 KB)
π
matrix
π
matrix.rb
(53.14 KB)
π
mkmf.rb
(82.59 KB)
π
monitor.rb
(6.93 KB)
π
mutex_m.rb
(2 KB)
π
net
π
observer.rb
(5.8 KB)
π
open-uri.rb
(24.58 KB)
π
open3.rb
(20.55 KB)
π
openssl
π
openssl.rb
(528 B)
π
optionparser.rb
(28 B)
π
optparse
π
optparse.rb
(52.05 KB)
π
ostruct.rb
(8.66 KB)
π
pathname.rb
(15.58 KB)
π
pp.rb
(14.16 KB)
π
prettyprint.rb
(15.85 KB)
π
prime.rb
(13.11 KB)
π
profile.rb
(205 B)
π
profiler.rb
(4.51 KB)
π
pstore.rb
(14.55 KB)
π
psych
π
psych.rb
(14.88 KB)
π
racc
π
rake
π
rake.rb
(2.23 KB)
π
rbconfig
π
rdoc
π
rdoc.rb
(4.96 KB)
π
resolv-replace.rb
(1.73 KB)
π
resolv.rb
(72.06 KB)
π
rexml
π
rinda
π
ripper
π
ripper.rb
(2.53 KB)
π
rss
π
rss.rb
(2.84 KB)
π
rubygems
π
rubygems.rb
(31.85 KB)
π
scanf.rb
(23.54 KB)
π
securerandom.rb
(9.2 KB)
π
set.rb
(19.15 KB)
π
shell
π
shell.rb
(11.3 KB)
π
shellwords.rb
(5.96 KB)
π
singleton.rb
(4.02 KB)
π
socket.rb
(25.6 KB)
π
sync.rb
(7.25 KB)
π
syslog
π
tempfile.rb
(11.11 KB)
π
thwait.rb
(3.31 KB)
π
time.rb
(22.25 KB)
π
timeout.rb
(3.64 KB)
π
tmpdir.rb
(4.13 KB)
π
tracer.rb
(6.4 KB)
π
tsort.rb
(14.27 KB)
π
ubygems.rb
(268 B)
π
un.rb
(8.87 KB)
π
unicode_normalize
π
unicode_normalize.rb
(3.16 KB)
π
uri
π
uri.rb
(3.07 KB)
π
weakref.rb
(2.92 KB)
π
webrick
π
webrick.rb
(6.69 KB)
π
x86_64-linux
π
xmlrpc
π
xmlrpc.rb
(8.49 KB)
π
yaml
π
yaml.rb
(1.7 KB)
Editing: unicode_normalize.rb
# coding: utf-8 # Copyright Ayumu Nojima (ιε³Ά ζ©) and Martin J. DΓΌrst (duerst@it.aoyama.ac.jp) # additions to class String for Unicode normalization class String # === Unicode Normalization # # :call-seq: # str.unicode_normalize(form=:nfc) # # Returns a normalized form of +str+, using Unicode normalizations # NFC, NFD, NFKC, or NFKD. The normalization form used is determined # by +form+, which is any of the four values :nfc, :nfd, :nfkc, or :nfkd. # The default is :nfc. # # If the string is not in a Unicode Encoding, then an Exception is raised. # In this context, 'Unicode Encoding' means any of UTF-8, UTF-16BE/LE, # and UTF-32BE/LE, as well as GB18030, UCS_2BE, and UCS_4BE. Anything # else than UTF-8 is implemented by converting to UTF-8, # which makes it slower than UTF-8. # # _Examples_ # # "a\u0300".unicode_normalize #=> 'Γ ' (same as "\u00E0") # "a\u0300".unicode_normalize(:nfc) #=> 'Γ ' (same as "\u00E0") # "\u00E0".unicode_normalize(:nfd) #=> 'aΜ' (same as "a\u0300") # "\xE0".force_encoding('ISO-8859-1').unicode_normalize(:nfd) # #=> Encoding::CompatibilityError raised # def unicode_normalize(form = :nfc) require 'unicode_normalize/normalize.rb' unless defined? UnicodeNormalize ## The following line can be uncommented to avoid repeated checking for ## UnicodeNormalize. However, tests didn't show any noticeable speedup ## when doing this. This comment also applies to the commented out lines ## in String#unicode_normalize! and String#unicode_normalized?. # String.send(:define_method, :unicode_normalize, ->(form = :nfc) { UnicodeNormalize.normalize(self, form) } ) UnicodeNormalize.normalize(self, form) end # :call-seq: # str.unicode_normalize!(form=:nfc) # # Destructive version of String#unicode_normalize, doing Unicode # normalization in place. # def unicode_normalize!(form = :nfc) require 'unicode_normalize/normalize.rb' unless defined? UnicodeNormalize # String.send(:define_method, :unicode_normalize!, ->(form = :nfc) { replace(unicode_normalize(form)) } ) replace(unicode_normalize(form)) end # :call-seq: # str.unicode_normalized?(form=:nfc) # # Checks whether +str+ is in Unicode normalization form +form+, # which is any of the four values :nfc, :nfd, :nfkc, or :nfkd. # The default is :nfc. # # If the string is not in a Unicode Encoding, then an Exception is raised. # For details, see String#unicode_normalize. # # _Examples_ # # "a\u0300".unicode_normalized? #=> false # "a\u0300".unicode_normalized?(:nfd) #=> true # "\u00E0".unicode_normalized? #=> true # "\u00E0".unicode_normalized?(:nfd) #=> false # "\xE0".force_encoding('ISO-8859-1').unicode_normalized? # #=> Encoding::CompatibilityError raised # def unicode_normalized?(form = :nfc) require 'unicode_normalize/normalize.rb' unless defined? UnicodeNormalize # String.send(:define_method, :unicode_normalized?, ->(form = :nfc) { UnicodeNormalize.normalized?(self, form) } ) UnicodeNormalize.normalized?(self, form) end end
Upload File
Create Folder