Class: XML::Encoding_ja::SJISHandler

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

Instance Method Summary collapse

Instance Method Details

#convert(s) ⇒ Object



30
31
32
# File 'lib/xml/encoding-ja.rb', line 30

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

#map(i) ⇒ Object



26
27
28
29
# File 'lib/xml/encoding-ja.rb', line 26

def map(i)
  return i if i < 128
  return -2 
end