Lines Matching refs:code

73         $code = $this->dispatch_encode($this->data, $this->options);
74 …intf('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %d %d">', $code['s'][0], $code['s'][1]);
75 foreach ($code['b'] as $y => $row) {
136 $code = $this->qr_encode_numeric($data, $version_group);
139 $code = $this->qr_encode_alphanumeric($data, $version_group);
142 $code = $this->qr_encode_binary($data, $version_group);
145 $code = $this->qr_encode_kanji($data, $version_group);
148 for ($i = 0; $i < 4; $i++) $code[] = 0;
149 while (count($code) % 8) $code[] = 0;
152 for ($i = 0, $n = count($code); $i < $n; $i += 8) {
154 if ($code[$i + 0]) $byte |= 0x80;
155 if ($code[$i + 1]) $byte |= 0x40;
156 if ($code[$i + 2]) $byte |= 0x20;
157 if ($code[$i + 3]) $byte |= 0x10;
158 if ($code[$i + 4]) $byte |= 0x08;
159 if ($code[$i + 5]) $byte |= 0x04;
160 if ($code[$i + 6]) $byte |= 0x02;
161 if ($code[$i + 7]) $byte |= 0x01;
199 $code = array(0, 0, 0, 1);
203 $code[] = $length & 0x2000;
204 $code[] = $length & 0x1000;
206 $code[] = $length & 0x0800;
207 $code[] = $length & 0x0400;
209 $code[] = $length & 0x0200;
210 $code[] = $length & 0x0100;
211 $code[] = $length & 0x0080;
212 $code[] = $length & 0x0040;
213 $code[] = $length & 0x0020;
214 $code[] = $length & 0x0010;
215 $code[] = $length & 0x0008;
216 $code[] = $length & 0x0004;
217 $code[] = $length & 0x0002;
218 $code[] = $length & 0x0001;
224 $code[] = $group & 0x200;
225 $code[] = $group & 0x100;
226 $code[] = $group & 0x080;
228 $code[] = $group & 0x040;
229 $code[] = $group & 0x020;
230 $code[] = $group & 0x010;
232 $code[] = $group & 0x008;
233 $code[] = $group & 0x004;
234 $code[] = $group & 0x002;
235 $code[] = $group & 0x001;
238 return $code;
244 $code = array(0, 0, 1, 0);
248 $code[] = $length & 0x1000;
249 $code[] = $length & 0x0800;
251 $code[] = $length & 0x0400;
252 $code[] = $length & 0x0200;
254 $code[] = $length & 0x0100;
255 $code[] = $length & 0x0080;
256 $code[] = $length & 0x0040;
257 $code[] = $length & 0x0020;
258 $code[] = $length & 0x0010;
259 $code[] = $length & 0x0008;
260 $code[] = $length & 0x0004;
261 $code[] = $length & 0x0002;
262 $code[] = $length & 0x0001;
270 $code[] = $ch & 0x400;
271 $code[] = $ch & 0x200;
272 $code[] = $ch & 0x100;
273 $code[] = $ch & 0x080;
274 $code[] = $ch & 0x040;
275 $code[] = $ch & 0x020;
276 $code[] = $ch & 0x010;
277 $code[] = $ch & 0x008;
278 $code[] = $ch & 0x004;
279 $code[] = $ch & 0x002;
280 $code[] = $ch & 0x001;
283 $code[] = $ch & 0x020;
284 $code[] = $ch & 0x010;
285 $code[] = $ch & 0x008;
286 $code[] = $ch & 0x004;
287 $code[] = $ch & 0x002;
288 $code[] = $ch & 0x001;
291 return $code;
296 $code = array(0, 1, 0, 0);
301 $code[] = $length & 0x8000;
302 $code[] = $length & 0x4000;
303 $code[] = $length & 0x2000;
304 $code[] = $length & 0x1000;
305 $code[] = $length & 0x0800;
306 $code[] = $length & 0x0400;
307 $code[] = $length & 0x0200;
308 $code[] = $length & 0x0100;
310 $code[] = $length & 0x0080;
311 $code[] = $length & 0x0040;
312 $code[] = $length & 0x0020;
313 $code[] = $length & 0x0010;
314 $code[] = $length & 0x0008;
315 $code[] = $length & 0x0004;
316 $code[] = $length & 0x0002;
317 $code[] = $length & 0x0001;
321 $code[] = $ch & 0x80;
322 $code[] = $ch & 0x40;
323 $code[] = $ch & 0x20;
324 $code[] = $ch & 0x10;
325 $code[] = $ch & 0x08;
326 $code[] = $ch & 0x04;
327 $code[] = $ch & 0x02;
328 $code[] = $ch & 0x01;
330 return $code;
335 $code = array(1, 0, 0, 0);
339 $code[] = $length & 0x1000;
340 $code[] = $length & 0x0800;
342 $code[] = $length & 0x0400;
343 $code[] = $length & 0x0200;
345 $code[] = $length & 0x0100;
346 $code[] = $length & 0x0080;
347 $code[] = $length & 0x0040;
348 $code[] = $length & 0x0020;
349 $code[] = $length & 0x0010;
350 $code[] = $length & 0x0008;
351 $code[] = $length & 0x0004;
352 $code[] = $length & 0x0002;
368 $code[] = $ch & 0x1000;
369 $code[] = $ch & 0x0800;
370 $code[] = $ch & 0x0400;
371 $code[] = $ch & 0x0200;
372 $code[] = $ch & 0x0100;
373 $code[] = $ch & 0x0080;
374 $code[] = $ch & 0x0040;
375 $code[] = $ch & 0x0020;
376 $code[] = $ch & 0x0010;
377 $code[] = $ch & 0x0008;
378 $code[] = $ch & 0x0004;
379 $code[] = $ch & 0x0002;
380 $code[] = $ch & 0x0001;
382 return $code;
394 $code = array();
396 $code[] = $ch & 0x80;
397 $code[] = $ch & 0x40;
398 $code[] = $ch & 0x20;
399 $code[] = $ch & 0x10;
400 $code[] = $ch & 0x08;
401 $code[] = $ch & 0x04;
402 $code[] = $ch & 0x02;
403 $code[] = $ch & 0x01;
406 $code[] = $ch & 0x80;
407 $code[] = $ch & 0x40;
408 $code[] = $ch & 0x20;
409 $code[] = $ch & 0x10;
410 $code[] = $ch & 0x08;
411 $code[] = $ch & 0x04;
412 $code[] = $ch & 0x02;
413 $code[] = $ch & 0x01;
416 $code[] = 0;
418 return $code;