Changeset 7655 for trunk/filemanager/tp/dompdf/lib/class.pdf.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/tp/dompdf/lib/class.pdf.php
r3019 r7655 2211 2211 $k = substr($k, 0, 256); 2212 2212 2213 for ($i = 0;$i<256; $i++) {2213 for ($i = 0;$i<256;++$i) { 2214 2214 2215 2215 $this->arc4.= chr($i); … … 2218 2218 $j = 0; 2219 2219 2220 for ($i = 0;$i<256; $i++) {2220 for ($i = 0;$i<256;++$i) { 2221 2221 2222 2222 $t = $this->arc4[$i]; … … 2246 2246 $out = ''; 2247 2247 2248 for ($i = 0;$i<$len; $i++) {2248 for ($i = 0;$i<$len;++$i) { 2249 2249 2250 2250 $a = ($a+1) %256; … … 2615 2615 $dtmp[$bits2[0]] = array(); 2616 2616 2617 for ($i = 1;$i<count($bits2); $i++) {2617 for ($i = 1;$i<count($bits2);++$i) { 2618 2618 2619 2619 $dtmp[$bits2[0]][] = $bits2[$i]; … … 2661 2661 $dtmp[$bits2[0]] = array(); 2662 2662 2663 for ($i = 1;$i<count($bits2); $i++) {2663 for ($i = 1;$i<count($bits2);++$i) { 2664 2664 2665 2665 $dtmp[$bits2[0]][] = $bits2[$i]; … … 2849 2849 if ($lastChar>0 && $num>$lastChar+1) { 2850 2850 2851 for ($i = $lastChar+1;$i<$num; $i++) {2851 for ($i = $lastChar+1;$i<$num;++$i) { 2852 2852 2853 2853 $widths[] = 0; … … 2879 2879 if (!$this->isUnicode) { 2880 2880 // With Unicode, widths array isn't used 2881 for ($i = $lastChar + 1; $i <= $charNum; $i++) {2881 for ($i = $lastChar + 1; $i <= $charNum; ++$i) { 2882 2882 2883 2883 $widths[] = 0; … … 3343 3343 $this->objects[$this->currentContents]['c'] .= "\n".sprintf('%.3F', $a0) .' '.sprintf('%.3F', $b0) .' m '; 3344 3344 3345 for ($i = 1; $i <= $nSeg; $i++) {3345 for ($i = 1; $i <= $nSeg; ++$i) { 3346 3346 3347 3347 // draw this bit of the total curve … … 3531 3531 if ($this->nStateStack) { 3532 3532 3533 for ($i = 1;$i <= $this->nStateStack; $i++) {3533 for ($i = 1;$i <= $this->nStateStack;++$i) { 3534 3534 3535 3535 $this->saveState($i); … … 3715 3715 $numbytes = 1; // number of octetc needed to represent the UTF-8 character 3716 3716 3717 for ($i = 0; $i < $length; $i++) {3717 for ($i = 0; $i < $length; ++$i) { 3718 3718 $c = ord($text{$i}); // get one string character at time 3719 3719 if (count($bytes) == 0) { // get starting octect … … 3741 3741 // compose UTF-8 bytes to a single unicode value 3742 3742 $c = $bytes[0]; 3743 for ($j = 1; $j < $numbytes; $j++) {3743 for ($j = 1; $j < $numbytes; ++$j) { 3744 3744 $c += ($bytes[$j] << (($numbytes - $j - 1) * 0x06)); 3745 3745 } … … 3866 3866 if ($text[$j] == '<') { 3867 3867 3868 $j++;3868 ++$j; 3869 3869 3870 3870 switch ($text[$j]) { … … 3872 3872 case '/': 3873 3873 3874 $j++;3874 ++$j; 3875 3875 3876 3876 if (mb_strlen($text) <= $j) { … … 3885 3885 case 'i': 3886 3886 3887 $j++;3887 ++$j; 3888 3888 3889 3889 if ($text[$j] == '>') { … … 3905 3905 3906 3906 // this this might be a callback function 3907 $j++;3907 ++$j; 3908 3908 3909 3909 $k = mb_strpos($text, '>', $j); … … 3992 3992 case 'i': 3993 3993 3994 $j++;3994 ++$j; 3995 3995 3996 3996 if ($text[$j] == '>') { … … 4010 4010 4011 4011 // this this might be a callback function 4012 $j++;4012 ++$j; 4013 4013 4014 4014 $k = mb_strpos($text, '>', $j); … … 4158 4158 4159 4159 /* 4160 for ($i = 0;$i<$len; $i++){4160 for ($i = 0;$i<$len;++$i){ 4161 4161 $f = 1; 4162 4162 $directive = 0; //$this->PRVTcheckTextDirective($text,$i,$f); … … 4282 4282 $len = mb_strlen($text); 4283 4283 4284 for ($i = 0; $i < $len; $i++) {4284 for ($i = 0; $i < $len; ++$i) { 4285 4285 $char = ord($text{$i}); 4286 4286 // check if we have to replace character … … 4402 4402 $tw = $width/$size*1000; 4403 4403 4404 for ($i = 0;$i<$len; $i++) {4404 for ($i = 0;$i<$len;++$i) { 4405 4405 4406 4406 $f = 1; … … 4850 4850 $ret = 0; 4851 4851 4852 for ($i = 0;$i<$num; $i++) {4852 for ($i = 0;$i<$num;++$i) { 4853 4853 4854 4854 $ret = $ret*256;
Note: See TracChangeset
for help on using the changeset viewer.