* tool/transcode-tblgen.rb: change "illegal" to "invalid".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8841969485
commit
0f81455429
@ -1,3 +1,7 @@
|
|||||||
|
Mon Sep 1 02:48:28 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* tool/transcode-tblgen.rb: change "illegal" to "invalid".
|
||||||
|
|
||||||
Mon Sep 1 02:31:16 2008 Tanaka Akira <akr@fsij.org>
|
Mon Sep 1 02:31:16 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* tool/transcode-tblgen.rb (transcode_generated_code): defined for
|
* tool/transcode-tblgen.rb (transcode_generated_code): defined for
|
||||||
|
@ -405,21 +405,21 @@ def citrus_mskanji_cstomb(csid, index)
|
|||||||
index + 0x80
|
index + 0x80
|
||||||
when 2, 3
|
when 2, 3
|
||||||
row = index >> 8
|
row = index >> 8
|
||||||
raise "illegal byte sequence" if row < 0x21
|
raise "invalid byte sequence" if row < 0x21
|
||||||
if csid == 3
|
if csid == 3
|
||||||
if row <= 0x2F
|
if row <= 0x2F
|
||||||
offset = (row == 0x22 || row >= 0x26) ? 0xED : 0xF0
|
offset = (row == 0x22 || row >= 0x26) ? 0xED : 0xF0
|
||||||
elsif row >= 0x4D && row <= 0x7E
|
elsif row >= 0x4D && row <= 0x7E
|
||||||
offset = 0xCE
|
offset = 0xCE
|
||||||
else
|
else
|
||||||
raise "illegal byte sequence"
|
raise "invalid byte sequence"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
raise "illegal byte sequence" if row > 0x97
|
raise "invalid byte sequence" if row > 0x97
|
||||||
offset = (row < 0x5F) ? 0x81 : 0xC1
|
offset = (row < 0x5F) ? 0x81 : 0xC1
|
||||||
end
|
end
|
||||||
col = index & 0xFF
|
col = index & 0xFF
|
||||||
raise "illegal byte sequence" if (col < 0x21 || col > 0x7E)
|
raise "invalid byte sequence" if (col < 0x21 || col > 0x7E)
|
||||||
|
|
||||||
row -= 0x21
|
row -= 0x21
|
||||||
col -= 0x21
|
col -= 0x21
|
||||||
|
Loading…
x
Reference in New Issue
Block a user