mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/trans/escape.trans (hexstr): renamed from str1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
faa1387484
commit
a3cfd3233e
2 changed files with 13 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Sep 7 20:03:01 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* enc/trans/escape.trans (hexstr): renamed from str1.
|
||||||
|
|
||||||
Sun Sep 7 19:45:31 2008 Tanaka Akira <akr@fsij.org>
|
Sun Sep 7 19:45:31 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* enc/trans/escape.trans: use transcode_tblgen.
|
* enc/trans/escape.trans: use transcode_tblgen.
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
#include "transcode_data.h"
|
#include "transcode_data.h"
|
||||||
|
|
||||||
<%
|
<%
|
||||||
def str1(str)
|
def hexstr(str)
|
||||||
str.unpack("H*")[0]
|
str.unpack("H*")[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
transcode_tblgen("", "amp-escaped", [
|
transcode_tblgen("", "amp-escaped", [
|
||||||
["{00-25,27-FF}", :nomap],
|
["{00-25,27-FF}", :nomap],
|
||||||
["26", str1("&")]
|
["26", hexstr("&")]
|
||||||
])
|
])
|
||||||
|
|
||||||
transcode_tblgen("", "xml-text-escaped", [
|
transcode_tblgen("", "xml-text-escaped", [
|
||||||
["{00-25,27-3B,3D,3F-FF}", :nomap],
|
["{00-25,27-3B,3D,3F-FF}", :nomap],
|
||||||
["26", str1("&")],
|
["26", hexstr("&")],
|
||||||
["3C", str1("<")],
|
["3C", hexstr("<")],
|
||||||
["3E", str1(">")]
|
["3E", hexstr(">")]
|
||||||
])
|
])
|
||||||
|
|
||||||
transcode_tblgen("", "xml-attr-content-escaped", [
|
transcode_tblgen("", "xml-attr-content-escaped", [
|
||||||
["{00-21,23-25,27-3B,3D,3F-FF}", :nomap],
|
["{00-21,23-25,27-3B,3D,3F-FF}", :nomap],
|
||||||
["22", str1(""")],
|
["22", hexstr(""")],
|
||||||
["26", str1("&")],
|
["26", hexstr("&")],
|
||||||
["3C", str1("<")],
|
["3C", hexstr("<")],
|
||||||
["3E", str1(">")]
|
["3E", hexstr(">")]
|
||||||
])
|
])
|
||||||
|
|
||||||
map_xml_attr_quote = {}
|
map_xml_attr_quote = {}
|
||||||
|
|
Loading…
Reference in a new issue