Skip to content

Commit

Permalink
Add comments about how the conversion tables are generated
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongnianTao committed Jul 29, 2019
1 parent 5ffa926 commit 709bb7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/strings/gb2312_codeindex.h
@@ -1,4 +1,10 @@
#define GB2312_NULL -1

/* Conversion tables are generated according to mapping from
* unicode.org-mappings/EASTASIA/GB/GB2312.TXT
* at https://haible.de/bruno/charsets/conversion-tables/GB2312.html
* The following tables use EUC form for GB2312 characters. */

const static MVMGrapheme32 gb2312_index_to_cp_record[87][94]=
{{0x3000,0x3001,0x3002,0x30fb,0x2c9,0x2c7,0xa8,0x3003,0x3005,0x2015,0xff5e
,0x2016,0x2026,0x2018,0x2019,0x201c,0x201d,0x3014,0x3015,0x3008,0x3009,0x300a
Expand Down

0 comments on commit 709bb7e

Please sign in to comment.