Home
last modified time | relevance | path

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

123

/dokuwiki/vendor/simplepie/simplepie/src/Parse/
DDate.php721 if (preg_match($pcre, $date, $match)) {
723 $year = (int) $match['year'];
724 $month = isset($match['month']) ? (int) $match['month'] : 1;
725 $day = isset($match['day']) ? (int) $match['day'] : 1;
726 $hour = isset($match['hour']) ? (int) $match['hour'] : 0;
727 $minute = isset($match['minute']) ? (int) $match['minute'] : 0;
728 $second = isset($match['second']) ? (int) $match['second'] : 0;
729 …$second_fraction = isset($match['second_fraction']) ? ((int) $match['second_fraction']) / (10 ** s…
730 $tz_sign = ($match['tz_sign'] ?? '') === '-' ? -1 : 1;
731 $tz_hour = isset($match['tz_hour']) ? (int) $match['tz_hour'] : 0;
[all …]
/dokuwiki/inc/parser/
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/lib/scripts/
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[1].length-1;
189 var match = search.match(/(\n +)([*-] )$/);
190 if(match){
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/
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/
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/
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 …]
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/lib/plugins/styling/
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/
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/
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];
DDocBlock.php43 foreach ($matches as $match) {
44 $tags[$match[1]][] = trim($match[2]);
/dokuwiki/vendor/simplepie/simplepie/library/SimplePie/Decode/HTML/
DEntities.php581 for ($i = 0, $match = null; $i < 9 && $this->consume() !== false; $i++) {
584 $match = $consumed;
588 if ($match !== null) {
589 …ata = substr_replace($this->data, $entities[$match], $this->position - strlen($consumed) - 1, strl…
590 $this->position += strlen($entities[$match]) - strlen($consumed) - 1;
/dokuwiki/lib/tpl/dokuwiki/
Dscript.js21 if (device_class.match(/tablet/)) return;
25 if (device_class.match(/phone/)) return;
49 if (device_class.match(/mobile/)){
/dokuwiki/inc/Action/
DRedirect.php36 } elseif ($PRE && preg_match('/^\s*==+([^=\n]+)/', $TEXT, $match)) {
39 $opts['fragment'] = sectionID($match[0], $check);
/dokuwiki/inc/Parsing/Lexer/
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/
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/simplepie/simplepie/src/Net/
DIPv6.php149 foreach ($matches[0] as $match) {
150 if (strlen($match[0]) > $max) {
151 $max = strlen($match[0]);
152 $pos = $match[1];
/dokuwiki/vendor/simplepie/simplepie/src/
DSanitize.php518 public function do_strip_htmltags($match) argument
521 if (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
522 $match[1] = htmlspecialchars($match[1], ENT_COMPAT, 'UTF-8');
523 $match[2] = htmlspecialchars($match[2], ENT_COMPAT, 'UTF-8');
524 return "&lt;$match[1]$match[2]&gt;$match[3]&lt;/$match[1]&gt;";
526 return htmlspecialchars($match[0], ENT_COMPAT, 'UTF-8');
528 } elseif (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
529 return $match[4];
DIRI.php329 …authority>[^\/?#]*))?(?P<path>[^?#]*)(\?(?P<query>[^#]*))?(#(?P<fragment>.*))?$/', $iri, $match)) {
330 if ($match[1] === '') {
331 $match['scheme'] = null;
333 if (!isset($match[3]) || $match[3] === '') {
334 $match['authority'] = null;
336 if (!isset($match[5])) {
337 $match['path'] = '';
339 if (!isset($match[6]) || $match[6] === '') {
340 $match['query'] = null;
342 if (!isset($match[8]) || $match[8] === '') {
[all …]
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/
DStrings.php60 foreach ($m[0] as $match) {
72 '/' . Util::pregQuote($match) . '/',
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
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/php81_bc/strftime/src/
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/lib/plugins/config/core/
DConfigParser.php54 if (preg_match('/^array ?\((.*)\)/', $value, $match)) {
55 $arr = explode(',', $match[1]);
/dokuwiki/lib/plugins/logviewer/
Dscript.js15 if (elem.innerText.match(re)) {

123