Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 25 of 58) sorted by relevance

123

/plugin/webdav/vendor/sabre/dav/lib/DAV/
H A DStringUtil.php22 * @param string $needle
27 static function textMatch($haystack, $needle, $collation, $matchType = 'contains') { argument
35 $needle = str_replace(range('a', 'z'), range('A', 'Z'), $needle);
44 $needle = mb_strtoupper($needle, 'UTF-8');
55 return strpos($haystack, $needle) !== false;
57 return $haystack === $needle;
59 return strpos($haystack, $needle) === 0;
61 return strrpos($haystack, $needle) === strlen($haystack) - strlen($needle);
/plugin/davcal/vendor/sabre/dav/lib/DAV/
H A DStringUtil.php22 * @param string $needle
27 static function textMatch($haystack, $needle, $collation, $matchType = 'contains') { argument
35 $needle = str_replace(range('a', 'z'), range('A', 'Z'), $needle);
44 $needle = mb_strtoupper($needle, 'UTF-8');
55 return strpos($haystack, $needle) !== false;
57 return $haystack === $needle;
59 return strpos($haystack, $needle) === 0;
61 return strrpos($haystack, $needle) === strlen($haystack) - strlen($needle);
/plugin/freechat/phpfreechat/lib/pear/PHPUnit/
H A DAssert.php77 function assertContains($needle, $haystack, $message = '') { argument
78 if (is_string($needle) && is_string($haystack)) {
79 $this->assertTrue(strpos($haystack, $needle) !== FALSE, $message);
82 else if (is_array($haystack) && !is_object($needle)) {
83 $this->assertTrue(in_array($needle, $haystack), $message);
100 function assertNotContains($needle, $haystack, $message = '') { argument
101 if (is_string($needle) && is_string($haystack)) {
102 $this->assertFalse(strpos($haystack, $needle) !== FALSE, $message);
105 else if (is_array($haystack) && !is_object($needle)) {
106 $this->assertFalse(in_array($needle, $haystack), $message);
/plugin/virtualkeyboard/vk/extensions/dom/
H A Dselectbox.js290 return __setOptionsState (needle, 'selected', true, true, match);
301 return __setOptionsState (needle, 'selected', true, false, match);
324 return __setOptionsState (needle, 'selected', false, true, match);
349 return __setOptionsState (needle, 'fixed', true, true, match);
360 return __setOptionsState (needle, 'fixed', true, false, match);
371 return __setOptionsState (needle, 'fixed', false, true, match);
382 return __setOptionsState (needle, 'fixed', false, false, match);
396 return __setOptionsState (needle, 'visible', true, true, match);
407 return __setOptionsState (needle, 'visible', true, false, match);
418 return __setOptionsState (needle, 'visible', false, true, match);
[all …]
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Asset/
H A DAssetCollection.php73 public function removeLeaf(AssetInterface $needle, $graceful = false) argument
77 if (in_array($needle, array($asset, $clone), true)) {
83 if ($asset instanceof AssetCollectionInterface && $asset->removeLeaf($needle, true)) {
95 …public function replaceLeaf(AssetInterface $needle, AssetInterface $replacement, $graceful = false) argument
99 if (in_array($needle, array($asset, $clone), true)) {
106 …if ($asset instanceof AssetCollectionInterface && $asset->replaceLeaf($needle, $replacement, true)…
H A DAssetCollectionInterface.php50 * @param AssetInterface $needle The current asset to replace
58 …public function replaceLeaf(AssetInterface $needle, AssetInterface $replacement, $graceful = false… argument
/plugin/issuetracker/
H A Ditsearch.php82 foreach($search_words as $needle) {
85 if(stripos($issue_string,$needle)!==false)
93 $ref_findings['issues'][$cnt_i_findings]['match'] = $needle;
97 if(stripos($comments,$needle)!==false)
105 $ref_findings['comment'][$cnt_c_findings]['match'] = $needle;
140 if(stripos($comment['comment'],$needle)!==false) {
/plugin/quickstats/GEOIP/
H A Dcc_arrays_dat.php103 function qs_array_search_ci ($needle = null) argument
106 if(!$needle) return "";
111 if(stristr($eval, $needle) !== false) {
/plugin/icalevents/
H A Dsyntax-impl.php452 * @param string $needle substring to replace
458 static function str_replace_array($needle, $replace, $count, $haystack) { argument
462 $haystackArray = explode($needle, $haystack);
479 * @param string $needle substring or array of substrings to remove
482 static function str_remove_deep($needle, &$haystack) { argument
484 function (&$h, &$k) use ($needle) {
485 $h = str_replace($needle, '', $h);
500 $needle = array('</nowiki>', "\n");
502 $text = str_ireplace($needle, $haystack, $text);
/plugin/combo/ComboStrap/
H A DStringUtility.php46 public static function contain($needle, $haystack) argument
48 $pos = strpos($haystack, $needle);
204 public static function lastIndexOf($haystack, $needle) argument
210 return strrpos($haystack, $needle);
/plugin/src/
H A Dsyntax.php180 * @param string $needle Вхождение
185 function _mb_str_replace($needle, $replacement, $haystack) { argument
186 $needle_len = mb_strlen($needle);
188 $pos = mb_strpos($haystack, $needle);
192 $pos = mb_strpos($haystack, $needle, $pos + $replacement_len);
/plugin/simplechat/
H A Dajax.php7 function startsWith($haystack, $needle) argument
9 return !strncmp($haystack, $needle, strlen($needle));
/plugin/abc2/
H A Dsyntax.php364 * @param string $needle
369 function _replace_first($haystack, $needle, $replace) { argument
370 $pos = strpos($haystack, $needle);
372 $newstring = substr_replace($haystack, $replace, $pos, strlen($needle));
/plugin/quickstats/scripts/
H A Dget_pages.php7 function qs_pages_search_i ($needle = null,$month) argument
15 if(stristr($key, $needle) !== false) {
H A Dget_useragent.php5 function qs_useragent_search_ci ($needle = null, $month) argument
14 if(stristr($key, $needle) !== false) {
H A Dextended_data.php338 function qs_pages_search_i ($needle = null,$month) argument
345 if(isset($pages['page'][$needle]))return array($needle=>$pages['page'][$needle]);
350 if(stristr($key, $needle) !== false) {
442 function qs_agent_search_i ($needle = null,$month) argument
450 if(isset($val[1]) && stristr($val[1], $needle) !== false) {
/plugin/workflow/syntax/
H A Ddecision.php12 function startswith($haystack, $needle) { argument
13 return $needle === "" || strpos($haystack, $needle) === 0;
/plugin/virtualkeyboard/vk/extensions/
H A Darrayextensions.js128 Array.prototype.indexOf = function(needle,begin) { argument
130 idx = (this[i]==needle)?i:idx;
136 Array.prototype.lastIndexOf = function(needle,end) { argument
138 idx = (this[i]==needle)?i:idx;
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/
H A DStringUtilTest.php10 function testTextMatch($haystack, $needle, $collation, $matchType, $result) { argument
12 … $this->assertEquals($result, StringUtil::textMatch($haystack, $needle, $collation, $matchType));
/plugin/badbehaviour/bad-behavior/
H A Dfunctions.inc.php7 function stripos($haystack,$needle,$offset = 0) { argument
8 return(strpos(strtolower($haystack),strtolower($needle),$offset));
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Filter/Sass/
H A DBaseSassFilter.php60 foreach ($needles as $needle) {
61 if (file_exists($file = $loadPath.'/'.$needle)) {
/plugin/googlemaps/
H A Dscript.js7 function in_array(needle, haystack) { argument
9 if (haystack[i] == needle) return true;
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Filter/
H A DSassphpFilter.php99 foreach ($needles as $needle) {
100 if (file_exists($file = $includePath . '/' . $needle)) {
/plugin/findologicxmlexport/vendor/phpunit/phpunit/src/Framework/Assert/
H A DFunctions.php103 * @param mixed $needle
111 function assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message … argument
290 * @param mixed $needle
298 function assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $messa… argument
507 * @param mixed $needle
514 function assertContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIden… argument
954 * @param mixed $needle
961 function assertNotContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectI… argument
/plugin/findologicxmlexport/vendor/phpunit/phpunit/src/Framework/
H A DAssert.php111 * @param mixed $needle
123 $needle,
128 if (!is_string($needle)) {
136 $needle,
153 * @param mixed $needle
164 $needle,
176 * @param mixed $needle
189 $needle,
204 $needle,
222 * @param mixed $needle
[all …]

123