1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/enc/trans/gbk.trans

16 lines
308 B
Text
Raw Normal View History

#include "transcode_data.h"
<%
require "gbk-tbl"
transcode_tblgen "GBK", "UTF-8", [["{00-7f}", :nomap], *GBK_TO_UCS_TBL]
transcode_tblgen "UTF-8", "GBK", [["{00-7f}", :nomap], *GBK_TO_UCS_TBL.map {|a,b| [b,a] }]
%>
<%= transcode_generated_code %>
TRANS_INIT(gbk)
{
<%= transcode_register_code %>
}