Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 25 of 44) sorted by relevance

12

/plugin/webdav/vendor/sabre/dav/lib/DAV/
H A DStringUtil.php21 * @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 DStringUtil.php21 * @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 DPhp80.php91 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, -$needleLength);
H A Dbootstrap.php29 function str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($haystack ?? '', $needle ?? ''); } argument
32 function str_starts_with(?string $haystack, ?string $needle): bool { return p\Php80::str_starts_with($haystack ?? '', $needle ?? ''); } argument
35 function str_ends_with(?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($haystack ?? '', $needle ?? ''); } argument
/plugin/combo/vendor/symfony/polyfill-mbstring/
H A Dbootstrap.php64 function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); } argument
79 function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); } argument
82 function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); } argument
85 function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); } argument
88 function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, argument
91 mb_strripos($haystack, $needle, $offset = 0, $encoding = null) global() argument
94 mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) global() argument
97 mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) global() argument
109 mb_substr_count($haystack, $needle, $encoding = null) global() argument
[all...]
H A DMbstring.php494 public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) argument
498 return strpos($haystack, $needle, $offset);
512 return \iconv_strpos($haystack, $needle, $offset, $encoding);
515 public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) argument
519 return strrpos($haystack, $needle, $offset);
527 $haystack = self::mb_substr($haystack, 0, $offset, $encoding);
531 $haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
536 ? \iconv_strrpos($haystack,
638 mb_stripos($haystack, $needle, $offset = 0, $encoding = null) global() argument
646 mb_stristr($haystack, $needle, $part = false, $encoding = null) global() argument
653 mb_strrchr($haystack, $needle, $part = false, $encoding = null) global() argument
666 mb_strrichr($haystack, $needle, $part = false, $encoding = null) global() argument
674 mb_strripos($haystack, $needle, $offset = 0, $encoding = null) global() argument
682 mb_strstr($haystack, $needle, $part = false, $encoding = null) global() argument
747 mb_substr_count($haystack, $needle, $encoding = null) global() argument
800 getSubpart($pos, $part, $haystack, $encoding) global() argument
[all...]
H A Dbootstrap80.php60 function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); } argument
75 function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); } argument
78 function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } argument
81 function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } argument
84 function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrichr((string) $haystack, (strin argument
87 mb_strripos(string $haystack, string $needle, int $offset = 0, string $encoding = null) global() argument
90 mb_strrpos(string $haystack, string $needle, int $offset = 0, string $encoding = null) global() argument
93 mb_strstr(string $haystack, string $needle, bool $before_needle = false, string $encoding = null) global() argument
105 mb_substr_count(string $haystack, string $needle, string $encoding = null) global() argument
[all...]
/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/src/
H A Dsyntax.php182 * @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/
H A DAssert.php112 * @param mixed $haystack
121 is_object($haystack) && $haystack instanceof Traversable) {
177 * @param mixed $haystack
186 is_object($haystack) && $haystack instanceof Traversable) {
253 is_object($haystack) && $haystack instanceof Traversable)) {
265 $haystack,
284 is_object($haystack) && $haystack instanceof Traversable)) {
292 $haystack,
332 is_object($haystack) && $haystack instanceof Traversable)) {
344 $haystack,
[all …]
/plugin/icalevents/
H A Dsyntax-impl.php455 * @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/
H A DFunctions.php508 * @param mixed $haystack
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
973 * @param mixed $haystack
989 * @param mixed $haystack
[all …]
/plugin/googlemaps/
H A Dscript.js7 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 DStringUtility.php47 * @param $haystack
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/
H A Daction.php262 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/
H A Dsyntax.php363 * @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/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/tagentry/
H A Daction.php158 function in_iarray( $needle, $haystack ) { argument
159 if ( !is_array( $haystack ) )
161 foreach ( $haystack as $t ) {
/plugin/combo/action/
H A Dsnippetsbootstrap.php156 $haystack = $scriptData["_data"];
158 $haystack = $scriptData["src"];
160 if (preg_match("/$scriptToDelete/i", $haystack)) {
/plugin/simplechat/
H A Dajax.php7 function startsWith($haystack, $needle) argument
9 return !strncmp($haystack, $needle, strlen($needle));
/plugin/todo/
H A Daction.php214 * Find position of $occurance-th $needle in haystack
216 private function _strnpos($haystack, $needle, $occurance, $pos = 0) {
218 $pos = strpos($haystack, $needle, $pos);
192 _strnpos($haystack, $needle, $occurance, $pos = 0) global() argument
/plugin/workflow/syntax/
H A Ddecision.php12 function startswith($haystack, $needle) { argument
13 return $needle === "" || strpos($haystack, $needle) === 0;
/plugin/nspages/printers/
H A DprinterTree.php134 private function str_contains(string $haystack, string $needle){ argument
135 return strpos($haystack, $needle) !== false;
/plugin/ckgedit/fckeditor/editor/filemanager/connectors/php/
H A Dutf8.php538 * @param string $haystack
543 function utf8_strpos($haystack, $needle, $offset=0){ argument
548 $pos = strpos($haystack, $needle, $offset + $comp);
553 $length = utf8_strlen(substr($haystack, 0, $pos));

12