Home
last modified time | relevance | path

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

1234

/plugin/webdav/vendor/sabre/dav/lib/DAV/
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/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) {
111 $needleLength = \strlen($needle);
113 …return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLen…
H A Dbootstrap.php29 … str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($haystack ?… argument
32 …starts_with(?string $haystack, ?string $needle): bool { return p\Php80::str_starts_with($haystack … argument
35 …tr_ends_with(?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($haystack ?… argument
/plugin/scrape/vendor/symfony/polyfill-php80/
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) {
111 $needleLength = \strlen($needle);
113 …return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLen…
Dbootstrap.php29 … str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($haystack ?… argument
32 …starts_with(?string $haystack, ?string $needle): bool { return p\Php80::str_starts_with($haystack … argument
35 …tr_ends_with(?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($haystack ?… argument
/plugin/combo/vendor/symfony/polyfill-mbstring/
H A Dbootstrap.php64 …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 …on mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::m… argument
85 …on mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::m… argument
88 …n mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::m… argument
91 …nction mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strr… argument
94 …function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_str… argument
97 …tion mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::… argument
109 …unction mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count… argument
H A DMbstring.php518 public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) argument
522 return strpos($haystack, $needle, $offset);
525 $needle = (string) $needle;
526 if ('' === $needle) {
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);
550 if (0 > $offset += self::mb_strlen($needle)) {
559 $pos = '' !== $needle || 80000 > \PHP_VERSION_ID
560 ? iconv_strrpos($haystack, $needle, $encoding)
[all …]
H A Dbootstrap80.php60 …, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_… argument
75 …, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_… argument
78 …g $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstri… argument
81 …g $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstri… argument
84 …g $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstri… argument
87 … ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_s… argument
90 …, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_… argument
93 …ng $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstr… argument
105 …$haystack, ?string $needle, ?string $encoding = null): int { return p\Mbstring::mb_substr_count((s… argument
/plugin/freechat/phpfreechat/lib/pear/PHPUnit/
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/
Dselectbox.js289 this.selectMatchingOptions = function (needle /* :String */, match /* :String */) /* :Number */ { argument
290 return __setOptionsState (needle, 'selected', true, true, match);
300 …this.selectOnlyMatchingOptions = function (needle /* :String */, match /* :String */) /* :Number *… argument
301 return __setOptionsState (needle, 'selected', true, false, match);
323 …this.unselectMatchingOptions = function (needle /* :String */, match /* :String */) /* :Number */ { argument
324 return __setOptionsState (needle, 'selected', false, true, match);
334 …this.unselectOnlyMatchingOptions = function (needle /* :String */, match /* :String */) /* :Number… argument
335 return __setOptionsState (needle, 'selected', false, false, match);
348 this.fixMatchingOptions = function (needle /* :String */, match /* :String */) /* :Number */ { argument
349 return __setOptionsState (needle, 'fixed', true, true, match);
[all …]
/plugin/asciidocjs/node_modules/pug-filters/node_modules/source-map/lib/
Dsource-map-consumer.js185 var needle = { variable
192 needle.source = util.relative(this.sourceRoot, needle.source);
194 if (!this._sources.has(needle.source)) {
197 needle.source = this._sources.indexOf(needle.source);
201 var index = this._findMapping(needle,
599 var needle = { variable
605 needle,
616 if (mapping.generatedLine === needle.generatedLine) {
742 var needle = { variable
749 needle,
[all …]
/plugin/jplayer/vendor/kriswallsmith/assetic/src/Assetic/Asset/
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)…
DAssetCollectionInterface.php50 * @param AssetInterface $needle The current asset to replace
58 …public function replaceLeaf(AssetInterface $needle, AssetInterface $replacement, $graceful = false… argument
/plugin/quickstats/GEOIP/
Dcc_arrays_dat.php103 function qs_array_search_ci ($needle = null) argument
106 if(!$needle) return "";
111 if(stristr($eval, $needle) !== false) {
/plugin/issuetracker/
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/asciidocjs/node_modules/source-map/lib/
Dsource-map-consumer.js190 var needle = { variable
196 needle.source = this._findSourceIndex(needle.source);
197 if (needle.source < 0) {
203 var index = this._findMapping(needle,
648 var needle = { variable
654 needle,
665 if (mapping.generatedLine === needle.generatedLine) {
792 var needle = { variable
799 needle,
810 if (mapping.source === needle.source) {
[all …]
/plugin/icalevents/
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/src/
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/
Dajax.php7 function startsWith($haystack, $needle) argument
9 return !strncmp($haystack, $needle, strlen($needle));
/plugin/combo/ComboStrap/
H A DStringUtility.php50 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/abc2/
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/
Dget_pages.php7 function qs_pages_search_i ($needle = null,$month) argument
15 if(stristr($key, $needle) !== false) {
Dget_useragent.php5 function qs_useragent_search_ci ($needle = null, $month) argument
14 if(stristr($key, $needle) !== false) {
/plugin/workflow/syntax/
Ddecision.php12 function startswith($haystack, $needle) { argument
13 return $needle === "" || strpos($haystack, $needle) === 0;

1234