зеркало из https://github.com/github/ruby.git
* 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:
Родитель
8841969485
Коммит
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>
|
||||
|
||||
* tool/transcode-tblgen.rb (transcode_generated_code): defined for
|
||||
|
|
|
@ -405,21 +405,21 @@ def citrus_mskanji_cstomb(csid, index)
|
|||
index + 0x80
|
||||
when 2, 3
|
||||
row = index >> 8
|
||||
raise "illegal byte sequence" if row < 0x21
|
||||
raise "invalid byte sequence" if row < 0x21
|
||||
if csid == 3
|
||||
if row <= 0x2F
|
||||
offset = (row == 0x22 || row >= 0x26) ? 0xED : 0xF0
|
||||
elsif row >= 0x4D && row <= 0x7E
|
||||
offset = 0xCE
|
||||
else
|
||||
raise "illegal byte sequence"
|
||||
raise "invalid byte sequence"
|
||||
end
|
||||
else
|
||||
raise "illegal byte sequence" if row > 0x97
|
||||
raise "invalid byte sequence" if row > 0x97
|
||||
offset = (row < 0x5F) ? 0x81 : 0xC1
|
||||
end
|
||||
col = index & 0xFF
|
||||
raise "illegal byte sequence" if (col < 0x21 || col > 0x7E)
|
||||
raise "invalid byte sequence" if (col < 0x21 || col > 0x7E)
|
||||
|
||||
row -= 0x21
|
||||
col -= 0x21
|
||||
|
|
Загрузка…
Ссылка в новой задаче