PageRenderTime 23ms queryFilters 30ms Sphinxql 63ms app.CodeModel.GetByIds 128ms findMatchingLines 53ms GetByIds 181ms meta 0ms repositoryFilters 2ms languageFilters 0ms sourceFilters 3ms

21,207 results for 'php chr repo:APD183/fxphp' (23 ms)

Source

Language

Repository

utf8.php https://github.com/micz/elencode.git | PHP | 1,659 lines
98     * @author <bmorel@ssi.fr>
99     * @link   http://www.php.net/manual/en/function.utf8-encode.php
100     */
144     * @author Harry Fuecks <hfuecks@gmail.com>
145     * @author Chris Smith <chris@jalakai.co.uk>
146     * @param string
174        // cast parameters to appropriate types to avoid multiple notices/warnings
175        $str = (string)$str;                          // generates E_NOTICE for PHP4 objects, but not PHP5 objects
176        $offset = (int)$offset;
502     * @author <vpribish at shopping dot com>
503     * @link   http://www.php.net/manual/en/function.utf8-decode.php
504     */
939     *
940     * @author       chris smith <chris@jalakai.co.uk>
941     */
fUTF8.php https://github.com/jsuarez/Lexer.git | PHP | 1,521 lines
1<?php
2/**
5 * This class is implemented to provide a UTF-8 version of almost every built-in
6 * PHP string function. For more information about UTF-8, please visit
7 * http://flourishlib.com/docs/UTF-8.
26	const ascii    = 'fUTF8::ascii';
27	const chr      = 'fUTF8::chr';
28	const clean    = 'fUTF8::clean';
175	/**
176	 * All lowercase UTF-8 characters not properly handled by [http://php.net/mb_strtoupper mb_strtoupper()] mapped to uppercase characters
177	 * 
195	/**
196	 * All uppercase UTF-8 characters not properly handled by [http://php.net/mb_strtolower mb_strtolower()] mapped to lowercase characters
197	 * 
523	/**
524	 * If the [http://php.net/mbstring mbstring] extension is available
525	 * 
croninclude.php https://github.com/joomla-example/joomla-repo.git | PHP | 1,195 lines
88 * @license     http://www.opensource.org/licenses/bsd-license.php
89 * @link        http://pear.php.net/pepr/pepr-proposal-show.php?id=198
90 */
550                    $utf8 = '';
551                    $strlen_chrs = strlen($chrs);
552
682                        $top = end($stk);
683                        $substr_chrs_c_2 = substr($chrs, $c, 2);
684
733                                 ($top['what'] == SERVICES_JSON_IN_STR) &&
734                                 ((strlen(substr($chrs, 0, $c)) - strlen(rtrim(substr($chrs, 0, $c), '\\'))) % 2 != 1)) {
735                            // found a quote, we're in a string, and it's not escaped
775                            for ($i = $top['where']; $i <= $c; ++$i)
776                                $chrs = substr_replace($chrs, ' ', $i, 1);
777
Subs-Auth.php https://github.com/leftnode/nooges.com.git | PHP | 837 lines
1<?php
2/**********************************************************************************
70	void show_db_error(bool loadavg = false)
71		- called by db_fatal_error() function (in Errors.php.)
72		- shows a complete page independent of language files or themes.
87	void JSMembers()
88		- called by index.php?action=findmember.
89		- is used as a popup for searching members.
633				elseif ($n < 2048)
634					return chr(192 | $n >> 6) . chr(128 | $n & 63);
635				elseif ($n < 65536)
635				elseif ($n < 65536)
636					return chr(224 | $n >> 12) . chr(128 | $n >> 6 & 63) . chr(128 | $n & 63);
637				else
637				else
638					return chr(240 | $n >> 18) . chr(128 | $n >> 12 & 63) . chr(128 | $n >> 6 & 63) . chr(128 | $n & 63);');
639
INSTALL https://github.com/tomclegg/get-evidence.git | Unknown | 314 lines
6    make mysql-client mysql-server patch \
7    php5 php5-curl php5-dev php5-gd php5-mysql php-db \
8    python-biopython python-dev python-mysqldb python-pyrex \
123session timeouts beyond the default 24 minutes. In ubuntu you can
124either edit /etc/php5/apache2/php.ini or create
125/etc/php5/conf.d/get-evidence.ini with the following values:
264   SELECT * FROM gwas_rs INTO '/tmp/gwas.chr';
265   SELECT CONCAT('chr',chr),'gwas','SNP',chr_pos,chr_pos,'.','+','.',
266    CONCAT('alleles ',allele,';dbsnp rs',gwas_snp_id)
268    LEFT JOIN acgt ON 1=1
269    WHERE chr IS NOT NULL AND chr NOT LIKE 'Multi%'
270    INTO OUTFILE '/tmp/gwas.gff.txt';
305 mkdir tmp
306 wget -O./tmp/genenames.txt 'http://www.genenames.org/cgi-bin/hgnc_downloads.cgi?title=HGNC+output+data&hgnc_dbtag=onlevel=pri&=on&order_by=gd_app_sym_sort&limit=&format=text&.cgifields=&.cgifields=level&.cgifields=chr&.cgifields=status&.cgifields=hgnc_dbtag&&where=&status=Approved&status_opt=1&submit=submit&col=gd_hgnc_id&col=gd_app_sym&col=gd_app_name&col=gd_status&col=gd_prev_sym&col=gd_aliases&col=gd_pub_chrom_map&col=gd_pub_acc_ids&col=gd_pub_refseq_ids'
307 ./import_genenames.php ./tmp/genenames.txt
core.regex.php https://github.com/danboy/Croissierd.git | PHP | 1,196 lines
1<?php
2
142			{
143				$str = preg_replace("#(.+?)\.php(.*?)#", "\\1.php?\\2", $str);
144			}
197    /** -----------------------------------------
198    /**  Convert PHP tags to entities
199    /** -----------------------------------------*/
200
201    function encode_php_tags($str)
202    {        
203    	return str_replace(array('<?php', '<?PHP', '<?', '?'.'>'), 
204    					   array('&lt;?php', '&lt;?PHP', '&lt;?', '?&gt;'), 
205    					   $str);
350				// Converts to UTF-8 Bytes
351				// http://us2.php.net/manual/en/function.chr.php#55978
352				
JSON.php https://github.com/pkeane/humptydumpty.git | PHP | 861 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 */
521                $utf8 = '';
522                $strlen_chrs = strlen($chrs);
523
697
698                    } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
699                        // found a quote, and we are not inside a string
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
ApiFormatJson_json.php https://github.com/tav/confluence.git | PHP | 862 lines
54* @license http://www.opensource.org/licenses/bsd-license.php
55* @see http://pear.php.net/pepr/pepr-proposal-show.php?id=198
56*/
558					$utf8 = '';
559					$strlen_chrs = strlen($chrs);
560
744
745						} elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) {
746							// found a quote, and we are not inside a string
752								 (($chrs{$c - 1} != '\\') ||
753								 ($chrs{$c - 1} == '\\' && $chrs{$c - 2} == '\\'))) {
754							// found a quote, we're in a string, and it's not escaped
792							for ($i = $top['where']; $i <= $c; ++$i)
793								$chrs = substr_replace($chrs, ' ', $i, 1);
794
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
manager.encoding.php https://github.com/foswiki/ToPDFPlugin.git | PHP | 257 lines
1<?php
2
3require_once(HTML2PS_DIR.'encoding.inc.php');
4require_once(HTML2PS_DIR.'encoding.entities.inc.php');
5require_once(HTML2PS_DIR.'encoding.glyphs.inc.php');
5require_once(HTML2PS_DIR.'encoding.glyphs.inc.php');
6require_once(HTML2PS_DIR.'encoding.iso-8859-1.inc.php');
7require_once(HTML2PS_DIR.'encoding.iso-8859-2.inc.php');
7require_once(HTML2PS_DIR.'encoding.iso-8859-2.inc.php');
8require_once(HTML2PS_DIR.'encoding.iso-8859-3.inc.php');
9require_once(HTML2PS_DIR.'encoding.iso-8859-4.inc.php');
9require_once(HTML2PS_DIR.'encoding.iso-8859-4.inc.php');
10require_once(HTML2PS_DIR.'encoding.iso-8859-5.inc.php');
11require_once(HTML2PS_DIR.'encoding.iso-8859-6.inc.php');
225      // ! Note the order of array checking; optimizing interpreters may break this
226      if (isset($vector[chr($i)]) && isset($GLOBALS['g_unicode_glyphs'][$vector[chr($i)]])) {
227        $result .= " /".$GLOBALS['g_unicode_glyphs'][$vector[chr($i)]];
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
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		}
acquia_agent.module https://bitbucket.org/nstjelja/dhk | Unknown | 710 lines
397      else {
398        $output .= ' <div class="messages error">'. t('Your installation of PHP does not have SSL support. Please enable the SSL extension or compile PHP with SSL to use this feature, see: <a href="http://php.net/manual/en/book.openssl.php" target="_blank">http://php.net/manual/en/book.openssl.php</a>.') .'</div></dd>';
399      }
501  if (in_array('ssl', stream_get_transports(), TRUE) && !defined('ACQUIA_DEVELOPMENT_NOSSL')) {
502    // OpenSSL is available in PHP
503    $acquia_network_address = 'https://' . $acquia_network_address;
674    return base64_encode(
675      pack("H*", sha1((str_pad($key, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) .
676      pack("H*", sha1((str_pad($key, 64, chr(0x00)) ^ (str_repeat(chr(0x36), 64))) .
681    $string = $time .':'. $nonce .':'. $encoded_params;
682    return sha1((str_pad($key, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) . pack("H*", sha1((str_pad($key, 64, chr(0x00)) ^ (str_repeat(chr(0x36), 64))) . $string)));
683  }
685    $string = $time .':'. $nonce;
686    return sha1((str_pad($key, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) . pack("H*", sha1((str_pad($key, 64, chr(0x00)) ^ (str_repeat(chr(0x36), 64))) . $string)));
687  }
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 */
Cpdf.php https://bitbucket.org/openemr/openemr.git | PHP | 3,947 lines
412        // set the hardcoded encryption pad
413        $this->encryptionPad = 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);
414        
1629        }
1630        $tmp.= chr(hexdec(substr($hex,4,2))).chr(hexdec(substr($hex,2,2))).chr(hexdec(substr($hex,0,2))).chr(0).chr(0);
1631        $key = $this->md5_16($tmp);
2039        $fp = fopen($this->tempPath.'/'.$cachedFile,'w'); // use the temp folder to write cached font data
2040        fwrite($fp,'<?php /* R&OS php pdf class font cache file */ return '.var_export($cachedFont,true).'; ?>');
2041        fclose($fp);
2725        
2726        $text = strtr($text,  array(')' => '\\)', '(' => '\\(', '\\' => '\\\\', chr(8) => '\\b', chr(9) => '\\t', chr(10) => '\\n', chr(12) => '\\f' ,chr(13) => '\\r', '&lt;'=>'<', '&gt;'=>'>', '&amp;'=>'&') );
2727
3564        
3565        $header = chr(137).chr(80).chr(78).chr(71).chr(13).chr(10).chr(26).chr(10);
3566        if (substr($data,0,8)!=$header){
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        }
class-snoopy.php https://bitbucket.org/crypticrod/sr_wp_code | PHP | 1,257 lines
1<?php
2
3/**
4 * Deprecated. Use WP_HTTP (http.php, class-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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21