GRAYBYTE WORDPRESS FILE MANAGER6414

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby24/lib64/ruby/2.4.0/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby24/lib64/ruby/2.4.0//unicode_normalize.rb
# coding: utf-8
# frozen_string_literal: false

# 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)   #=> 'à' (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


[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:47:57
root / root
0755
cgi
--
March 03 2024 22:47:57
root / linksafe
0755
digest
--
March 03 2024 22:47:57
root / linksafe
0755
drb
--
March 03 2024 22:47:57
root / linksafe
0755
fiddle
--
March 03 2024 22:47:57
root / linksafe
0755
forwardable
--
March 03 2024 22:47:57
root / root
0755
io
--
March 03 2024 22:47:59
root / linksafe
0755
irb
--
March 03 2024 22:47:57
root / linksafe
0755
json
--
March 03 2024 22:47:59
root / linksafe
0755
matrix
--
March 03 2024 22:47:57
root / linksafe
0755
net
--
March 03 2024 22:47:57
root / linksafe
0755
openssl
--
March 03 2024 22:47:57
root / linksafe
0755
optparse
--
March 03 2024 22:47:57
root / linksafe
0755
psych
--
March 03 2024 22:48:00
root / linksafe
0755
racc
--
March 03 2024 22:47:57
root / linksafe
0755
rbconfig
--
March 03 2024 22:48:02
root / linksafe
0755
rdoc
--
March 03 2024 22:48:01
root / linksafe
0755
rexml
--
March 03 2024 22:47:57
root / linksafe
0755
rinda
--
March 03 2024 22:47:57
root / linksafe
0755
ripper
--
March 03 2024 22:47:57
root / linksafe
0755
rss
--
March 03 2024 22:47:57
root / linksafe
0755
rubygems
--
March 03 2024 22:48:02
root / linksafe
0755
shell
--
March 03 2024 22:47:57
root / linksafe
0755
syslog
--
March 03 2024 22:47:57
root / root
0755
unicode_normalize
--
March 03 2024 22:47:57
root / root
0755
uri
--
March 03 2024 22:47:57
root / linksafe
0755
webrick
--
March 03 2024 22:47:57
root / linksafe
0755
x86_64-linux
--
March 03 2024 22:48:00
root / root
0755
yaml
--
March 03 2024 22:47:57
root / linksafe
0755
English.rb
6.452 KB
March 31 2020 11:42:18
root / linksafe
0644
abbrev.rb
3.492 KB
March 31 2020 11:42:18
root / linksafe
0644
base64.rb
3.307 KB
March 31 2020 11:42:18
root / linksafe
0644
benchmark.rb
17.898 KB
March 31 2020 11:42:18
root / linksafe
0644
cgi.rb
9.804 KB
March 31 2020 11:42:18
root / linksafe
0644
cmath.rb
9.478 KB
March 31 2020 11:42:18
root / linksafe
0644
csv.rb
83.531 KB
March 31 2020 11:42:18
root / linksafe
0644
date.rb
0.98 KB
July 26 2023 14:47:32
root / linksafe
0644
debug.rb
29.976 KB
March 31 2020 11:42:18
root / linksafe
0644
delegate.rb
10.306 KB
March 31 2020 11:42:18
root / linksafe
0644
digest.rb
2.826 KB
July 26 2023 14:47:33
root / linksafe
0644
drb.rb
0.049 KB
March 31 2020 11:42:18
root / linksafe
0644
e2mmap.rb
3.944 KB
March 31 2020 11:42:18
root / linksafe
0644
erb.rb
27.246 KB
March 31 2020 11:42:18
root / linksafe
0644
expect.rb
2.174 KB
July 26 2023 14:47:48
root / linksafe
0644
fiddle.rb
1.683 KB
July 26 2023 14:47:35
root / linksafe
0644
fileutils.rb
44.056 KB
March 31 2020 11:42:18
root / linksafe
0644
find.rb
2.516 KB
March 31 2020 11:42:18
root / linksafe
0644
forwardable.rb
8.504 KB
March 31 2020 11:42:18
root / linksafe
0644
getoptlong.rb
15.409 KB
March 31 2020 11:42:18
root / linksafe
0644
ipaddr.rb
17.1 KB
March 31 2020 11:42:18
root / linksafe
0644
irb.rb
20.289 KB
March 31 2020 11:42:18
root / linksafe
0644
json.rb
1.767 KB
July 26 2023 14:47:36
root / linksafe
0644
kconv.rb
5.768 KB
July 26 2023 14:47:38
root / linksafe
0644
logger.rb
23.534 KB
March 31 2020 11:42:18
root / linksafe
0644
mathn.rb
3.424 KB
March 31 2020 11:42:18
root / linksafe
0644
matrix.rb
53.366 KB
March 31 2020 11:42:18
root / linksafe
0644
mkmf.rb
84.322 KB
July 26 2023 14:46:03
root / linksafe
0644
monitor.rb
7.02 KB
March 31 2020 11:42:18
root / linksafe
0644
mutex_m.rb
2.04 KB
March 31 2020 11:42:18
root / linksafe
0644
observer.rb
5.832 KB
March 31 2020 11:42:18
root / linksafe
0644
open-uri.rb
24.764 KB
March 31 2020 11:42:18
root / linksafe
0644
open3.rb
20.595 KB
March 31 2020 11:42:18
root / linksafe
0644
openssl.rb
0.435 KB
July 26 2023 14:47:47
root / linksafe
0644
optionparser.rb
0.058 KB
March 31 2020 11:42:18
root / linksafe
0644
optparse.rb
57.25 KB
March 31 2020 11:42:18
root / linksafe
0644
ostruct.rb
10.201 KB
March 31 2020 11:42:18
root / linksafe
0644
pathname.rb
16.078 KB
July 26 2023 14:47:47
root / linksafe
0644
pp.rb
14.431 KB
March 31 2020 11:42:18
root / linksafe
0644
prettyprint.rb
15.895 KB
March 31 2020 11:42:18
root / linksafe
0644
prime.rb
12.49 KB
March 31 2020 11:42:18
root / linksafe
0644
profile.rb
0.23 KB
March 31 2020 11:42:18
root / linksafe
0644
profiler.rb
4.539 KB
March 31 2020 11:42:18
root / linksafe
0644
pstore.rb
14.705 KB
March 31 2020 11:42:18
root / linksafe
0644
psych.rb
15.249 KB
July 26 2023 14:47:48
root / linksafe
0644
rdoc.rb
5.065 KB
March 31 2020 11:42:18
root / linksafe
0644
resolv-replace.rb
1.763 KB
March 31 2020 11:42:18
root / linksafe
0644
resolv.rb
73.479 KB
March 31 2020 11:42:18
root / linksafe
0644
ripper.rb
2.556 KB
July 26 2023 14:47:52
root / linksafe
0644
rss.rb
2.871 KB
March 31 2020 11:42:18
root / linksafe
0644
rubygems.rb
35.378 KB
March 31 2020 11:42:18
root / linksafe
0644
scanf.rb
23.558 KB
March 31 2020 11:42:18
root / linksafe
0644
securerandom.rb
7.483 KB
March 31 2020 11:42:18
root / linksafe
0644
set.rb
20.735 KB
March 31 2020 11:42:18
root / linksafe
0644
shell.rb
11.371 KB
March 31 2020 11:42:18
root / linksafe
0644
shellwords.rb
6.657 KB
March 31 2020 11:42:18
root / linksafe
0644
singleton.rb
4.056 KB
March 31 2020 11:42:18
root / linksafe
0644
socket.rb
42.99 KB
July 26 2023 14:47:56
root / linksafe
0644
sync.rb
7.295 KB
March 31 2020 11:42:18
root / linksafe
0644
tempfile.rb
10.802 KB
March 31 2020 11:42:18
root / linksafe
0644
thwait.rb
3.351 KB
March 31 2020 11:42:18
root / linksafe
0644
time.rb
22.355 KB
March 31 2020 11:42:18
root / linksafe
0644
timeout.rb
3.825 KB
March 31 2020 11:42:18
root / linksafe
0644
tmpdir.rb
4.295 KB
March 31 2020 11:42:18
root / linksafe
0644
tracer.rb
6.44 KB
March 31 2020 11:42:18
root / linksafe
0644
tsort.rb
14.299 KB
March 31 2020 11:42:18
root / linksafe
0644
ubygems.rb
0.291 KB
March 31 2020 11:42:18
root / linksafe
0644
un.rb
9.176 KB
March 31 2020 11:42:18
root / linksafe
0644
unicode_normalize.rb
3.196 KB
March 31 2020 11:42:18
root / linksafe
0644
uri.rb
3.1 KB
March 31 2020 11:42:18
root / linksafe
0644
weakref.rb
2.946 KB
March 31 2020 11:42:18
root / linksafe
0644
webrick.rb
6.72 KB
March 31 2020 11:42:18
root / linksafe
0644
yaml.rb
1.73 KB
March 31 2020 11:42:18
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF