PageRenderTime 366ms queryFilters 8ms Sphinxql 48ms app.CodeModel.GetByIds 229ms findMatchingLines 46ms GetByIds 275ms meta 0ms repositoryFilters 7ms languageFilters 1ms sourceFilters 3ms

27,527 results for 'php chr repo:aoseala/yii-bootstrap' (366 ms)

Source

Language

Repository

json.php https://github.com/pipifuyj/global.git | PHP | 830 lines
55 * @license     http://www.opensource.org/licenses/bsd-license.php
56 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
57 */
517                    $utf8 = '';
518                    $strlen_chrs = strlen($chrs);
519
693
694                        } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
695                            // found a quote, and we are not inside a string
700                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
701                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
702                            // found a quote, we're in a string, and it's not escaped
742                            for ($i = $top['where']; $i <= $c; ++$i)
743                                $chrs = substr_replace($chrs, ' ', $i, 1);
744
json.php https://github.com/groovyobject/ChoicePoolsv1.git | PHP | 820 lines
55 * @license     http://www.opensource.org/licenses/bsd-license.php
56 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
57 */
533
534                        $substr_chrs_c_2 = substr($chrs, $c, 2);
535                        $ord_chrs_c = ord($chrs{$c});
661                        $top = end($stk);
662                        $substr_chrs_c_2 = substr($chrs, $c, 2);
663
712                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
713                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
714                            // found a quote, we're in a string, and it's not escaped
754                            for ($i = $top['where']; $i <= $c; ++$i)
755                                $chrs = substr_replace($chrs, ' ', $i, 1);
756
class-snoopy.php https://github.com/markjaquith/WordPress.git | PHP | 1,257 lines
1<?php
2
3/**
4 * Deprecated. Use WP_HTTP (http.php) instead.
5 */
5 */
6_deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' );
7
10
11Snoopy - the PHP net client
12Author: Monte Ohrt <monte@ispi.net>
43
44	var $host			=	"www.php.net";		// host name we are connecting to
45	var $port			=	80;					// port we are connecting to
81	var $read_timeout	=	0;					// timeout on read operations, in seconds
82												// supported only since PHP 4 Beta 4
83												// set to 0 to disallow timeouts
JSON.php https://github.com/DigitalCityMechanics/PeopleAggregator.git | PHP | 818 lines
67 * @license     http://www.opensource.org/licenses/bsd-license.php
68 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
69 */
529                    $utf8 = '';
530                    $strlen_chrs = strlen($chrs);
531
705
706                        } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
707                            // found a quote, and we are not inside a string
713                                 (($chrs{$c - 1} != '\\') ||
714                                 ($chrs{$c - 1} == '\\' && $chrs{$c - 2} == '\\'))) {
715                            // found a quote, we're in a string, and it's not escaped
753                            for ($i = $top['where']; $i <= $c; ++$i)
754                                $chrs = substr_replace($chrs, ' ', $i, 1);
755
JSON.php https://github.com/DigitalCityMechanics/PeopleAggregator.git | PHP | 819 lines
67 * @license     http://www.opensource.org/licenses/bsd-license.php
68 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
69 */
529                    $utf8 = '';
530                    $strlen_chrs = strlen($chrs);
531
656
657                    $strlen_chrs = strlen($chrs);
658
712                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
713                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
714                            // found a quote, we're in a string, and it's not escaped
754                            for ($i = $top['where']; $i <= $c; ++$i)
755                                $chrs = substr_replace($chrs, ' ', $i, 1);
756
misc.php https://github.com/mentariworks/feedmalaya-draft.git | PHP | 2,365 lines
411	 *
412	 * To generate it, run `php create.php` on the command line, and copy the
413	 * output to replace this function.
2087		{
2088			return chr(0xc0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3f));
2089		}
2091		{
2092			return chr(0xe0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
2093		}
2095		{
2096			return chr(0xf0 | ($codepoint >> 18)) . chr(0x80 | (($codepoint >> 12) & 0x3f)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
2097		}
2319		$info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
2320		$info .= 'PHP ' . PHP_VERSION . "\n";
2321		if ($sp->error() !== null)
Misc.php git://github.com/wordpress/wordpress.git | PHP | 2,262 lines
405	 *
406	 * To generate it, run `php create.php` on the command line, and copy the
407	 * output to replace this function.
1987		{
1988			return chr(0xc0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3f));
1989		}
1991		{
1992			return chr(0xe0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
1993		}
1995		{
1996			return chr(0xf0 | ($codepoint >> 18)) . chr(0x80 | (($codepoint >> 12) & 0x3f)) . chr(0x80 | (($codepoint >> 6) & 0x3f)) . chr(0x80 | ($codepoint & 0x3f));
1997		}
2213		$info = 'SimplePie ' . SIMPLEPIE_VERSION . ' Build ' . SIMPLEPIE_BUILD . "\n";
2214		$info .= 'PHP ' . PHP_VERSION . "\n";
2215		if ($sp->error() !== null)
slir.class.php git://github.com/kolber/stacey.git | PHP | 1,508 lines
1<?php
2/**
62 * plus sign, +, should be encoded as %2B) in order for SLIR to recognize them
63 * properly. This can be accomplished by passing your filenames through PHP's
64 * rawurlencode() or urlencode() function.
206		// everything humming along nicely
207		require 'slirexception.class.php';
208		set_error_handler(array('SLIRException', 'error'));
353		}
354		else if (file_exists('slirconfig-sample.class.php'))
355		{
569		$length = strlen($value);
570		$retval = chr(0x1C) . chr($rec) . chr($data);
571
573		{
574			$retval .= chr($length >> 8) .  chr($length & 0xFF);
575		}
JSimpleCryptTest.php https://bitbucket.org/ian_maclennan/joomla-cms | PHP | 147 lines
2/**
3 * JSimpleCryptTest.php
4 *
9 */
10require_once 'PHPUnit/Framework.php';
11require_once JPATH_BASE. DS . 'libraries' . DS . 'joomla' . DS . 'utilities' . DS . 'simplecrypt.php';
14 * Test class for JSimpleCrypt.
15 * Generated by PHPUnit on 2009-10-26 at 22:30:43.
16 *
78			"WildDef" => array(
79				chr(101).chr(23).chr(116).chr(3).chr(177).chr(99).chr(207).chr(249).chr(56).chr(107).chr(223).chr(49).chr(65).chr(119).chr(87).chr(189).chr(111).chr(133).chr(232).chr(48).chr(62).chr(201),
80				null,
83			"WildKey" => array(
84				chr(101).chr(23).chr(116).chr(3).chr(177).chr(99).chr(207).chr(249).chr(56).chr(107).chr(223).chr(49).chr(65).chr(119).chr(87).chr(189).chr(111).chr(133).chr(232).chr(48).chr(62).chr(201),
85				"This is a new key",
ASN1.php https://bitbucket.org/openemr/openemr.git | PHP | 1,309 lines
1<?php
2
3/**
4 * Pure-PHP ASN.1 Parser
5 *
5 *
6 * PHP version 5
7 *
11 *
12 * \phpseclib\File\ASN1 decodes and encodes DER formatted messages and places them in a semantic context.
13 *
17 * @package   ASN1
18 * @author    Jim Wigginton <terrafrost@php.net>
19 * @copyright 2012 Jim Wigginton
20 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
21 * @link      http://phpseclib.sourceforge.net
22 */
UtfNormalTest2.php https://bitbucket.org/kgrashad/thawrapedia | PHP | 240 lines
64 */
65function normalize_form_c_php($c)  { return UtfNormal::toNFC($c, "php");  }
66function normalize_form_d_php($c)  { return UtfNormal::toNFD($c, "php");  }
67function normalize_form_kc_php($c) { return UtfNormal::toNFKC($c, "php"); }
68function normalize_form_kd_php($c) { return UtfNormal::toNFKD($c, "php"); }
69
197	} else if ($c <= 0x7FF) {
198		return chr(0xC0 | $c >> 6) . chr(0x80 | $c & 0x3F);
199	} else if ($c <= 0xFFFF) {
199	} else if ($c <= 0xFFFF) {
200		return chr(0xE0 | $c >> 12) . chr(0x80 | $c >> 6 & 0x3F)
201			. chr(0x80 | $c & 0x3F);
202	} else if ($c <= 0x10FFFF) {
203		return chr(0xF0 | $c >> 18) . chr(0x80 | $c >> 12 & 0x3F)
204			. chr(0x80 | $c >> 6 & 0x3F)
ArGlyphs.class.php https://bitbucket.org/bontiv/insomnia | PHP | 507 lines
47 * PHP class to render Arabic text by performs Arabic glyph joining on it,
48 * then output a UTF-8 hexadecimals stream gives readable results on PHP
49 * libraries supports UTF-8.
188            $flip_arr = ')]>}';
189            $ReversedChr = '([<{';
190
490        } elseif ($codepoint < 0x800) {
491            $str = chr(0xC0 | ($codepoint >> 6)) . chr(0x80 | ($codepoint & 0x3F));
492        } elseif ($codepoint < 0x10000) {
492        } elseif ($codepoint < 0x10000) {
493            $str = chr(0xE0 | ($codepoint >> 12)) . chr(0x80 | (($codepoint >> 6) & 0x3F)) . chr(0x80 | ($codepoint & 0x3F));
494        } elseif ($codepoint < 0x200000) {
494        } elseif ($codepoint < 0x200000) {
495            $str = chr(0xF0 | ($codepoint >> 18)) . chr(0x80 | (($codepoint >> 12) & 0x3F)) . chr(0x80 | (($codepoint >> 6) & 0x3F)) . chr(0x80 | ($codepoint & 0x3F));
496        }
Hostname.php https://bitbucket.org/farouqzaib/precurio | PHP | 735 lines
1<?php
2/**
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
19 * @version    $Id: Hostname.php 20358 2010-01-17 19:03:49Z thomas $
20 */
24 */
25require_once 'Zend/Validate/Abstract.php';
26
29 */
30require_once 'Zend/Validate/Ip.php';
31
35 *
36 * The first is tests/Zend/Validate/HostnameTestStandalone.php which is designed to be run on
37 * the command line.
38 *
39 * The second is tests/Zend/Validate/HostnameTestForm.php which is designed to be run via HTML
40 * to allow users to test entering UTF-8 characters in a form.
write.id3v2.php https://bitbucket.org/norvin/mingen_dts | PHP | 2,053 lines
26	var $id3v2_default_encodingid    = 0;        // default text encoding (ISO-8859-1) if not explicitly passed
27	var $id3v2_use_unsynchronisation = false;    // the specs say it should be TRUE, but most other ID3v2-aware programs are broken if unsynchronization is used, so by default don't use it.
28	var $warnings                    = array();  // any non-critical errors will be stored here
284				$flag2 .= $Encryption          ? '1' : '0'; // m - Encryption (true == encrypted)
285				$flag2 .= $Unsynchronisation   ? '1' : '0'; // n - Unsynchronisation (true == unsynchronised)
286				$flag2 .= $DataLengthIndicator ? '1' : '0'; // p - Data length indicator (true == data length indicator added)
1638			$tagheader .= chr($this->minorversion);
1639			$tagheader .= $this->GenerateID3v2TagFlags(array('unsynchronisation'=>$TagUnsynchronisation));
1640			$tagheader .= getid3_lib::BigEndian2String(strlen($tagstring), 4, true);
1800		// written by dev-nullŘchristophe*vg
1801		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
1802		if (is_array($var)) {
1815		// written by dev-nullŘchristophe*vg
1816		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
1817		if (is_array($arr1) && is_array($arr2)) {
JSON.php https://bitbucket.org/MelFlynn/zarafa | PHP | 885 lines
106 * @license     http://www.opensource.org/licenses/bsd-license.php
107 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
108 */
568                    $utf8 = '';
569                    $strlen_chrs = strlen($chrs);
570
695
696                    $strlen_chrs = strlen($chrs);
697
751                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
752                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
753                            // found a quote, we're in a string, and it's not escaped
793                            for ($i = $top['where']; $i <= $c; ++$i)
794                                $chrs = substr_replace($chrs, ' ', $i, 1);
795
json-pear.php https://bitbucket.org/webop/webop-forum | PHP | 811 lines
59 * @license     http://www.opensource.org/licenses/bsd-license.php
60 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
61 */
521                    $utf8 = '';
522                    $strlen_chrs = strlen($chrs);
523
648
649                    $strlen_chrs = strlen($chrs);
650
704                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
705                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
706                            // found a quote, we're in a string, and it's not escaped
746                            for ($i = $top['where']; $i <= $c; ++$i)
747                                $chrs = substr_replace($chrs, ' ', $i, 1);
748
write.id3v2.php https://bitbucket.org/drn05r/neurohub-dev-davidn | PHP | 2,055 lines
26	var $id3v2_default_encodingid    = 0;        // default text encoding (ISO-8859-1) if not explicitly passed
27	var $id3v2_use_unsynchronisation = false;    // the specs say it should be TRUE, but most other ID3v2-aware programs are broken if unsynchronization is used, so by default don't use it.
28	var $warnings                    = array();  // any non-critical errors will be stored here
284				$flag2 .= $Encryption          ? '1' : '0'; // m - Encryption (true == encrypted)
285				$flag2 .= $Unsynchronisation   ? '1' : '0'; // n - Unsynchronisation (true == unsynchronised)
286				$flag2 .= $DataLengthIndicator ? '1' : '0'; // p - Data length indicator (true == data length indicator added)
1638			$tagheader .= chr($this->minorversion);
1639			$tagheader .= $this->GenerateID3v2TagFlags(array('unsynchronisation'=>$TagUnsynchronisation));
1640			$tagheader .= getid3_lib::BigEndian2String(strlen($tagstring), 4, true);
1800		// written by dev-nullŘchristophe*vg
1801		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
1802		if (is_array($var)) {
1815		// written by dev-nullŘchristophe*vg
1816		// taken from http://www.php.net/manual/en/function.array-merge-recursive.php
1817		if (is_array($arr1) && is_array($arr2)) {
class.pdf.php https://code.google.com/p/ecartcommerce/ | PHP | 4,972 lines
1<?php
2  /**
1764      // figure out the additional paramaters required
1765      $pad =  chr(0x28) .chr(0xBF) .chr(0x4E) .chr(0x5E) .chr(0x4E) .chr(0x75) .chr(0x8A) .chr(0x41) .chr(0x64) .chr(0x00) .chr(0x4E) .chr(0x56) .chr(0xFF) .chr(0xFA) .chr(0x01) .chr(0x08) .chr(0x2E) .chr(0x2E) .chr(0x00) .chr(0xB6) .chr(0xD0) .chr(0x68) .chr(0x3E) .chr(0x80) .chr(0x2F) .chr(0x0C) .chr(0xA9) .chr(0xFE) .chr(0x64) .chr(0x53) .chr(0x69) .chr(0x7A);
1766
1803      // now make the u value, phew.
1804      $tmp =  $this->md5_16($user.$ovalue.chr($options['p']) .chr(255) .chr(255) .chr(255) .$this->fileIdentifier);
1805
1856   * ARC4 functions
1857   * A series of function to implement ARC4 encoding in PHP
1858   */
1891
1892    $tmp.=  chr(hexdec(substr($hex, 4, 2))) .chr(hexdec(substr($hex, 2, 2))) .chr(hexdec(substr($hex, 0, 2))) .chr(0) .chr(0);
1893
2214
2215      $this->addMessage('openFont: php file exists ' . $dir . 'php_' . $name.'.afm');
2216
BigInteger.php http://yurishop.googlecode.com/svn/trunk/ | PHP | 3,546 lines
519                    $temp = bcmod($current, '16777216');
520                    $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
521                    $current = bcdiv($current, '16777216', 0);
702     * Although you can call Math_BigInteger::__toString() directly in PHP5, you cannot call Math_BigInteger::__clone()
703     * directly in PHP5.  You can in PHP4 since it's not a magic method, but in PHP5, you have to call it by using the PHP5
704     * only syntax of $y = clone $x.  As such, if you're trying to write an application that works on both PHP4 and PHP5,
2793        // generate as many leading 1's as we need to.
2794        $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3);
2795        $this->_base256_lshift($leading_ones, $current_bits);
2902            $precision = 8 * strlen($bits) - 8 + $i;
2903            $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3);
2904        }
3039
3040        // gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
3041        if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) {
PythonPickle.php http://yurishop.googlecode.com/svn/trunk/ | PHP | 1,495 lines
1<?php
2/**
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id: PythonPickle.php 21187 2010-02-24 01:22:01Z stas $
21 */
23/** @see Zend_Serializer_Adapter_AdapterAbstract */
24#require_once 'Zend/Serializer/Adapter/AdapterAbstract.php';
25
102    /**
103     * @var bool Whether or not this is a PHP 6 binary
104     */
104     */
105    protected static $_isPhp6 = null;
106
158        if (self::$_isPhp6 === null) {
159            self::$_isPhp6 = !version_compare(PHP_VERSION, '6.0.0', '<');
160        }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21