Class: Resedit::TextEscaper
- Inherits:
-
Object
- Object
- Resedit::TextEscaper
show all
- Defined in:
- lib/resedit/text/escaper.rb
Constant Summary
collapse
- STD_TABLE =
{0x5C=>"\\\\", 0x0A=>"\\n", 0x0D=>"\\r", 0x09=>"\\t", 0x07=>"\\a", 0x08=>"\\b", 0x0C=>"\\f", 0x0B=>"\\v", 0x1B=>"\\e"}
Instance Method Summary
collapse
Instance Method Details
#escape(line) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/resedit/text/escaper.rb', line 7
def escape(line)
out=""
line.each_byte {|b|
out += _escape(b)
}
return out
end
|
#unescape(line) ⇒ Object
15
|
# File 'lib/resedit/text/escaper.rb', line 15
def unescape(line); end
|