Home
last modified time | relevance | path

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

123

/dokuwiki/inc/parser/
H A Dhandler.php117 * @param string $match matched syntax
119 public function addPluginCall($plugin, $args, $state, $pos, $match) argument
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, $state, $pos, $name) argument
[all …]
/dokuwiki/vendor/simplepie/simplepie/src/Parse/
H A DDate.php683 if (preg_match($pcre, $date, $match)) {
685 $year = (int) $match['year'];
686 $month = isset($match['month']) ? (int) $match['month'] : 1;
687 $day = isset($match['day']) ? (int) $match['day'] : 1;
688 $hour = isset($match['hour']) ? (int) $match['hour'] : 0;
689 $minute = isset($match['minute']) ? (int) $match['minute'] : 0;
690 $second = isset($match['second']) ? (int) $match['second'] : 0;
691 …$second_fraction = isset($match['second_fraction']) ? ((int) $match['second_fraction']) / (10 ** s…
692 $tz_sign = ($match['tz_sign'] ?? '') === '-' ? -1 : 1;
693 $tz_hour = isset($match['tz_hour']) ? (int) $match['tz_hour'] : 0;
[all …]
/dokuwiki/lib/scripts/
H A Deditor.js151 var match = search.match(/(\n +([\*-] ?)?)/);
152 if(match){
154 var match2 = search.match(/^\n +[\*-]\s*$/);
156 if (match2 && this.value.substr(selection.start).match(/^($|\r?\n)/)) {
163 insertAtCarret(this.id,match[1]);
171 var match = search.match(/(\n +)([*-] ?)$/);
172 if(match){
173 var spaces = match[1].length-1;
192 var match = search.match(/(\n +)([*-] )$/);
193 if(match){
H A Dpage.js29 const match = $tgt.attr('class').match(/(\s+|^)editbutton_(\d+)(\s+|$)/);
30 if(!match) return;
31 const nr = match[2];
/dokuwiki/_test/tests/test/
H A Dedit_and_save.test.php51 foreach ($matches as $match) {
52 $input[$match[1]] = $match[2];
73 foreach ($matches as $match) {
74 $input[$match[1]] = $match[2];
134 foreach ($matches as $match) {
135 $input[$match[1]] = $match[2];
156 foreach ($matches as $match) {
157 $input[$match[1]] = $match[2];
/dokuwiki/_test/tests/inc/parser/
H A Dlexer.test.php20 $this->assertFalse($regex->apply("Hello", $match));
21 $this->assertEquals($match, "");
26 $this->assertTrue($regex->apply("", $match));
27 $this->assertEquals($match, "");
32 $this->assertTrue($regex->apply("Hello", $match));
33 $this->assertEquals($match, "Hello");
38 $this->assertTrue($regex->apply("abcdef", $match));
39 $this->assertEquals($match, "abc");
40 $this->assertTrue($regex->apply("AAABCabcdef", $match));
41 $this->assertEquals($match, "abc");
[all …]
/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) argument
491 …if (preg_match('#^(/|data:|https?://)#', $match[3])) { // not a relative url? - no adjustment requ…
492 return $match[0];
493 …} elseif (str_ends_with($match[3], '.less')) { // a less file import? - requires a file system loc…
494 if ($match[3][0] != '/') {
495 $match[3] = $this->getRelativePath() . '/' . $match[3];
498 $match[3] = $this->location . $match[3];
[all …]
H A Djs.php184 while (preg_match('#/\*\s*DOKUWIKI:include(_once)?\s+([\w\.\-_/]+)\s*\*/#', $data, $match)) {
185 $ifile = $match[2];
188 if ($match[1]) {
191 $data = str_replace($match[0], '', $data);
206 $data = str_replace($match[0], $idata, $data);
/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/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];
/dokuwiki/inc/Remote/OpenApiDoc/
H A DOpenAPIGenerator.php72 if (preg_match('/ *function (\w+)/', $line, $match)) {
73 $method = $match[1];
75 … if (preg_match('/^ *throw new RemoteException\(\'([^\']+)\'.*?, (\d+)/', $line, $match)) {
80 'code' => $match[2],
81 'message' => $match[1],
84 … if (preg_match('/^ *throw new AccessDeniedException\(\'([^\']+)\'.*?, (\d+)/', $line, $match)) {
89 'code' => $match[2],
90 'message' => $match[1],
331 if (preg_match('/^https?:\/\/(www\.)?dokuwiki\.org\/(.+)$/', $url, $match)) {
332 $name = $match[2];
H A DDocBlock.php43 foreach ($matches as $match) {
44 $tags[$match[1]][] = trim($match[2]);
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Decode/HTML/
H A DEntities.php550 for ($i = 0, $match = null; $i < 9 && $this->consume() !== false; $i++) {
555 $match = $consumed;
559 if ($match !== null) {
560 …ata = substr_replace($this->data, $entities[$match], $this->position - strlen($consumed) - 1, strl…
561 $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/)){
/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.php63 * @param string $match First matched portion of
67 public function apply($subject, &$match) argument
73 $match = "";
77 $match = $matches[0];
/dokuwiki/inc/Extension/
H A DSyntaxPlugin.php72 * @param string $match The text matched by the patterns
78 abstract public function handle($match, $state, $pos, Doku_Handler $handler); argument
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/
H A DStrings.php60 foreach ($m[0] as $match) {
72 '/' . Util::pregQuote($match) . '/',
/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): // Set top and bottom lines of a win…
[all …]
/dokuwiki/vendor/simplepie/simplepie/src/Net/
H A DIPv6.php110 foreach ($matches[0] as $match) {
111 if (strlen($match[0]) > $max) {
112 $max = strlen($match[0]);
113 $pos = $match[1];
/dokuwiki/vendor/php81_bc/strftime/src/
H A Dphp-8.1-strftime.php130 …$out = preg_replace_callback('/(?<!%)%([_#-]?)([a-zA-Z])/', function ($match) use ($translation_ta…
131 $prefix = $match[1];
132 $char = $match[2];
/dokuwiki/vendor/simplepie/simplepie/src/
H A DSanitize.php625 public function do_strip_htmltags(array $match) argument
628 if (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
629 $match[1] = htmlspecialchars($match[1], ENT_COMPAT, 'UTF-8');
630 $match[2] = htmlspecialchars($match[2], ENT_COMPAT, 'UTF-8');
631 return "&lt;$match[1]$match[2]&gt;$match[3]&lt;/$match[1]&gt;";
633 return htmlspecialchars($match[0], ENT_COMPAT, 'UTF-8');
635 } elseif (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
636 return $match[4];
/dokuwiki/lib/plugins/info/
H A Dsyntax.php50 * @param string $match The text matched by the patterns
56 public function handle($match, $state, $pos, Doku_Handler $handler) argument
58 $match = substr($match, 7, -2); //strip ~~INFO: from start and ~~ from end
59 return [strtolower($match)];
75 match ($data[0]) {
/dokuwiki/lib/plugins/config/core/
H A DConfigParser.php54 if (preg_match('/^array ?\((.*)\)/', $value, $match)) {
55 $arr = explode(',', $match[1]);
/dokuwiki/inc/Parsing/Handler/
H A DLists.php30 match ($call[0]) {
167 protected function interpretSyntax($match, &$type) argument
169 if (str_ends_with($match, '*')) {
176 return substr_count(str_replace("\t", ' ', $match), ' ') + 1;

123