1 | <?php |
||
18 | class Util{ |
||
19 | |||
20 | /** |
||
21 | * @param string $s |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | public static function isNumber($s){ |
||
41 | |||
42 | /** |
||
43 | * @param string $s |
||
44 | * |
||
45 | * @return bool |
||
46 | */ |
||
47 | public static function isAlphaNum($s){ |
||
63 | |||
64 | /** |
||
65 | * @param string $s |
||
66 | * |
||
67 | * @return bool |
||
68 | */ |
||
69 | public static function isKanji($s){ |
||
89 | |||
90 | /** |
||
91 | * @param int $data |
||
92 | * |
||
93 | * @return int |
||
94 | */ |
||
95 | public static function getBCHTypeInfo($data){ |
||
98 | |||
99 | /** |
||
100 | * @param int $data |
||
101 | * |
||
102 | * @return int |
||
103 | */ |
||
104 | public static function getBCHTypeNumber($data){ |
||
107 | |||
108 | /** |
||
109 | * @param int $data |
||
110 | * @param int $bits |
||
111 | * @param int $mask |
||
112 | * |
||
113 | * @return int |
||
114 | */ |
||
115 | protected static function getBCHT($data, $bits, $mask){ |
||
124 | |||
125 | /** |
||
126 | * @param int $data |
||
127 | * |
||
128 | * @return int |
||
129 | */ |
||
130 | public static function getBCHDigit($data){ |
||
140 | |||
141 | /** |
||
142 | * @param int $typeNumber |
||
143 | * @param int $errorCorrectLevel |
||
144 | * |
||
145 | * @return array |
||
146 | * @throws \chillerlan\QRCode\QRCodeException |
||
147 | */ |
||
148 | public static function getRSBlocks($typeNumber, $errorCorrectLevel){ |
||
169 | |||
170 | /** |
||
171 | * @param int $typeNumber |
||
172 | * @param int $mode |
||
173 | * @param int $ecLevel |
||
174 | * |
||
175 | * @return int |
||
176 | * @throws \chillerlan\QRCode\QRCodeException |
||
177 | */ |
||
178 | public static function getMaxLength($typeNumber, $mode, $ecLevel){ |
||
190 | |||
191 | |||
192 | } |
||
193 |