2 // I18N.CJK.DbcsConvert
5 // Alan Tam Siu Lung (Tam@SiuLung.com)
6 // Atsushi Enomoto <atsushi@ximian.com>
13 // This class assists other DBCS encoding classes in converting back
14 // and forth between JIS character sets and Unicode. It uses
15 // several large tables to do this, some of which are stored in
16 // the resource section of the assembly for efficient access.
17 internal class DbcsConvert
19 // Public access to the conversion tables.
24 internal DbcsConvert(string fileName) {
25 using (CodeTable table = new CodeTable(fileName)) {
26 n2u = table.GetSection(1);
27 u2n = table.GetSection(2);
31 internal static readonly DbcsConvert Gb2312 =
32 new DbcsConvert ("gb2312.table");
33 internal static readonly DbcsConvert Big5 =
34 new DbcsConvert ("big5.table");
35 internal static readonly DbcsConvert KS =
36 new DbcsConvert ("ks.table");