PageRenderTime 1379ms queryFilters 0ms Sphinxql 230ms GetByIds 1088ms meta 0ms repositoryFilters 8ms languageFilters 0ms sourceFilters 1ms

86,646 results for 'php ord' (1379 ms)

Source

Language

Repository

Excel5.php https://github.com/jcplat/console-seolan.git | PHP | 5,417 lines
1508				// bit: 24-22; mask: 0x01C00000; bottom line style
1509				$objStyle->getBorders()->getBottom()->setBorderStyle($this->_mapBorderStyle((0x01C00000 & $borderAndBackground) >> 22));
1510
1517				// bit: 2-0; mask: 0x00000007; top line style
1518				$objStyle->getBorders()->getTop()->setBorderStyle($this->_mapBorderStyle((0x00000007 & $borderLines) >> 0));
1519
1520				// bit: 5-3; mask: 0x00000038; left line style
1521				$objStyle->getBorders()->getLeft()->setBorderStyle($this->_mapBorderStyle((0x00000038 & $borderLines) >> 3));
1522
1523				// bit: 8-6; mask: 0x000001C0; right line style
1524				$objStyle->getBorders()->getRight()->setBorderStyle($this->_mapBorderStyle((0x000001C0 & $borderLines) >> 6));
1525
5142		}
5143		return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24;
5144	}
Class-Graphics.php https://github.com/smf-portal/SMF2.1.git | PHP | 700 lines
1<?php
2
9 * from the original author. To get it, please navigate to:
10 * http://www.yamasoft.com/php-gif.zip
11 *
16 * @copyright 2012 Simple Machines
17 * @license http://www.simplemachines.org/about/smf/license.php BSD
18 *
64		{
65			$this->SetCodeSize = ord($data[0]);
66			$data = substr($data, 1);
213
214			$count = ord($data[0]);
215			$data  = substr($data, 1);
261
262			$this->m_arColors[] = (ord($rgb[2]) << 16) + (ord($rgb[1]) << 8) + ord($rgb[0]);
263			$this->m_nColors++;
RSA.php https://github.com/kea/phpseclib.git | PHP | 2,591 lines
396     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
397     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
398     *
1331     * Private keys can be encrypted with a password.  To unset the password, pass in the empty string or false.
1332     * Or rather, pass in $password such that empty($password) && !is_string($password) is true.
1333     *
1340    {
1341        $this->password = $password;
1342    }
1842        for ($i = 0; $i < strlen($x); $i++) {
1843            $result |= ord($x[$i]) ^ ord($y[$i]);
1844        }
2143
2144        if (ord($em[0]) != 0 || ord($em[1]) > 2) {
2145            throw new \Exception('Decryption error', E_USER_NOTICE);
jsonrpc.inc.php https://github.com/usrio/php-mmcfe-ng.git | PHP | 1,584 lines
235	* @param string $data a json string
236	* @param bool $return_phpvals if true, do not rebuild jsonrpcval objects, but plain php values
237	* @param string $src_encoding
1516					/// @todo implement json-rpc extension for object serialization
1517					//$rs.='<struct php_class="' . $this->_php_class . "\">\n";
1518				//}
1539	/**
1540	* Given a string defining a php type or phpxmlrpc type (loosely defined: strings
1541	* accepted come from javadoc blocks), return corresponding phpxmlrpc type.
1542	* NB: for php 'resource' types returns empty string, since resources cannot be serialized;
1543	* for php class names returns 'struct', since php objects can be serialized as json structs;
1544	* for php arrays always retutn 'array', even though arrays sometiles serialize as json structs
1547	*/
1548    function php_2_jsonrpc_type($phptype)
1549    {
JSON.php https://github.com/christoff/as3-youtube-data-api.git | PHP | 645 lines
30 * @license     http://www.opensource.org/licenses/bsd-license.php
31 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
32 *
84		
85		$bytes = (ord($utf16{0}) << 8) | ord($utf16{1});
86
206
207                    $ord_var_c = ord($var{$c});
208
405						$substr_chrs_c_2 = substr($chrs, $c, 2);
406						$ord_chrs_c = ord($chrs{$c});
407						
447		
448							case ($ord_chrs_c >= 0x20) && ($ord_chrs_c <= 0x7F):
449								$utf8 .= $chrs{$c};
CJSON.php https://github.com/ktbartholomew/generator-craft.git | PHP | 710 lines
48* @license	 http://www.opensource.org/licenses/bsd-license.php
49* @link		http://pear.php.net/pepr/pepr-proposal-show.php?id=198
50*/
127
128					$ord_var_c = ord($var{$c});
129
153
154						case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)):
155							// characters U-00000000 - U-0000007F (same as ASCII)
611	 * @author Scott Michael Reynen <scott@randomchaos.com>
612	 * @link   http://www.randomchaos.com/document.php?source=php_and_unicode
613	 * @see	unicodeToUTF8()
649	 * @author Scott Michael Reynen <scott@randomchaos.com>
650	 * @link   http://www.randomchaos.com/document.php?source=php_and_unicode
651	 * @see	utf8ToUnicode()
RSA.php https://github.com/liuhui244671426/yaf.app.git | PHP | 2,673 lines
423     * For use with parsing XML formatted keys.  PHP's XML Parser functions use utilized - instead of PHP's DOM functions -
424     * because PHP's XML Parser functions work on PHP4 whereas PHP's DOM functions - although surperior - don't.
425     *
1393     * Private keys can be encrypted with a password.  To unset the password, pass in the empty string or false.
1394     * Or rather, pass in $password such that empty($password) && !is_string($password) is true.
1395     *
1402    {
1403        $this->password = $password;
1404    }
1887        for ($i = 0; $i < strlen($x); $i++) {
1888            $result |= ord($x[$i]) ^ ord($y[$i]);
1889        }
2202
2203        if (ord($em[0]) != 0 || ord($em[1]) > 2) {
2204            user_error('Decryption error');
securimage.php https://bitbucket.org/Noelfhim/no_ftp | PHP | 1,314 lines
26 *
27 * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
28 * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
53 1.0.3.1
54 - Error reading from wordlist in some cases caused words to be cut off 1 letter short
55
435		$this->charset       = 'ABCDEFGHKLMNPRSTUVWYZabcdefghklmnprstuvwyz23456789';
436		$this->wordlist_file = './words/words.txt';
437		$this->use_wordlist  = false;
1128			if ($i == 0) { // output header
1129				$out_data .= pack('C4VC8', ord('R'), ord('I'), ord('F'), ord('F'), $data_len + 36, ord('W'), ord('A'), ord('V'), ord('E'), ord('f'), ord('m'), ord('t'), ord(' '));
1130
1139
1140				$out_data .= pack('C4', ord('d'), ord('a'), ord('t'), ord('a'));
1141
RR.php https://bitbucket.org/IrrVoi/dropbox.git | PHP | 642 lines
1<?php
2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
6 *
7 * PHP Version 5
8 *
44 * @copyright 2010 Mike Pultz <mike@mikepultz.com>
45 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
46 * @version   SVN: $Id: RR.php 188 2013-03-31 01:25:46Z mike.pultz $
46 * @version   SVN: $Id: RR.php 188 2013-03-31 01:25:46Z mike.pultz $
47 * @link      http://pear.php.net/package/Net_DNS2
48 * @since     File available since Release 0.6.0
53/**
54 * This is the base class for DNS Resource Records
55 *
55 *
56 * Each resource record type (defined in RR/*.php) extends this class for
57 * base functionality.
Cast.php https://github.com/bigtunacan/quickbooks-php.git | PHP | 647 lines
98		{
99			$ord = ord($str{$i});
100			
100			
101			if ($ord != ord("\t") and 
102				$ord != ord("\n") and 
528			"/([\360-\367])([\200-\277])([\200-\277])([\200-\277])/e",
529			"'&#'.((ord('\\1')-240)*262144+(ord('\\2')-128)*4096+(ord('\\3')-128)*64+(ord('\\4')-128)).';'",
530			$string);
534			"/([\340-\357])([\200-\277])([\200-\277])/e",
535			"'&#'.((ord('\\1')-224)*4096+(ord('\\2')-128)*64+(ord('\\3')-128)).';'",
536			$string);
540			"/([\300-\337])([\200-\277])/e",
541			"'&#'.((ord('\\1')-192)*64+(ord('\\2')-128)).';'",
542			$string);
Subs-Graphics.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 1,045 lines
1<?php
2
50		- searches through the file to see if there's non-binary content.
51		- if extensiveCheck is true, searches for asp/php short tags as well.
52		- returns true on success, false on failure.
120
121	require_once($sourcedir . '/ManageAttachments.php');
122	removeAttachments(array('id_member' => $memID));
324
325	require_once($sourcedir . '/Subs-Package.php');
326	@ini_set('memory_limit', '90M');
529		{
530			$b = ord($palettedata{$j++});
531			$g = ord($palettedata{$j++});
912				if ($can_do_ttf)
913					$cur_x = max($fontcord[2], $fontcord[4]) + ($angle == 0 ? 0 : 3);
914			}
Class-Graphics.php https://github.com/dekoza/openshift-smf-2.0.7.git | PHP | 715 lines
1<?php
2
16	from the original author. To get it, please navigate to:
17	http://www.yamasoft.com/php-gif.zip
18*/
22
23/*	Classes used for reading gif files (in case PHP's GD doesn't provide the
24	proper gif-functions).
66		{
67			$this->SetCodeSize = ord($data[0]);
68			$data = substr($data, 1);
215
216			$count = ord($data[0]);
217			$data  = substr($data, 1);
263
264			$this->m_arColors[] = (ord($rgb[2]) << 16) + (ord($rgb[1]) << 8) + ord($rgb[0]);
265			$this->m_nColors++;
CJSON.php https://github.com/yiiexperts/yiiexperts.github.io.git | PHP | 710 lines
48* @license	 http://www.opensource.org/licenses/bsd-license.php
49* @link		http://pear.php.net/pepr/pepr-proposal-show.php?id=198
50*/
127
128					$ord_var_c = ord($var{$c});
129
153
154						case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)):
155							// characters U-00000000 - U-0000007F (same as ASCII)
611	 * @author Scott Michael Reynen <scott@randomchaos.com>
612	 * @link   http://www.randomchaos.com/document.php?source=php_and_unicode
613	 * @see	unicodeToUTF8()
649	 * @author Scott Michael Reynen <scott@randomchaos.com>
650	 * @link   http://www.randomchaos.com/document.php?source=php_and_unicode
651	 * @see	utf8ToUnicode()
WindJson.php https://github.com/cuijinquan/nextwind.git | PHP | 330 lines
225			$b = $string{$c};
226			$ordVar = ord($string{$c});
227			if (0x08 == $ordVar) {
244			} elseif (0xE0 == ($ordVar & 0xF0)) {
245				$char = pack('C*', $ordVar, ord($string{++$c}), ord($string{++$c}));
246				$ascii .= sprintf('\u%04s', bin2hex(WindConvert::utf8ToUTF16BE($char)));
247			} elseif (0xF0 == ($ordVar & 0xF8)) {
248				$char = pack('C*', $ordVar, ord($string{++$c}), ord($string{++$c}), ord($string{++$c}));
249				$ascii .= sprintf('\u%04s', bin2hex(WindConvert::utf8ToUTF16BE($char)));
250			} elseif (0xF8 == ($ordVar & 0xFC)) {
251				$char = pack('C*', $ordVar, ord($string{++$c}), ord($string{++$c}), ord($string{++$c}), 
252					ord($string{++$c}));
254			} elseif (0xFC == ($ordVar & 0xFE)) {
255				$char = pack('C*', $ordVar, ord($string{++$c}), ord($string{++$c}), ord($string{++$c}), 
256					ord($string{++$c}), ord($string{++$c}));
excel_reader2.php http://php-excel-reader.googlecode.com/svn/trunk/ | PHP | 1,738 lines
68function GetInt4d($data, $pos) {
69	$value = ord($data[$pos]) | (ord($data[$pos+1])	<< 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
70	if ($value>=4294967294) {
1213
1214						$border = ord($data[$pos+14]) | (ord($data[$pos+15]) << 8) | (ord($data[$pos+16]) << 16) | (ord($data[$pos+17]) << 24);
1215						$xf['borderLeft'] = $this->lineStyles[($border & 0xF)];
1221						$xf['borderRightColor'] = ($border & 0x3F800000) >> 23;
1222						$border = (ord($data[$pos+18]) | ord($data[$pos+19]) << 8);
1223
1423					$column = ord($data[$spos+2]) | ord($data[$spos+3])<<8;
1424					if ((ord($data[$spos+6])==0) && (ord($data[$spos+12])==255) && (ord($data[$spos+13])==255)) {
1425						//String formula. Result follows in a STRING record
1727	function _GetInt4d($data, $pos) {
1728		$value = ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
1729		if ($value>=4294967294) {
excel_reader.php http://scp-soft.googlecode.com/svn/trunk/ | PHP | 1,611 lines
67function GetInt4d($data, $pos) {
68	$value = ord ( $data [$pos] ) | (ord ( $data [$pos + 1] ) << 8) | (ord ( $data [$pos + 2] ) << 16) | (ord ( $data [$pos + 3] ) << 24);
69	if ($value >= 4294967294) {
1084					
1085					$border = ord ( $data [$pos + 14] ) | (ord ( $data [$pos + 15] ) << 8) | (ord ( $data [$pos + 16] ) << 16) | (ord ( $data [$pos + 17] ) << 24);
1086					$xf ['borderLeft'] = $this->lineStyles [($border & 0xF)];
1092					$xf ['borderRightColor'] = ($border & 0x3F800000) >> 23;
1093					$border = (ord ( $data [$pos + 18] ) | ord ( $data [$pos + 19] ) << 8);
1094					
1301					$column = ord ( $data [$spos + 2] ) | ord ( $data [$spos + 3] ) << 8;
1302					if ((ord ( $data [$spos + 6] ) == 0) && (ord ( $data [$spos + 12] ) == 255) && (ord ( $data [$spos + 13] ) == 255)) {
1303						//String formula. Result follows in a STRING record
1600	function _GetInt4d($data, $pos) {
1601		$value = ord ( $data [$pos] ) | (ord ( $data [$pos + 1] ) << 8) | (ord ( $data [$pos + 2] ) << 16) | (ord ( $data [$pos + 3] ) << 24);
1602		if ($value >= 4294967294) {
excel_reader2.php https://bitbucket.org/chepy/kk-sports.git | PHP | 1,737 lines
68function GetInt4d($data, $pos) {
69	$value = ord($data[$pos]) | (ord($data[$pos+1])	<< 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
70	if ($value>=4294967294) {
1213
1214						$border = ord($data[$pos+14]) | (ord($data[$pos+15]) << 8) | (ord($data[$pos+16]) << 16) | (ord($data[$pos+17]) << 24);
1215						$xf['borderLeft'] = $this->lineStyles[($border & 0xF)];
1221						$xf['borderRightColor'] = ($border & 0x3F800000) >> 23;
1222						$border = (ord($data[$pos+18]) | ord($data[$pos+19]) << 8);
1223
1423					$column = ord($data[$spos+2]) | ord($data[$spos+3])<<8;
1424					if ((ord($data[$spos+6])==0) && (ord($data[$spos+12])==255) && (ord($data[$spos+13])==255)) {
1425						//String formula. Result follows in a STRING record
1727	function _GetInt4d($data, $pos) {
1728		$value = ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
1729		if ($value>=4294967294) {
reader.php https://bitbucket.org/anak10thn/tcake.git | PHP | 1,088 lines
858                    $column = ord($this->data[$spos+2]) | ord($this->data[$spos+3])<<8;
859                    if ((ord($this->data[$spos+6])==0) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
860                        //String formula. Result follows in a STRING record
861                        //echo "FORMULA $row $column Formula with a string<br>\n";
862                    } elseif ((ord($this->data[$spos+6])==1) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
863                        //Boolean formula. Result is in +2; 0=false,1=true
863                        //Boolean formula. Result is in +2; 0=false,1=true
864                    } elseif ((ord($this->data[$spos+6])==2) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
865                        //Error formula. Error code is in +2;
865                        //Error formula. Error code is in +2;
866                    } elseif ((ord($this->data[$spos+6])==3) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
867                        //Formula result is a null string.
1069    {
1070        $value = ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
1071        if ($value>=4294967294)
reader.php https://bitbucket.org/anak10thn/t-siakad.git | PHP | 1,088 lines
858                    $column = ord($this->data[$spos+2]) | ord($this->data[$spos+3])<<8;
859                    if ((ord($this->data[$spos+6])==0) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
860                        //String formula. Result follows in a STRING record
861                        //echo "FORMULA $row $column Formula with a string<br>\n";
862                    } elseif ((ord($this->data[$spos+6])==1) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
863                        //Boolean formula. Result is in +2; 0=false,1=true
863                        //Boolean formula. Result is in +2; 0=false,1=true
864                    } elseif ((ord($this->data[$spos+6])==2) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
865                        //Error formula. Error code is in +2;
865                        //Error formula. Error code is in +2;
866                    } elseif ((ord($this->data[$spos+6])==3) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
867                        //Formula result is a null string.
1069    {
1070        $value = ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
1071        if ($value>=4294967294)
reader.php https://bitbucket.org/unsl/listop.git | PHP | 1,084 lines
855                    $column = ord($this->data[$spos+2]) | ord($this->data[$spos+3])<<8;
856                    if ((ord($this->data[$spos+6])==0) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
857                        //String formula. Result follows in a STRING record
858                        //echo "FORMULA $row $column Formula with a string<br>\n";
859                    } elseif ((ord($this->data[$spos+6])==1) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
860                        //Boolean formula. Result is in +2; 0=false,1=true
860                        //Boolean formula. Result is in +2; 0=false,1=true
861                    } elseif ((ord($this->data[$spos+6])==2) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
862                        //Error formula. Error code is in +2;
862                        //Error formula. Error code is in +2;
863                    } elseif ((ord($this->data[$spos+6])==3) && (ord($this->data[$spos+12])==255) && (ord($this->data[$spos+13])==255)) {
864                        //Formula result is a null string.
1065    {
1066        $value = ord($data[$pos]) | (ord($data[$pos+1]) << 8) | (ord($data[$pos+2]) << 16) | (ord($data[$pos+3]) << 24);
1067        if ($value>=4294967294)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21