Lines Matching refs:code
7 * Compact code similar to Code 39
13 * @param string $code
15 public function __construct($code, $quiet_zone_left = null, $quiet_zone_right = null)
17 $this->init($code);
27 * @param string $code
29 private function init($code)
82 $code = strtoupper($code);
119 $clen = strlen($code);
122 if (ord($code[$i]) > 127) {
123 throw new \Mpdf\Barcode\BarcodeException(sprintf('Invalid character "%s" in CODE93 barcode value "%s"', $code[$i], $code));
125 $code_ext .= $encode[$code[$i]];
132 $code = '*' . $code_ext . '*';
133 $bararray = ['code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => []];
135 $clen = strlen($code);
138 $char = ord($code[$i]);
141 throw new \Mpdf\Barcode\BarcodeException(sprintf('Invalid CODE93 barcode value "%s"', $code));
165 * @param string $code
168 protected function checksum($code)
179 $code = strtr($code, chr(128) . chr(131) . chr(129) . chr(130), '<=>?');
180 $len = strlen($code);
186 $k = array_keys($chars, $code[$i]);
195 $code .= $c;
201 $k = array_keys($chars, $code[$i]);