Home
last modified time | relevance | path

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

123

/dokuwiki/vendor/simplepie/simplepie/src/Parse/
H A DDate.php722 if (preg_match($pcre, $date, $match)) {
724 $year = (int) $match['year'];
725 $month = isset($match['month']) ? (int) $match['month'] : 1;
726 $day = isset($match['day']) ? (int) $match['day'] : 1;
727 $hour = isset($match['hour']) ? (int) $match['hour'] : 0;
728 $minute = isset($match['minute']) ? (int) $match['minut
[all...]
/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...]
/dokuwiki/lib/scripts/
H A Deditor.js148 var match = search.match(/(\n +([\*-] ?)?)/);
149 if(match){
151 var match2 = search.match(/^\n +[\*-]\s*$/);
153 if (match2 && this.value.substr(selection.start).match(/^($|\r?\n)/)) {
160 insertAtCarret(this.id,match[1]);
168 var match = search.match(/(\n +)([*-] ?)$/);
169 if(match){
170 var spaces = match[
[all...]
H A Dpage.js29 const match = $tgt.attr('class').match(/(\s+|^)editbutton_(\d+)(\s+|$)/);
30 if(!match) return;
31 const nr = match[2];
H A Dbehaviour.js139 if(!LANG.nosmblinks || navigator.userAgent.match(/(Trident|MSIE|Edge)/)) {
172 show_list = $this.val().match(/:$/);
/dokuwiki/lib/plugins/styling/
H A Dadmin.php130 if (preg_match('/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/', $value, $match)) {
131 return '#' . $match[1] . $match[1] . $match[2] . $match[2] . $match[3] . $match[3];
/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...]
H A Djs.php183 while (preg_match('#/\*\s*DOKUWIKI:include(_once)?\s+([\w\.\-_/]+)\s*\*/#', $data, $match)) {
184 $ifile = $match[2];
187 if ($match[1]) {
190 $data = str_replace($match[0], '', $data);
205 $data = str_replace($match[0], $idata, $data);
/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 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 Dfetch.functions.php125 static fn($match) => rawurlencode($match[0]),
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Decode/HTML/
H A DEntities.php129 * @return mixed A series of characters that match the range, or false
582 for ($i = 0, $match = null; $i < 9 && $this->consume() !== false; $i++) {
585 $match = $consumed;
589 if ($match !== null) {
590 $this->data = substr_replace($this->data, $entities[$match], $this->position - strlen($consumed) - 1, strlen($match) + 1);
591 $this->position += strlen($entities[$match]) - strlen($consumed) - 1;
/dokuwiki/lib/tpl/dokuwiki/
H A Dscript.js21 if (device_class.match(/tablet/)) return;
25 if (device_class.match(/phone/)) return;
49 if (device_class.match(/mobile/)){
73 // increase sidebar length to match content (desktop mode only)
/dokuwiki/inc/Action/
H A DRedirect.php36 } elseif ($PRE && preg_match('/^\s*==+([^=\n]+)/', $TEXT, $match)) {
39 $opts['fragment'] = sectionID($match[0], $check);
/dokuwiki/inc/Parsing/Lexer/
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/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/vendor/simplepie/simplepie/src/Net/
H A DIPv6.php150 foreach ($matches[0] as $match) {
151 if (strlen($match[0]) > $max) {
152 $max = strlen($match[0]);
153 $pos = $match[1];
/dokuwiki/vendor/simplepie/simplepie/src/
H A DSanitize.php519 public function do_strip_htmltags($match) argument
522 if (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
523 $match[1] = htmlspecialchars($match[1], ENT_COMPAT, 'UTF-8');
524 $match[2] = htmlspecialchars($match[2], ENT_COMPAT, 'UTF-8');
525 return "&lt;$match[1]$match[2]&gt;$match[
[all...]
H A DIRI.php330 if (preg_match('/^((?P<scheme>[^:\/?#]+):)?(\/\/(?P<authority>[^\/?#]*))?(?P<path>[^?#]*)(\?(?P<query>[^#]*))?(#(?P<fragment>.*))?$/', $iri, $match)) {
331 if ($match[1] === '') {
332 $match['scheme'] = null;
334 if (!isset($match[3]) || $match[3] === '') {
335 $match['authority'] = null;
337 if (!isset($match[5])) {
338 $match['path'] = '';
340 if (!isset($match[6]) || $match[
532 remove_iunreserved_percent_encoded($match) global() argument
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DANSI.php266 case preg_match('#\x1B\[(\d+)B#', $this->ansi, $match): // Move cursor down n lines
268 $this->y += (int) $match[1];
270 case preg_match('#\x1B\[(\d+);(\d+)H#', $this->ansi, $match): // Move cursor to screen location v,h
273 $this->x = $match[2] - 1;
274 $this->y = (int) $match[1] - 1;
276 case preg_match('#\x1B\[(\d+)C#', $this->ansi, $match): // Move cursor right n lines
278 $this->x += $match[1];
280 case preg_match('#\x1B\[(\d+)D#', $this->ansi, $match): // Move cursor left n lines
282 $this->x -= $match[1];
287 case preg_match('#\x1B\[(\d+);(\d+)r#', $this->ansi, $match)
[all...]
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php54 if (preg_match('/^array ?\((.*)\)/', $value, $match)) {
55 $arr = explode(',', $match[1]);
/dokuwiki/lib/plugins/info/
H A Dsyntax.php48 * Handle the match
50 * @param string $match The text matched by the patterns
51 * @param int $state The lexer state for the match
56 public function handle($match, $state, $pos, Doku_Handler $handler)
58 $match = substr($match, 7, -2); //strip ~~INFO: from start and ~~ from end
59 return [strtolower($match)];
54 handle($match, $state, $pos, Doku_Handler $handler) global() argument
/dokuwiki/lib/plugins/logviewer/
H A Dscript.js15 if (elem.innerText.match(re)) {
/dokuwiki/lib/plugins/authldap/
H A Dauth.php257 if ($grpkey !== 'count' && preg_match($regexp, $grp, $match)) {
259 $info[$localkey][] = $match[1];
261 $info[$localkey] = $match[1];
461 //replace each match
462 foreach ($matches[1] as $match) {
464 if (is_array($placeholders[$match])) {
465 $value = $placeholders[$match][0];
467 $value = $placeholders[$match];
470 $filter = str_replace('%{' . $match . '}', $value, $filter);
476 * return true if $user + $info match
[all...]
/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;

123