Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 55) sorted by path

123

/dokuwiki/data/pages/wiki/
H A Dsyntax.txt137 Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}
/dokuwiki/inc/Action/
H A DRedirect.php36 } elseif ($PRE && preg_match('/^\s*==+([^=\n]+)/', $TEXT, $match)) {
39 $opts['fragment'] = sectionID($match[0], $check);
/dokuwiki/inc/
H A DErrorHandler.php183 if (preg_match('/lib\/plugins\/(\w+)\//', str_replace('\\', '/', $e->getFile()), $match)) {
184 return $match[1];
190 preg_match('/\w+?_plugin_(\w+)/', $line['class'], $match)
192 return $match[1];
197 preg_match('/lib\/plugins\/(\w+)\//', str_replace('\\', '/', $line['file']), $match)
199 return $match[1];
H A DMailer.class.php385 foreach ($matches as $match) {
386 $addresses[] = rtrim($match[0], ',');
H A Dauth.php251 * crypted password and browserID match between session and cookie
573 // check superuser match
614 * @param string $user user to match against
753 //check exact match first
756 foreach ($matches as $match) {
757 $match = preg_replace('/#.*$/', '', $match); //ignore comments
758 $acl = preg_split('/[ \t]+/', $match);
771 //we had a match - return it
786 foreach ($matches as $match) {
[all...]
H A Dcommon.php133 msg('Security Token did not match. Possible CSRF attack.', -1);
630 foreach ($matches as $match) {
631 $resize[$match[1]] = $match[2];
H A Dfetch.functions.php125 static fn($match) => rawurlencode($match[0]),
H A Dfulltext.php256 * @param bool $in_ns match against namespace as well?
465 $match = [];
490 } elseif (preg_match('/' . $re3 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
491 } elseif (preg_match('/' . $re2 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
492 } elseif (preg_match('/' . $re1 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
497 [$str, $idx] = $match[0];
503 // establish context, 100 bytes surrounding the match string
536 // set $offset for next match attempt
537 // continue matching after the current match
538 // if the current match i
[all...]
H A Dhtml.php308 return @preg_replace_callback("/((<[^>]*)|$regex)/ui", function ($match) {
309 $hlight = unslash($match[0]);
310 if (!isset($match[2])) {
H A Dinit.php623 // match drive letter and UNC paths
624 if (preg_match('!^([a-zA-z]:)(.*)!', $path, $match)) {
625 $root = $match[1] . '/';
626 $path = $match[2];
627 } elseif (preg_match('!^(\\\\\\\\[^\\\\/]+\\\\[^\\\\/]+[\\\\/])(.*)!', $path, $match)) {
628 $root = $match[1];
629 $path = $match[2];
H A Dio.php405 * Delete lines that match $badline from $file.
668 $match = [];
671 preg_match('/attachment;\s*filename\s*=\s*"([^"]*)"/i', $content_disposition, $match)
673 $name = PhpString::basename($match[1]);
779 if (preg_match($pattern, $line, $match)) {
781 $matches[] = $match;
H A Dpageutils.php75 if (preg_match('/^' . preg_quote($script, '/') . '(.*)/', $request, $match)) {
76 $id = preg_replace('/\?.*/', '', $match[1]);
H A Dsearch.php481 * filematch string match files against this regexp (default: '', so accept everything)
482 * idmatch string match full ID against this regexp (default: '', so accept everything)
483 * dirmatch string match directory against this regexp when adding (default: '', so accept everything)
484 * nsmatch string match namespace against this regexp when adding (default: '', so accept everything)
485 * recmatch string match directory against this regexp when recursing (default: '', so accept everything)
530 $match = empty($opts['recmatch']) || preg_match('/' . $opts['recmatch'] . '/', $file);
531 if (!$match) {
532 return false; // doesn't match
/dokuwiki/inc/Extension/
H A DSyntaxPlugin.php70 * Usually you should only need the $match param.
72 * @param string $match The text matched by the patterns
73 * @param int $state The lexer state for the match
78 abstract public function handle($match, $state, $pos, Doku_Handler $handler);
79 handle($match, $state, $pos, Doku_Handler $handler) global() argument
/dokuwiki/inc/HTTP/
H A DHTTPClient.php31 public $header_regexp = ''; // if set this RE must match against the headers, else abort
320 if ($this->max_bodysize && preg_match('/\r?\nContent-Length:\s*(\d+)\r?\n/i', $r_headers, $match)) {
321 if ($match[1] > $this->max_bodysize) {
389 throw new HTTPClientException('The received headers did not match the given regexp');
/dokuwiki/inc/Parsing/Handler/
H A DLists.php175 protected function interpretSyntax($match, &$type) argument
177 if (str_ends_with($match, '*')) {
184 return substr_count(str_replace("\t", ' ', $match), ' ') + 1;
/dokuwiki/inc/Parsing/Lexer/
H A DLexer.php177 * @param string $matched Actual token match.
178 * @param bool|string $mode Mode after match. A boolean false mode causes no change.
276 * Tries to match a chunk of text and if successful removes the recognised chunk and any leading
282 * True if no match, false if there is a parsing error.
293 [$unparsed, $match, $raw] = $split;
294 return [$unparsed, $match, $action];
H A DParallelRegex.php16 * Any of the contained patterns could match and when one does it's label is returned.
20 /** @var string[] patterns to match */
49 * on a match. Label must be ASCII
60 * Attempts to match all patterns at once against a string.
62 * @param string $subject String to match against.
63 * @param string $match First matched portion of
65 * @return bool|string False if no match found, label if label exists, true if not
67 public function apply($subject, &$match)
73 $match = "";
77 $match
69 apply($subject, & $match) global() argument
[all...]
/dokuwiki/inc/Ui/
H A DPageDiff.php542 return preg_replace_callback('/<[^>]*>|[^<> ]{12,}/', function ($match) {
543 // if match is an html tag, return it intact
544 if ($match[0][0] == '<') return $match[0];
551 &\#?\\w{1,6}; # yes pattern - a quicker match for the html entity, since we know we have one
556 return preg_replace('<' . $regex . '>xu', '\0<wbr>', $match[0]);
/dokuwiki/inc/Utf8/
H A DPhpString.php162 if (!preg_match('#' . $offset_pattern . $length_pattern . '#us', $str, $match)) return '';
163 return $match[1];
/dokuwiki/inc/parser/
H A Dhandler.php117 * @param string $match matched syntax
119 public function addPluginCall($plugin, $args, $state, $pos, $match)
121 $call = ['plugin', [$plugin, $args, $state, $match], $pos];
187 foreach ($matches as $match) {
188 $equal_sign = strpos($match [0], '=');
190 $key = trim($match[0]);
193 $key = substr($match[0], 0, $equal_sign);
194 $value = substr($match[0], $equal_sign + 1);
246 * @param string $match matched syntax
251 protected function nestingTag($match,
111 addPluginCall($plugin, $args, $state, $pos, $match) global() argument
239 nestingTag($match, $state, $pos, $name) global() argument
279 plugin($match, $state, $pos, $pluginname) global() argument
298 base($match, $state, $pos) global() argument
314 header($match, $state, $pos) global() argument
337 notoc($match, $state, $pos) global() argument
348 nocache($match, $state, $pos) global() argument
359 linebreak($match, $state, $pos) global() argument
370 eol($match, $state, $pos) global() argument
381 hr($match, $state, $pos) global() argument
392 strong($match, $state, $pos) global() argument
403 emphasis($match, $state, $pos) global() argument
414 underline($match, $state, $pos) global() argument
425 monospace($match, $state, $pos) global() argument
436 subscript($match, $state, $pos) global() argument
447 superscript($match, $state, $pos) global() argument
458 deleted($match, $state, $pos) global() argument
469 footnote($match, $state, $pos) global() argument
512 listblock($match, $state, $pos) global() argument
540 unformatted($match, $state, $pos) global() argument
553 preformatted($match, $state, $pos) global() argument
582 quote($match, $state, $pos) global() argument
617 file($match, $state, $pos) global() argument
628 code($match, $state, $pos, $type = 'code') global() argument
656 acronym($match, $state, $pos) global() argument
667 smiley($match, $state, $pos) global() argument
678 wordblock($match, $state, $pos) global() argument
689 entity($match, $state, $pos) global() argument
700 multiplyentity($match, $state, $pos) global() argument
712 singlequoteopening($match, $state, $pos) global() argument
723 singlequoteclosing($match, $state, $pos) global() argument
734 apostrophe($match, $state, $pos) global() argument
745 doublequoteopening($match, $state, $pos) global() argument
757 doublequoteclosing($match, $state, $pos) global() argument
773 camelcaselink($match, $state, $pos) global() argument
784 internallink($match, $state, $pos) global() argument
854 filelink($match, $state, $pos) global() argument
865 windowssharelink($match, $state, $pos) global() argument
876 media($match, $state, $pos) global() argument
894 rss($match, $state, $pos) global() argument
929 externallink($match, $state, $pos) global() argument
953 emaillink($match, $state, $pos) global() argument
965 table($match, $state, $pos) global() argument
1022 Doku_Handler_Parse_Media($match) global() argument
[all...]
H A Dmetadata.php526 * @param string $match original link - probably not much use argument
531 public function interwikilink($match, $name, $wikiName, $wikiUri)
H A Drenderer.php119 * @param string $match raw matched syntax
121 public function plugin($name, $data, $state = '', $match = '')
945 static fn($match) => rawurlencode($match[0]),
115 plugin($name, $data, $state = '', $match = '') global() argument
H A Dxhtml.php1025 * @param string $match original link - probably not much use
1032 public function interwikilink($match, $name, $wikiName, $wikiUri, $returnonly = false)
969 interwikilink($match, $name, $wikiName, $wikiUri, $returnonly = false) global() argument
/dokuwiki/lib/exe/
H A Dcss.php390 if (preg_match('/(.*?)\.svg$/i', $file, $match)) {
391 $exts[] = strtolower($match[1]);
485 * @param array $match see http://php.net/preg_replace_callback
488 public function replacements($match)
491 if (preg_match('#^(/|data:|https?://)#', $match[3])) { // not a relative url? - no adjustment required
492 return $match[0];
493 } elseif (str_ends_with($match[3], '.less')) { // a less file import? - requires a file system location
494 if ($match[3][0] != '/') {
495 $match[3] = $this->getRelativePath() . '/' . $match[
466 replacements($match) global() argument
490 css_datauri($match) global() argument
[all...]

123