https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/ruby/vendor_ruby/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/ruby/vendor_ruby/unf.rb
require 'unf/version'

module UNF
  autoload :Normalizer, 'unf/normalizer'
end

class String
  ascii_only =
    if method_defined?(:ascii_only?)
      'ascii_only?'
    else
      '/[^\x00-\x7f]/ !~ self'
    end

  # :method: to_nfc
  # Converts the string to NFC.

  # :method: to_nfd
  # Converts the string to NFD.

  # :method: to_nfkc
  # Converts the string to NFKC.

  # :method: to_nfkd
  # Converts the string to NFKD.

  [:nfc, :nfd, :nfkc, :nfkd].each { |form|
    eval %{
      def to_#{form.to_s}
        if #{ascii_only}
          self
        else
          UNF::Normalizer.normalize(self, #{form.inspect})
        end
      end
    }
  }
end

https://t.me/RX1948 - 2025