Lines Matching refs:i

651 			for ($i=0; $i<$len; $i++) {
652 $frameLine[$i] = (ord($frameLine[$i])&1)?'1':'0';
703 for ($i=0; $i < ($this->dataLength + $this->eccLength); $i++) {
714 for ($i=0; $i<$j; $i++) {
825 for ($i=0; $i < $endfor; ++$i) {
848 for ($i=0; $i < $endfor; ++$i) {
902 for ($i=0; $i<8; ++$i) {
909 $frame[8][$width - 1 - $i] = chr($v);
910 if ($i < 6) {
911 $frame[$i][8] = chr($v);
913 $frame[$i + 1][8] = chr($v);
917 for ($i=0; $i<7; ++$i) {
924 $frame[$width - 7 + $i][8] = chr($v);
925 if ($i == 0) {
928 $frame[8][6 - $i] = chr($v);
1087 for ($i=0; $i<$length; ++$i) {
1088 if ($this->runLength[$i] >= 5) {
1089 $demerit += (self::N1 + ($this->runLength[$i] - 5));
1091 if ($i & 1) {
1092 if (($i >= 3) AND ($i < ($length-2)) AND ($this->runLength[$i] % 3 == 0)) {
1093 $fact = (int)($this->runLength[$i] / 3);
1094 if (($this->runLength[$i-2] == $fact)
1095 AND ($this->runLength[$i-1] == $fact)
1096 AND ($this->runLength[$i+1] == $fact)
1097 AND ($this->runLength[$i+2] == $fact)) {
1098 if (($this->runLength[$i-3] < 0) OR ($this->runLength[$i-3] >= (4 * $fact))) {
1100 } elseif ((($i+3) >= $length) OR ($this->runLength[$i+3] >= (4 * $fact))) {
1185 for ($i = 0; $i < $howManuOut; ++$i) {
1192 foreach ($checked_masks as $i) {
1196 $blacks = $this->makeMaskNo($i, $width, $frame, $mask);
1197 $blacks += $this->writeFormatInformation($width, $mask, $i, $level);
1204 $bestMaskNum = $i;
1499 for ($i=0; $i < $words; ++$i) {
1500 $val = (ord($inputitem['data'][$i*3 ]) - ord('0')) * 100;
1501 $val += (ord($inputitem['data'][$i*3+1]) - ord('0')) * 10;
1502 $val += (ord($inputitem['data'][$i*3+2]) - ord('0'));
1527 for ($i=0; $i < $words; ++$i) {
1528 $val = (int)($this->lookAnTable(ord($inputitem['data'][$i*2])) * 45);
1529 $val += (int)($this->lookAnTable(ord($inputitem['data'][($i*2)+1])));
1549 for ($i=0; $i < $inputitem['size']; ++$i) {
1550 $inputitem['bstream'] = $this->appendNum($inputitem['bstream'], 8, ord($inputitem['data'][$i]));
1565 for ($i=0; $i<$inputitem['size']; $i+=2) {
1566 $val = (ord($inputitem['data'][$i]) << 8) | ord($inputitem['data'][$i+1]);
1692 for ($i=$item['size']-1; $i>=0; --$i) {
1693 $parity ^= $item['data'][$i];
1707 for ($i=0; $i<$size; ++$i) {
1708 if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1731 for ($i=0; $i<$size; ++$i) {
1732 if ($this->lookAnTable(ord($data[$i])) == -1) {
1801 for ($i=0; $i<$size; $i+=2) {
1802 $val = (ord($data[$i]) << 8) | ord($data[$i+1]);
2033 for ($i=0; $i<$padlen; ++$i) {
2034 $padbuf[$i] = ($i&1)?0x11:0xec;
2100 for ($i=0; $i<$bits; ++$i) {
2102 $bstream[$i] = 1;
2104 $bstream[$i] = 0;
2120 for ($i=0; $i<$size; ++$i) {
2123 if ($data[$i] & $mask) {
2197 for ($i=0; $i<$bytes; $i++) {
2204 $data[$i] = $v;
2281 for ($i = 1; $i <= self::QRSPEC_VERSION_MAX; ++$i) {
2282 $words = ($this->capacity[$i][self::QRCAP_WORDS] - $this->capacity[$i][self::QRCAP_EC][$level]);
2284 return $i;
2519 for ($i=1; $i < $wo; ++$i) {
2520 $frame[6][7+$i] = chr(0x90 | ($i & 1));
2521 $frame[7+$i][6] = chr(0x90 | ($i & 1));
2734 for ($i=0; $i<$rs['nn']; ++$i) {
2735 $rs['index_of'][$sr] = $i;
2736 $rs['alpha_to'][$i] = $sr;
2759 for ($i = 0,$root=$fcr*$prim; $i < $nroots; $i++, $root += $prim) {
2760 $rs['genpoly'][$i+1] = 1;
2762 for ($j = $i; $j > 0; --$j) {
2773 for ($i = 0; $i <= $nroots; ++$i) {
2774 $rs['genpoly'][$i] = $rs['index_of'][$rs['genpoly'][$i]];
2799 for ($i=0; $i < ($NN - $NROOTS - $PAD); $i++) {
2800 $feedback = $INDEX_OF[$data[$i] ^ $parity[0]];