summaryrefslogtreecommitdiff
path: root/encoding_gb.js
diff options
context:
space:
mode:
authorerdgeist <>2008-06-13 07:34:18 +0000
committererdgeist <>2008-06-13 07:34:18 +0000
commit5caed717f2aa16898ebddd7ab4a703995490f07d (patch)
tree4bf97fc65fff45e5cb652087e06e583646a9a959 /encoding_gb.js
parent66c1e0672b829910d1e713be24c63b349d2d90ff (diff)
Reduce memory footprint of encoding routines and fix an iso-0201 problem.
Diffstat (limited to 'encoding_gb.js')
-rw-r--r--encoding_gb.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/encoding_gb.js b/encoding_gb.js
index 228fae1..72c7253 100644
--- a/encoding_gb.js
+++ b/encoding_gb.js
@@ -2,8 +2,8 @@
2// for codes 0x2121 - 0x296F and 0x3021 - 0x777E 2// for codes 0x2121 - 0x296F and 0x3021 - 0x777E
3// 3//
4// The unicode codes in second table have been normalized by 4// The unicode codes in second table have been normalized by
5// the amount of 19968 to save 5kBytes in this script, so the 5// the amount of 0x4e00 to save 5kBytes in this script, so the
6// actual value is 19968 + enc_gb2312_1[ x ] 6// actual value is 0x4e00 + enc_gb2312_1[ x ]
7 7
8function decode_gb2312( str ) { 8function decode_gb2312( str ) {
9 var outstring = ""; 9 var outstring = "";