PHP 8.2.31
Preview: common_193.rb Size: 616 B
//proc/thread-self/root/opt/alt/ruby20/lib64/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/backports/uri/common_193.rb

# :stopdoc:

require 'uri/common'

# Issue:
# http://bugs.ruby-lang.org/issues/5925
#
# Relevant commit:
# https://github.com/ruby/ruby/commit/edb7cdf1eabaff78dfa5ffedfbc2e91b29fa9ca1

module URI
  256.times do |i|
    TBLENCWWWCOMP_[i.chr] = '%%%02X' % i
  end
  TBLENCWWWCOMP_[' '] = '+'
  TBLENCWWWCOMP_.freeze

  256.times do |i|
    h, l = i>>4, i&15
    TBLDECWWWCOMP_['%%%X%X' % [h, l]] = i.chr
    TBLDECWWWCOMP_['%%%x%X' % [h, l]] = i.chr
    TBLDECWWWCOMP_['%%%X%x' % [h, l]] = i.chr
    TBLDECWWWCOMP_['%%%x%x' % [h, l]] = i.chr
  end
  TBLDECWWWCOMP_['+'] = ' '
  TBLDECWWWCOMP_.freeze
end

# :startdoc:

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
1.63 KB lrw-r--r-- 2019-12-05 22:59:18
Edit Download
1.66 KB lrw-r--r-- 2019-12-05 22:59:18
Edit Download
616 B lrw-r--r-- 2019-12-05 22:59:18
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).