$22 GRAYBYTE WORDPRESS FILE MANAGER $26

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby18/lib64/ruby/1.8/rexml/encodings/

HOME
Current File : /opt/alt/ruby18/lib64/ruby/1.8/rexml/encodings//UNILE.rb
module REXML
  module Encoding
    def encode_unile content
      array_utf8 = content.unpack("U*")
      array_enc = []
      array_utf8.each do |num|
        if ((num>>16) > 0)
          array_enc << ??
          array_enc << 0
        else
          array_enc << (num & 0xFF)
          array_enc << (num >> 8)
        end
      end
      array_enc.pack('C*')
    end

    def decode_unile(str)
      array_enc=str.unpack('C*')
      array_utf8 = []
      0.step(array_enc.size-1, 2){|i| 
        array_utf8 << (array_enc.at(i) + array_enc.at(i+1)*0x100)
      }
      array_utf8.pack('U*')
    end

    register(UNILE) do |obj|
      class << obj
        alias decode decode_unile
        alias encode encode_unile
      end
    end
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.48 PM
root / linksafe
0755
CP-1252.rb
4.037 KB
18 Apr 2008 7.22 AM
root / linksafe
0644
EUC-JP.rb
0.581 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
ICONV.rb
0.423 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
ISO-8859-1.rb
0.131 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
ISO-8859-15.rb
2.253 KB
18 Apr 2008 7.22 AM
root / linksafe
0644
SHIFT-JIS.rb
0.632 KB
6 Nov 2007 6.37 PM
root / linksafe
0644
SHIFT_JIS.rb
0.035 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
UNILE.rb
0.729 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
US-ASCII.rb
0.639 KB
12 Feb 2007 11.01 PM
root / linksafe
0644
UTF-16.rb
0.774 KB
18 Apr 2008 7.22 AM
root / linksafe
0644
UTF-8.rb
0.262 KB
12 Feb 2007 11.01 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF