@@ 367-372 (lines=6) @@ | ||
364 | chr(124) => '%Q', chr(125) => '%R', chr(126) => '%S', chr(127) => '%T'); |
|
365 | $code_ext = ''; |
|
366 | $clen = strlen($code); |
|
367 | for ($i = 0; $i < $clen; ++$i) { |
|
368 | if (ord($code{$i}) > 127) { |
|
369 | return false; |
|
370 | } |
|
371 | $code_ext .= $encode[$code{$i}]; |
|
372 | } |
|
373 | return $code_ext; |
|
374 | } |
|
375 | ||
@@ 490-495 (lines=6) @@ | ||
487 | chr(124) => chr(131).'Q', chr(125) => chr(131).'R', chr(126) => chr(131).'S', chr(127) => chr(131).'T'); |
|
488 | $code_ext = ''; |
|
489 | $clen = strlen($code); |
|
490 | for ($i = 0; $i < $clen; ++$i) { |
|
491 | if (ord($code{$i}) > 127) { |
|
492 | return false; |
|
493 | } |
|
494 | $code_ext .= $encode[$code{$i}]; |
|
495 | } |
|
496 | // checksum |
|
497 | $code .= $this->checksum_code93($code); |
|
498 | // add start and stop codes |