PageRenderTime 17ms queryFilters 53ms Sphinxql 91ms app.CodeModel.GetByIds 785ms findMatchingLines 31ms GetByIds 816ms meta 0ms repositoryFilters 8ms languageFilters 3ms sourceFilters 3ms

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

Source

Language

Repository

test.PHPCLI.php https://github.com/costinu/cms.git | PHP | 136 lines
30{
31    public function PHPCLI() { parent::AbstractTest("PHP Command Line", "Testing PHP command line (default is php)"); }
32    public function doTest()
39        }
40        $windows = (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows");
41
72        $testScript = AJXP_CACHE_DIR."/cli_test.php";
73        file_put_contents($testScript, "<?php file_put_contents('".$robustCacheDir.DIRECTORY_SEPARATOR."cli_result.php', 'cli'); ?>");
74
78            /* Next 2 lines modified by rmeske: Need to wrap the folder and file paths in double quotes.  */
79            $cmd = $defaultCli." ". chr(34).$robustCacheDir .DIRECTORY_SEPARATOR."cli_test.php".chr(34);
80            $cmd .= " > ".chr(34).$logFile.chr(34);
87                $tmpBat = implode(DIRECTORY_SEPARATOR, array(str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH), "data","tmp", md5(time()).".bat"));
88                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
89                file_put_contents($tmpBat, $cmd);
stripslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 103 lines
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 85 lines
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
TokenizerTest.php https://github.com/prateeksachan/search-api-sandbox.git | PHP | 308 lines
195  /**
196   * Like PHP chr() function, but for unicode characters.
197   *
197   *
198   * chr() only works for ASCII characters up to character 255. This function
199   * converts a number to the corresponding unicode character. Adapted from
207    if ($num < 2048) {
208      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
209    }
211    if ($num < 65536) {
212      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
213    }
215    if ($num < 2097152) {
216      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
217    }
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 152 lines
124  /**
125   * Like PHP chr() function, but for unicode characters.
126   *
126   *
127   * chr() only works for ASCII characters up to character 255. This function
128   * converts a number to the corresponding unicode character. Adapted from
136    if ($num < 2048) {
137      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
138    }
140    if ($num < 65536) {
141      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
142    }
144    if ($num < 2097152) {
145      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
chr.html git://github.com/kvz/phpjs.git | HTML | 53 lines
20layout: function
21title: PHP's chr in JavaScript
22description: >-
23  Here’s what our current JavaScript equivalent to <a
24  href="https://php.net/manual/en/function.chr.php">PHP's chr</a> looks like.
25function: chr
27language: php
28permalink: php/strings/chr/
29alias:
31  - /functions/strings/chr/
32  - /php/chr/
33  - /functions/chr/
35{% codeblock lang:javascript %}module.exports = function chr (codePt) {
36  //  discuss at: https://locutus.io/php/chr/
37  // original by: Kevin van Zonneveld (https://kvz.io)
class.AJXP_Controller.php https://github.com/costinu/cms.git | PHP | 580 lines
328        $robustInstallPath = str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH);
329        $cmd = ConfService::getCoreConf("CLI_PHP")." ".$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
330        /* Inserted next 3 lines to quote the command if in windows - rmeske*/
331        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
332            $cmd = ConfService::getCoreConf("CLI_PHP")." ".chr(34).$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php".chr(34)." -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
333        }
351        /*
352        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
353            if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
358                $tmpBat = implode(DIRECTORY_SEPARATOR, array( $robustInstallPath, "data","tmp", md5(time()).".bat"));
359                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
360                AJXP_Logger::debug("Writing file $cmd to $tmpBat");
378    {
379        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
380              if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
php-strings.el git://github.com/ejmr/php-mode.git | Lisp | 769 lines
20
21;; http://php.net/manual/en/ref.strings.php
22;; file:///usr/share/doc/php-doc/html/ref.strings.html
36
37(define-skeleton php-bin2hex
38  "Insert a bin2hex statement"
48
49(define-skeleton php-chr
50  "Insert a chr statement. Returns a specific character from ascii code"
77
78(define-skeleton php-convert_uuencode
79  "Insert a bin2hex statement"
587
588(define-skeleton php-strrchr
589  "Insert a strrchr statement. Find the last occurrence of a character in a string"
SearchTokenizerTest.php https://github.com/drupal/drupal.git | PHP | 158 lines
130  /**
131   * Like PHP chr() function, but for unicode characters.
132   *
132   *
133   * Function chr() only works for ASCII characters up to character 255. This
134   * function converts a number to the corresponding unicode character. Adapted
142    if ($num < 2048) {
143      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
144    }
146    if ($num < 65536) {
147      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
148    }
150    if ($num < 2097152) {
151      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
152    }
SearchTokenizerTest.php https://gitlab.com/longphu/drupal8.git | PHP | 155 lines
129  /**
130   * Like PHP chr() function, but for unicode characters.
131   *
131   *
132   * chr() only works for ASCII characters up to character 255. This function
133   * converts a number to the corresponding unicode character. Adapted from
141    if ($num < 2048) {
142      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
143    }
145    if ($num < 65536) {
146      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
147    }
149    if ($num < 2097152) {
150      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
151    }
SearchTokenizerTest.php https://gitlab.com/qayoub/drupal.git | PHP | 155 lines
129  /**
130   * Like PHP chr() function, but for unicode characters.
131   *
131   *
132   * chr() only works for ASCII characters up to character 255. This function
133   * converts a number to the corresponding unicode character. Adapted from
141    if ($num < 2048) {
142      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
143    }
145    if ($num < 65536) {
146      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
147    }
149    if ($num < 2097152) {
150      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
151    }
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 162 lines
135  /**
136   * Like PHP chr() function, but for unicode characters.
137   *
137   *
138   * Function chr() only works for ASCII characters up to character 255. This
139   * function converts a number to the corresponding unicode character. Adapted
147    if ($num < 2048) {
148      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
149    }
151    if ($num < 65536) {
152      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
153    }
155    if ($num < 2097152) {
156      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
157    }
SearchTokenizerTest.php https://github.com/drupal/drupal.git | PHP | 155 lines
128  /**
129   * Like PHP chr() function, but for unicode characters.
130   *
130   *
131   * Function chr() only works for ASCII characters up to character 255. This
132   * function converts a number to the corresponding unicode character. Adapted
140    if ($num < 2048) {
141      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
142    }
144    if ($num < 65536) {
145      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
148    if ($num < 2097152) {
149      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
150    }
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 155 lines
128  /**
129   * Like PHP chr() function, but for unicode characters.
130   *
130   *
131   * Function chr() only works for ASCII characters up to character 255. This
132   * function converts a number to the corresponding unicode character. Adapted
140    if ($num < 2048) {
141      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
142    }
144    if ($num < 65536) {
145      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
148    if ($num < 2097152) {
149      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
150    }
phpToJS.php git://github.com/phpnode/YiiJS.git | PHP | 1,640 lines
3 * A woefully naive, context unaware PHP to JavaScript token transformer.
4 * Relies on php.js for a lot of the built in PHP functions.
5 * HERE BE DRAGONS!
202		'addslashes' => 'php.addslashes',
203		'chr' => 'php.chr',
204		'crc32' => 'php.crc32',
1414 */
1415class phpClass extends phpBase {
1416	
1512 */
1513class phpProperty extends phpBase {
1514	/**
1547 */
1548class phpMethod extends phpBase {
1549	/**
chr.js git://github.com/kvz/phpjs.git | JavaScript | 18 lines
1module.exports = function chr (codePt) {
2  //  discuss at: https://locutus.io/php/chr/
3  // original by: Kevin van Zonneveld (https://kvz.io)
4  // improved by: Brett Zamir (https://brett-zamir.me)
5  //   example 1: chr(75) === 'K'
6  //   example 1: chr(65536) === '\uD800\uDC00'
SQLiteDialect.class.php git://github.com/xp-framework/xp-framework.git | PHP | 243 lines
50        'datediff_3'   => 'datediff_not_implemented',
51        'datename_2'   => 'php("strval", php("idate", %t, php("strtotime", %s)))',
52        'datepart_2'   => 'php("idate", %t, php("strtotime", %s))',
57        'getdate_0'    => 'php("date", "Y-m-d H:i:s", php("time"))',
58        'hour_1'       => 'php("idate", "H", php("strtotime", %s))',
59        'len_1'        => 'php("strlen", %s)',
68        'minute_1'     => 'php("idate", "i", php("strtotime", %s))',
69        'month_1'      => 'php("idate", "m", php("strtotime", %s))',
70        'nullif_2'     => 'nullif(%s, %s)',
78        'rtrim_2'      => 'php("rtrim", %s, %s)',
79        'second_1'     => 'php("idate", "s", php("strtotime", %s))',
80        'sign_1'       => 'sign(%d)',
91        'upper_1'      => 'php("strtoupper", %s)',
92        'year_1'       => 'php("idate", "Y", php("strtotime", %s))',
93      );
SQLFunctionTest.class.php git://github.com/xp-framework/xp-framework.git | PHP | 395 lines
164      '(\'aa\' || str(getdate()) || \'cc\') as "concatTest"',
165      '\'aa\' || php(\'strval\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\'))) || \'cc\' as \'concatTest\'',
166      create(new \rdbms\Criteria())->setProjection(SQLFunctions::concat('aa', SQLFunctions::str(SQLFunctions::getdate()), 'cc'), 'concatTest')
201      'datename(hour, getdate())',
202      'php(\'strval\', php(\'idate\', "H", php(\'strtotime\', php(\'date\', \'Y-m-d H:i:s\', php(\'time\')))))',
203      create(new \rdbms\Criteria())->setProjection(SQLFunctions::datename('hour', SQLFunctions::getdate()))
261      'round(1.5, 0) as "roundtest1", round(1.49, 0) as "roundtest2", round(1.49, 1) as "roundtest3"',
262      'php(\'round\', 1.5, 0) as \'roundtest1\', php(\'round\', 1.49, 0) as \'roundtest2\', php(\'round\', 1.49, 1) as \'roundtest3\'',
263      create(new \rdbms\Criteria())->setProjection(\rdbms\criterion\Projections::ProjectionList()
383      'where job_id = ceil(asin(sin(0.125)))',
384      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
385      create(new \rdbms\Criteria())->add(Restrictions::equal('job_id', SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
390      'where job_id = ceil(asin(sin(0.125)))',
391      'where job_id = php(\'ceil\', php(\'asin\', php(\'sin\', 0.125)))',
392      create(new \rdbms\Criteria())->add(Restrictions::equal(Job::column('job_id'), SQLFunctions::ceil(SQLFunctions::asin(SQLFunctions::sin(0.125)))))
util.php https://github.com/schwarzmedia/bolt.git | PHP | 2,107 lines
1038                     .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194)
1039                     .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202)
1040                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1040                     .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210)
1041                     .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218)
1042                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1042                     .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227)
1043                     .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235)
1044                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1044                     .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243)
1045                     .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251)
1046                     .chr(252).chr(253).chr(255);
1050                $string = strtr( $string, $chars['in'], $chars['out'] );
1051                $double_chars['in'] = array( chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254) );
1052                $double_chars['out'] = array( 'OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th' );
lancheck.php https://github.com/CasperGemini/e107.git | PHP | 1,833 lines
572		$message = "<div style='text-align:left'><br />";
573		$input .= chr(60)."?php\n";
574		if ($old_kom == "")
1247		/*
1248		* @see http://hsivonen.iki.fi/php-utf8/   validation.php
1249		*/
1328					$bomkey = str_replace(".php","",$k_check);
1329					$bom_error = ($check['bom'][$bomkey]) ? "<span class='error'><em>".str_replace("[php]", "<?php", LAN_CHECK_15)."</em></span><br />" : ""; // illegal chars
1330	
1338						if($sk == "LC_ALL"){
1339							$check[$k][$sk] = str_replace(chr(34).chr(34),"",$check[$k][$sk]);
1340						}
1781	function is_utf8($str) {
1782		// @see http://hsivonen.iki.fi/php-utf8/   validation.php
1783	
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21