summaryrefslogtreecommitdiff
path: root/enc/trans/gbk.trans
blob: 3c2cf0c1af9ccc251558bac2f69324b8b38988c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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 %>
}