1 | <?php |
||
18 | class Util{ |
||
19 | |||
20 | /** |
||
21 | * @param string $string |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | public static function isNumber(string $string):bool { |
||
38 | |||
39 | /** |
||
40 | * @param string $string |
||
41 | * |
||
42 | * @return bool |
||
43 | */ |
||
44 | public static function isAlphaNum(string $string):bool { |
||
61 | |||
62 | /** |
||
63 | * @param string $string |
||
64 | * |
||
65 | * @return bool |
||
66 | */ |
||
67 | public static function isKanji(string $string):bool { |
||
88 | |||
89 | /** |
||
90 | * @param int $data |
||
91 | * |
||
92 | * @return int |
||
93 | */ |
||
94 | public static function getBCHTypeInfo(int $data):int { |
||
97 | |||
98 | /** |
||
99 | * @param int $data |
||
100 | * |
||
101 | * @return int |
||
102 | */ |
||
103 | public static function getBCHTypeNumber(int $data):int{ |
||
106 | |||
107 | /** |
||
108 | * @param int $data |
||
109 | * @param int $bits |
||
110 | * @param int $mask |
||
111 | * |
||
112 | * @return int |
||
113 | */ |
||
114 | protected static function getBCHT(int $data, int $bits, int $mask):int { |
||
123 | |||
124 | /** |
||
125 | * @param int $data |
||
126 | * |
||
127 | * @return int |
||
128 | */ |
||
129 | public static function getBCHDigit(int $data):int { |
||
139 | |||
140 | /** |
||
141 | * @param int $typeNumber |
||
142 | * @param int $errorCorrectLevel |
||
143 | * |
||
144 | * @return array |
||
145 | * @throws \chillerlan\QRCode\QRCodeException |
||
146 | */ |
||
147 | public static function getRSBlocks(int $typeNumber, int $errorCorrectLevel):array { |
||
165 | |||
166 | /** |
||
167 | * @param int $typeNumber |
||
168 | * @param int $mode |
||
169 | * @param int $errorCorrectLevel |
||
170 | * |
||
171 | * @return int |
||
172 | * @throws \chillerlan\QRCode\QRCodeException |
||
173 | */ |
||
174 | public static function getMaxLength(int $typeNumber, int $mode, int $errorCorrectLevel):int { |
||
186 | |||
187 | } |
||
188 |