refactoring

This commit is contained in:
smiley
2016-02-08 14:39:58 +01:00
parent 0fe303d37d
commit a70bc50436
5 changed files with 185 additions and 189 deletions
-12
View File
@@ -65,18 +65,6 @@ class QRConst{
const PAD0 = 0xEC;
const PAD1 = 0x11;
const CHAR_MAP = [
36 => ' ',
37 => '$',
38 => '%',
39 => '*',
40 => '+',
41 => '-',
42 => '.',
43 => '/',
44 => ':',
];
const MAX_LENGTH = [
[[ 41, 25, 17, 10], [ 34, 20, 14, 8], [ 27, 16, 11, 7], [ 17, 10, 7, 4]],
[[ 77, 47, 32, 20], [ 63, 38, 26, 16], [ 48, 29, 20, 12], [ 34, 20, 14, 8]],