| /plugin/webdav/vendor/sabre/dav/lib/DAV/ |
| D | StringUtil.php | 21 * @param string $haystack 27 static function textMatch($haystack, $needle, $collation, $matchType = 'contains') { argument 34 $haystack = str_replace(range('a', 'z'), range('A', 'Z'), $haystack); 43 $haystack = mb_strtoupper($haystack, '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 D | StringUtil.php | 21 * @param string $haystack 27 static function textMatch($haystack, $needle, $collation, $matchType = 'contains') { argument 34 $haystack = str_replace(range('a', 'z'), range('A', 'Z'), $haystack); 43 $haystack = mb_strtoupper($haystack, '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/combo/vendor/symfony/polyfill-php80/ |
| H A D | Php80.php | 91 public static function str_contains(string $haystack, string $needle): bool argument 93 return '' === $needle || false !== strpos($haystack, $needle); 96 public static function str_starts_with(string $haystack, string $needle): bool argument 98 return 0 === strncmp($haystack, $needle, \strlen($needle)); 101 public static function str_ends_with(string $haystack, string $needle): bool argument 103 if ('' === $needle || $needle === $haystack) { 107 if ('' === $haystack) { 113 …return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLen…
|
| H A D | bootstrap.php | 29 …function str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($ha… argument 32 …function str_starts_with(?string $haystack, ?string $needle): bool { return p\Php80::str_starts_wi… argument 35 …function str_ends_with(?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($… argument
|
| /plugin/scrape/vendor/symfony/polyfill-php80/ |
| D | Php80.php | 91 public static function str_contains(string $haystack, string $needle): bool argument 93 return '' === $needle || false !== strpos($haystack, $needle); 96 public static function str_starts_with(string $haystack, string $needle): bool argument 98 return 0 === strncmp($haystack, $needle, \strlen($needle)); 101 public static function str_ends_with(string $haystack, string $needle): bool argument 103 if ('' === $needle || $needle === $haystack) { 107 if ('' === $haystack) { 113 …return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLen…
|
| D | bootstrap.php | 29 …function str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($ha… argument 32 …function str_starts_with(?string $haystack, ?string $needle): bool { return p\Php80::str_starts_wi… argument 35 …function str_ends_with(?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($… argument
|
| /plugin/combo/vendor/symfony/polyfill-mbstring/ |
| H A D | bootstrap.php | 64 …function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strp… argument 79 …function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_str… argument 82 …function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstr… argument 85 …function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstr… argument 88 …function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbst… argument 91 …function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_st… argument 94 …function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_str… argument 97 …function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstri… argument 109 …function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_coun… argument
|
| H A D | Mbstring.php | 518 public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) argument 522 return strpos($haystack, $needle, $offset); 536 return iconv_strpos($haystack, $needle, $offset, $encoding); 539 public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) argument 543 return strrpos($haystack, $needle, $offset); 551 $haystack = self::mb_substr($haystack, 0, $offset, $encoding); 555 $haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding); 560 ? iconv_strrpos($haystack, $needle, $encoding) 561 : self::mb_strlen($haystack, $encoding); 663 public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) argument [all …]
|
| H A D | bootstrap80.php | 60 …s(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { ret… argument 75 …(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { retu… argument 78 …g $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|fals… argument 81 …g $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|fals… argument 84 … $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false… argument 87 …(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { retu… argument 90 …(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { retu… argument 93 …g $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|fals… argument 105 …bstr_count(?string $haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring:… argument
|
| /plugin/freechat/phpfreechat/lib/pear/PHPUnit/ |
| D | Assert.php | 77 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/src/ |
| D | syntax.php | 182 * @param string $haystack Строка на входе 185 function _mb_str_replace($needle, $replacement, $haystack) { argument 188 $pos = mb_strpos($haystack, $needle); 190 $haystack = mb_substr($haystack, 0, $pos) . $replacement 191 . mb_substr($haystack, $pos + $needle_len); 192 $pos = mb_strpos($haystack, $needle, $pos + $replacement_len); 194 return $haystack;
|
| /plugin/findologicxmlexport/vendor/phpunit/phpunit/src/Framework/ |
| D | Assert.php | 112 * @param mixed $haystack 118 …public static function assertContains($needle, $haystack, $message = '', $ignoreCase = false, $che… argument 120 if (is_array($haystack) || 121 is_object($haystack) && $haystack instanceof Traversable) { 127 } elseif (is_string($haystack)) { 146 static::assertThat($haystack, $constraint, $message); 177 * @param mixed $haystack 183 …public static function assertNotContains($needle, $haystack, $message = '', $ignoreCase = false, $… argument 185 if (is_array($haystack) || 186 is_object($haystack) && $haystack instanceof Traversable) { [all …]
|
| /plugin/icalevents/ |
| D | syntax-impl.php | 455 * @param string $haystack string to be searched 458 static function str_replace_array($needle, $replace, $count, $haystack) { argument 460 return $haystack; 462 $haystackArray = explode($needle, $haystack); 480 * @param array $haystack array to searched 482 static function str_remove_deep($needle, &$haystack) { argument 483 array_walk_recursive($haystack, 501 $haystack = array('', $this->nowikiEnd() . '\\\\ '. $this->nowikiStart()); 502 $text = str_ireplace($needle, $haystack, $text);
|
| /plugin/findologicxmlexport/vendor/phpunit/phpunit/src/Framework/Assert/ |
| D | Functions.php | 508 * @param mixed $haystack 514 function assertContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectIden… argument 526 * @param mixed $haystack 530 function assertContainsOnly($type, $haystack, $isNativeType = null, $message = '') argument 542 * @param array|Traversable $haystack 545 function assertContainsOnlyInstancesOf($classname, $haystack, $message = '') argument 557 * @param mixed $haystack 560 function assertCount($expectedCount, $haystack, $message = '') argument 955 * @param mixed $haystack 961 function assertNotContains($needle, $haystack, $message = '', $ignoreCase = false, $checkForObjectI… argument [all …]
|
| /plugin/googlemaps/ |
| D | script.js | 7 function in_array(needle, haystack) { argument 8 for (var i=0; i<haystack.length; i++) 9 if (haystack[i] == needle) return true;
|
| /plugin/combo/ComboStrap/ |
| H A D | StringUtility.php | 50 public static function contain($needle, $haystack) argument 52 $pos = strpos($haystack, $needle); 234 public static function lastIndexOf($haystack, $needle) argument 240 return strrpos($haystack, $needle);
|
| /plugin/evesso/ |
| D | action.php | 262 private function startsWith($haystack, $needle) { argument 264 return (substr($haystack, 0, $length) === $needle); 267 private function replaceFirst($haystack, $needle, $replace = '') { argument 268 $pos = strpos($haystack, $needle); 270 $haystack = substr_replace($haystack, $replace, $pos, strlen($needle)); 272 return $haystack;
|
| /plugin/abc2/ |
| D | syntax.php | 363 * @param string $haystack 369 function _replace_first($haystack, $needle, $replace) { argument 370 $pos = strpos($haystack, $needle); 372 $newstring = substr_replace($haystack, $replace, $pos, strlen($needle));
|
| /plugin/scrape/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/ |
| D | DirectLex.php | 348 * @param string $haystack 354 protected function substrCount($haystack, $needle, $offset, $length) argument 361 $haystack = substr($haystack, $offset, $length); 362 return substr_count($haystack, $needle); 364 return substr_count($haystack, $needle, $offset, $length);
|
| /plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/ |
| H A D | StringUtilTest.php | 10 function testTextMatch($haystack, $needle, $collation, $matchType, $result) { argument 12 … $this->assertEquals($result, StringUtil::textMatch($haystack, $needle, $collation, $matchType));
|
| /plugin/matrixnotifierwas/vendor/rappasoft/laravel-helpers/src/ |
| D | helpers.php | 535 * @param string $haystack 539 function ends_with($haystack, $needles) argument 542 if ((string)$needle === substr($haystack, -strlen($needle))) { 651 * @param string $haystack 655 function starts_with($haystack, $needles) argument 658 if ($needle != '' && strpos($haystack, $needle) === 0) { 671 * @param string $haystack 675 function str_contains($haystack, $needles) argument 678 if ($needle != '' && strpos($haystack, $needle) !== false) {
|
| /plugin/badbehaviour/bad-behavior/ |
| D | functions.inc.php | 7 function stripos($haystack,$needle,$offset = 0) { argument 8 return(strpos(strtolower($haystack),strtolower($needle),$offset));
|
| /plugin/tagentry/ |
| D | action.php | 158 function in_iarray( $needle, $haystack ) { argument 159 if ( !is_array( $haystack ) ) 161 foreach ( $haystack as $t ) {
|
| /plugin/combo/action/ |
| H A D | snippetsbootstrap.php | 156 $haystack = $scriptData["_data"]; 158 $haystack = $scriptData["src"]; 160 if (preg_match("/$scriptToDelete/i", $haystack)) {
|
| /plugin/simplechat/ |
| D | ajax.php | 7 function startsWith($haystack, $needle) argument 9 return !strncmp($haystack, $needle, strlen($needle));
|