PageRenderTime 1607ms queryFilters 0ms Sphinxql 583ms GetByIds 788ms meta 0ms repositoryFilters 61ms languageFilters 1ms sourceFilters 37ms

20,915 results for 'php ord' (1607 ms)

Source

Language

Repository

DictionaryLoader.php https://bitbucket.org/michalmatoga/ebpl.git | PHP | 268 lines
1<?php
2/**
57        // $tiVersion = $tiiFile->readInt();
58        $tiVersion = ord($data[0]) << 24 | ord($data[1]) << 16 | ord($data[2]) << 8  | ord($data[3]);
59        $pos += 4;
61            $tiVersion != (int)0xFFFFFFFD /* 2.1+ format    */) {
62                require_once 'Zend/Search/Lucene/Exception.php';
63                throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');
66        // $indexTermCount = $tiiFile->readLong();
67        if (PHP_INT_SIZE > 4) {
68            $indexTermCount = ord($data[$pos]) << 56  |
68            $indexTermCount = ord($data[$pos]) << 56  |
69                              ord($data[$pos+1]) << 48  |
70                              ord($data[$pos+2]) << 40  |
96        // $skipInterval   = $tiiFile->readInt();
97        $skipInterval = ord($data[$pos]) << 24 | ord($data[$pos+1]) << 16 | ord($data[$pos+2]) << 8  | ord($data[$pos+3]);
98        $pos += 4;
restore.php https://bitbucket.org/asosso/joomla25.git | PHP | 5,744 lines
36// fnmatch not available on non-POSIX systems
37// Thanks to soywiz@php.net for this usefull alternative function [http://gr2.php.net/fnmatch]
38if (!function_exists('fnmatch')) {
616	                        $substr_chrs_c_2 = substr($chrs, $c, 2);
617	                        $ord_chrs_c = ord($chrs{$c});
618
5399
5400	// In restore.php mode, require restoration.php or fail
5401	if(!defined('KICKSTART'))
5467	{
5468		$password = AKFactory::get('kickstart.security.password', null);
5469		if(!empty($password))
5671	// Do I have to encrypt?
5672	$password = AKFactory::get('kickstart.security.password', null);
5673	if(!empty($password))
qrcode.php https://bitbucket.org/aaoliveira/html2pdf-plugin-for-cakephp.git | PHP | 2,875 lines
1183						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1184						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1185						if (($b22 | ($w22 ^ 1)) & 1) {
1278			}
1279			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1280		}
1312					$word = (ord($c) << 8) | ord($d);
1313					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1314						return QR_MODE_KJ;
1505				} else {
1506					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1507						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1760			for ($i=0; $i<$size; ++$i) {
1761				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1762					return false;
qrcode.php https://bitbucket.org/enurkov/prestashop.git | PHP | 2,866 lines
1169					$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1170					$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1171					if (($b22 | ($w22 ^ 1)) & 1) {
1264		}
1265		return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1266	}
1298				$word = (ord($c) << 8) | ord($d);
1299				if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1300					return QR_MODE_KJ;
1490			} else {
1491				if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1492					$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1748		for ($i=0; $i<$size; ++$i) {
1749			if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1750				return false;
qrcode.php https://bitbucket.org/rousmorgoth/wikibook.git | PHP | 2,875 lines
1183						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1184						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1185						if (($b22 | ($w22 ^ 1)) & 1) {
1278			}
1279			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1280		}
1312					$word = (ord($c) << 8) | ord($d);
1313					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1314						return QR_MODE_KJ;
1505				} else {
1506					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1507						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1760			for ($i=0; $i<$size; ++$i) {
1761				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1762					return false;
OpenId.php https://bitbucket.org/acidel/buykoala.git | PHP | 753 lines
232                if ($id[$i] >= '0' && $id[$i] <= '9') {
233                    $c = ord($id[$i]) - ord('0');
234                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
236                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
237                    $c = ord($id[$i]) - ord('a') + 10;
238                } else {
242                if ($id[$i] >= '0' && $id[$i] <= '9') {
243                    $c = ($c << 4) | (ord($id[$i]) - ord('0'));
244                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
244                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
245                    $c = ($c << 4) | (ord($id[$i]) - ord('A') + 10);
246                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
246                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
247                    $c = ($c << 4) | (ord($id[$i]) - ord('a') + 10);
248                } else {
DictionaryLoader.php https://bitbucket.org/acidel/buykoala.git | PHP | 268 lines
1<?php
2/**
57        // $tiVersion = $tiiFile->readInt();
58        $tiVersion = ord($data[0]) << 24 | ord($data[1]) << 16 | ord($data[2]) << 8  | ord($data[3]);
59        $pos += 4;
61            $tiVersion != (int)0xFFFFFFFD /* 2.1+ format    */) {
62                #require_once 'Zend/Search/Lucene/Exception.php';
63                throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');
66        // $indexTermCount = $tiiFile->readLong();
67        if (PHP_INT_SIZE > 4) {
68            $indexTermCount = ord($data[$pos]) << 56  |
68            $indexTermCount = ord($data[$pos]) << 56  |
69                              ord($data[$pos+1]) << 48  |
70                              ord($data[$pos+2]) << 40  |
96        // $skipInterval   = $tiiFile->readInt();
97        $skipInterval = ord($data[$pos]) << 24 | ord($data[$pos+1]) << 16 | ord($data[$pos+2]) << 8  | ord($data[$pos+3]);
98        $pos += 4;
qrcode.php https://bitbucket.org/moodle/moodle.git | PHP | 2,867 lines
1170					$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1171					$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1172					if (($b22 | ($w22 ^ 1)) & 1) {
1265		}
1266		return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1267	}
1299				$word = (ord($c) << 8) | ord($d);
1300				if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1301					return QR_MODE_KJ;
1491			} else {
1492				if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1493					$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1749		for ($i=0; $i<$size; ++$i) {
1750			if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1751				return false;
qrcode.php https://github.com/vappelgren/PrestaShop.git | PHP | 2,866 lines
1169					$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1170					$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1171					if (($b22 | ($w22 ^ 1)) & 1) {
1264		}
1265		return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1266	}
1298				$word = (ord($c) << 8) | ord($d);
1299				if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1300					return QR_MODE_KJ;
1490			} else {
1491				if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1492					$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1748		for ($i=0; $i<$size; ++$i) {
1749			if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1750				return false;
qrcode.php https://bitbucket.org/biadmin/tcexam | PHP | 2,866 lines
1175						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1176						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1177						if (($b22 | ($w22 ^ 1)) & 1) {
1270			}
1271			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1272		}
1304					$word = (ord($c) << 8) | ord($d);
1305					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1306						return QR_MODE_KJ;
1497				} else {
1498					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1499						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1752			for ($i=0; $i<$size; ++$i) {
1753				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1754					return false;
DictionaryLoader.php https://bitbucket.org/andrewjleavitt/magestudy | PHP | 269 lines
1<?php
2/**
57        // $tiVersion = $tiiFile->readInt();
58        $tiVersion = ord($data[0]) << 24 | ord($data[1]) << 16 | ord($data[2]) << 8  | ord($data[3]);
59        $pos += 4;
61            $tiVersion != (int)0xFFFFFFFD /* 2.1+ format    */) {
62                #require_once 'Zend/Search/Lucene/Exception.php';
63                throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');
66        // $indexTermCount = $tiiFile->readLong();
67        if (PHP_INT_SIZE > 4) {
68            $indexTermCount = ord($data[$pos]) << 56  |
68            $indexTermCount = ord($data[$pos]) << 56  |
69                              ord($data[$pos+1]) << 48  |
70                              ord($data[$pos+2]) << 40  |
96        // $skipInterval   = $tiiFile->readInt();
97        $skipInterval = ord($data[$pos]) << 24 | ord($data[$pos+1]) << 16 | ord($data[$pos+2]) << 8  | ord($data[$pos+3]);
98        $pos += 4;
qrcode.php https://bitbucket.org/sleininger/gtonline | PHP | 2,876 lines
1183						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1184						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1185						if (($b22 | ($w22 ^ 1)) & 1) {
1278			}
1279			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1280		}
1312					$word = (ord($c) << 8) | ord($d);
1313					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1314						return QR_MODE_KJ;
1505				} else {
1506					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1507						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1760			for ($i=0; $i<$size; ++$i) {
1761				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1762					return false;
qrcode.php https://bitbucket.org/sleininger/stock_online | PHP | 2,876 lines
1183						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1184						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1185						if (($b22 | ($w22 ^ 1)) & 1) {
1278			}
1279			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1280		}
1312					$word = (ord($c) << 8) | ord($d);
1313					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1314						return QR_MODE_KJ;
1505				} else {
1506					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1507						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1760			for ($i=0; $i<$size; ++$i) {
1761				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1762					return false;
qrcode.php https://bitbucket.org/sleininger/stock_online | PHP | 2,876 lines
1183						$b22 = ord($frameY[$x]) & ord($frameY[$x-1]) & ord($frameYM[$x]) & ord($frameYM[$x-1]);
1184						$w22 = ord($frameY[$x]) | ord($frameY[$x-1]) | ord($frameYM[$x]) | ord($frameYM[$x-1]);
1185						if (($b22 | ($w22 ^ 1)) & 1) {
1278			}
1279			return ((ord($str[$pos]) >= ord('0'))&&(ord($str[$pos]) <= ord('9')));
1280		}
1312					$word = (ord($c) << 8) | ord($d);
1313					if (($word >= 0x8140 && $word <= 0x9ffc) OR ($word >= 0xe040 && $word <= 0xebbf)) {
1314						return QR_MODE_KJ;
1505				} else {
1506					if ((ord($this->dataStr[$p]) >= ord('a')) AND (ord($this->dataStr[$p]) <= ord('z'))) {
1507						$this->dataStr[$p] = chr(ord($this->dataStr[$p]) - 32);
1760			for ($i=0; $i<$size; ++$i) {
1761				if ((ord($data[$i]) < ord('0')) OR (ord($data[$i]) > ord('9'))){
1762					return false;
Clickatell.php https://github.com/surflightroy/Ushahidi_Web.git | PHP | 389 lines
253            $ud = ord($c{0});
254        if (ord($c{0})>=192 && ord($c{0})<=223)
255            $ud = (ord($c{0})-192)*64 + (ord($c{1})-128);
256        if (ord($c{0})>=224 && ord($c{0})<=239)
257            $ud = (ord($c{0})-224)*4096 + (ord($c{1})-128)*64 + (ord($c{2})-128);
258        if (ord($c{0})>=240 && ord($c{0})<=247)
258        if (ord($c{0})>=240 && ord($c{0})<=247)
259            $ud = (ord($c{0})-240)*262144 + (ord($c{1})-128)*4096 + (ord($c{2})-128)*64 + (ord($c{3})-128);
260        if (ord($c{0})>=248 && ord($c{0})<=251)
260        if (ord($c{0})>=248 && ord($c{0})<=251)
261            $ud = (ord($c{0})-248)*16777216 + (ord($c{1})-128)*262144 + (ord($c{2})-128)*4096 + (ord($c{3})-128)*64 + (ord($c{4})-128);
262        if (ord($c{0})>=252 && ord($c{0})<=253)
262        if (ord($c{0})>=252 && ord($c{0})<=253)
263            $ud = (ord($c{0})-252)*1073741824 + (ord($c{1})-128)*16777216 + (ord($c{2})-128)*262144 + (ord($c{3})-128)*4096 + (ord($c{4})-128)*64 + (ord($c{5})-128);
264        if (ord($c{0})>=254 && ord($c{0})<=255) //error
OpenId.php https://github.com/laposa/onxshop.git | PHP | 759 lines
236                if ($id[$i] >= '0' && $id[$i] <= '9') {
237                    $c = ord($id[$i]) - ord('0');
238                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
240                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
241                    $c = ord($id[$i]) - ord('a') + 10;
242                } else {
246                if ($id[$i] >= '0' && $id[$i] <= '9') {
247                    $c = ($c << 4) | (ord($id[$i]) - ord('0'));
248                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
248                } else if ($id[$i] >= 'A' && $id[$i] <= 'F') {
249                    $c = ($c << 4) | (ord($id[$i]) - ord('A') + 10);
250                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
250                } else if ($id[$i] >= 'a' && $id[$i] <= 'f') {
251                    $c = ($c << 4) | (ord($id[$i]) - ord('a') + 10);
252                } else {
RdfParser.php https://github.com/oSoc13/tdt-core.git | PHP | 1,823 lines
13 * The parser is based on the PHP version of repat
14 * (http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_rdf_parser.html)
15 * by Luis Argerich (lrargerich@yahoo.com).
62                /* 1110#### 10###### 10###### = 224+x 128+x 128+x */
63                $nr = ((ord($utf8_char[0]) - 224) * 4096) + ((ord($utf8_char[1]) - 128) * 64) + (ord($utf8_char[2]) - 128);
64            } elseif ($bytes == 4) {
65                /* 1111#### 10###### 10###### 10###### = 240+x 128+x 128+x 128+x */
66                $nr = ((ord($utf8_char[0]) - 240) * 262144) + ((ord($utf8_char[1]) - 128) * 4096) + ((ord($utf8_char[2]) - 128) * 64) + (ord($utf8_char[3]) - 128);
67            }
759                            $subject_type, $subject, $predicate, 0, RDF_OBJECT_TYPE_RESOURCE, $attribute_value, '', $bag_id, $statements, '', '');
760                } else if (( $ordinal = $this->_is_rdf_ordinal($attribute_local_name) ) != 0) {
761                    $this->_report_statement(
1029
1030            $this->rdf_parser['top']['ordinal'] = $this->rdf_parser['top']['ordinal'];
1031
class.phpmailer.php https://github.com/michael-cannon/typo3-extensions.git | PHP | 1,573 lines
1<?php
2/*~ class.phpmailer.php
3.---------------------------------------------------------------------------.
3.---------------------------------------------------------------------------.
4|  Software: PHPMailer - PHP email class                                    |
5|   Version: 2.0.0 rc1                                                      |
569  function SetLanguage($lang_type, $lang_path = 'language/') {
570    if(file_exists($lang_path.'phpmailer.lang-'.$lang_type.'.php')) {
571      include($lang_path.'phpmailer.lang-'.$lang_type.'.php');
1466      'php4'  =>  'application/x-httpd-php',
1467      'php3'  =>  'application/x-httpd-php',
1468      'phtml' =>  'application/x-httpd-php',
1468      'phtml' =>  'application/x-httpd-php',
1469      'phps'  =>  'application/x-httpd-php-source',
1470      'js'    =>  'application/x-javascript',
ufpdf.php https://github.com/pabloeuy/motte.git | PHP | 475 lines
271	if(!empty($this->keywords))
272		$this->_out('/Keywords '.$this->_textstring($this->keywords));
273	if(!empty($this->creator))
307        $out .= "\xFF\xFD";
308        while (ord($txt{$i + 1}) >= 0x80 && ord($txt{$i + 1}) < 0xC0) { ++$i; }
309        continue;
313      // Fetch rest of sequence
314      while (ord($txt{$i + 1}) >= 0x80 && ord($txt{$i + 1}) < 0xC0) { ++$i; $q[] = ord($txt{$i}); }
315      
408        $out[] = 0xFFFD;
409        while (ord($txt{$i + 1}) >= 0x80 && ord($txt{$i + 1}) < 0xC0) { ++$i; }
410        continue;
414      // Fetch rest of sequence
415      while (ord($txt{$i + 1}) >= 0x80 && ord($txt{$i + 1}) < 0xC0) { ++$i; $q[] = ord($txt{$i}); }
416      
Ntriples.php https://github.com/smerrill/drupal-quickstart.git | PHP | 222 lines
80            case 1: /* 0####### (0-127) */
81                $r = ord($cUtf);
82                break;
83            case 2: /* 110##### 10###### = 192+x 128+x */
84                $r = ((ord($cUtf[0]) - 192) * 64) +
85                     (ord($cUtf[1]) - 128);
89                     ((ord($cUtf[1]) - 128) * 64) +
90                     (ord($cUtf[2]) - 128);
91                break;
166        if (is_object($value)) {
167            $value = $value->toRdfPhp();
168        }
204            $nt = '';
205            foreach ($graph->toRdfPhp() as $resource => $properties) {
206                foreach ($properties as $property => $values) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21