Class: XML::Encoding_ja::EUCHandler

Inherits:
XML::Encoding
  • Object
show all
Defined in:
lib/xml/encoding-ja.rb

Instance Method Summary collapse

Instance Method Details

#convert(s) ⇒ Object



20
21
22
# File 'lib/xml/encoding-ja.rb', line 20

def convert(s)
  Uconv.euctou2(s)
end

#map(i) ⇒ Object



15
16
17
18
19
# File 'lib/xml/encoding-ja.rb', line 15

def map(i)
  return i if i < 128
  return -1 if i < 160 or i == 255
  return -2 
end