pdf/barcode/c128cobject.php 1 location
|
@@ 239-244 (lines=6) @@
|
| 236 |
|
} |
| 237 |
|
$ret = 0; |
| 238 |
|
|
| 239 |
|
for ($i=0;$i<$len;$i++) { |
| 240 |
|
if ((ord($this->mValue[$i])<48) || (ord($this->mValue[$i])>57)) { |
| 241 |
|
$this->mError = "Code-128C is numeric only"; |
| 242 |
|
return false; |
| 243 |
|
} |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
if (($len%2) != 0) { |
| 247 |
|
$this->mError = "The length of barcode value must be even. You must pad the number with zeros."; |
pdf/barcode/i25object.php 1 location
|
@@ 88-93 (lines=6) @@
|
| 85 |
|
return false; |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
for ($i=0;$i<$len;$i++) { |
| 89 |
|
if ((ord($this->mValue[$i])<48) || (ord($this->mValue[$i])>57)) { |
| 90 |
|
$this->mError = "I25 is numeric only"; |
| 91 |
|
return false; |
| 92 |
|
} |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
if (($len%2) != 0) { |
| 96 |
|
$this->mError = "The length of barcode value must be even"; |