Lines Matching refs:code
7 * Older code often used in library systems, sometimes in blood banks
13 * @param string $code
16 public function __construct($code, $printRatio, $quiet_zone_left = null, $quiet_zone_right = null)
18 $this->init($code, $printRatio);
28 * @param string $code
31 private function init($code, $printRatio)
56 $bararray = ['code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => []];
59 $code = strtoupper($code);
60 $len = strlen($code);
64 if (!isset($chr[$code[$i]])) {
65 throw new \Mpdf\Barcode\BarcodeException(sprintf('Invalid character "%s" in CODABAR barcode value "%s"', $code[$i], $code));
68 $seq = $chr[$code[$i]];