Lines Matching defs:match
117 * @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, $state, $pos, $name)
261 $this->addCall('cdata', [$match], $pos);
284 * @param string $match matched syntax
292 public function plugin($match, $state, $pos, $pluginname)
294 $data = [$match];
298 $data = $plugin->handle($match, $state, $pos, $this);
301 $this->addPluginCall($pluginname, $data, $state, $pos, $match);
307 * @param string $match matched syntax
312 public function base($match, $state, $pos)
315 $this->addCall('cdata', [$match], $pos);
322 * @param string $match matched syntax
327 public function header($match, $state, $pos)
330 $title = trim($match);
346 * @param string $match matched syntax
351 public function notoc($match, $state, $pos)
358 * @param string $match matched syntax
363 public function nocache($match, $state, $pos)
370 * @param string $match matched syntax
375 public function linebreak($match, $state, $pos)
382 * @param string $match matched syntax
387 public function eol($match, $state, $pos)
394 * @param string $match matched syntax
399 public function hr($match, $state, $pos)
406 * @param string $match matched syntax
411 public function strong($match, $state, $pos)
413 $this->nestingTag($match, $state, $pos, 'strong');
418 * @param string $match matched syntax
423 public function emphasis($match, $state, $pos)
425 $this->nestingTag($match, $state, $pos, 'emphasis');
430 * @param string $match matched syntax
435 public function underline($match, $state, $pos)
437 $this->nestingTag($match, $state, $pos, 'underline');
442 * @param string $match matched syntax
447 public function monospace($match, $state, $pos)
449 $this->nestingTag($match, $state, $pos, 'monospace');
454 * @param string $match matched syntax
459 public function subscript($match, $state, $pos)
461 $this->nestingTag($match, $state, $pos, 'subscript');
466 * @param string $match matched syntax
471 public function superscript($match, $state, $pos)
473 $this->nestingTag($match, $state, $pos, 'superscript');
478 * @param string $match matched syntax
483 public function deleted($match, $state, $pos)
485 $this->nestingTag($match, $state, $pos, 'deleted');
490 * @param string $match matched syntax
495 public function footnote($match, $state, $pos)
504 $this->addCall('cdata', [$match], $pos);
515 $this->addCall('cdata', [$match], $pos);
527 $this->addCall('cdata', [$match], $pos);
534 * @param string $match matched syntax
539 public function listblock($match, $state, $pos)
544 $this->addCall('list_open', [$match], $pos);
553 $this->addCall('list_item', [$match], $pos);
556 $this->addCall('cdata', [$match], $pos);
563 * @param string $match matched syntax
568 public function unformatted($match, $state, $pos)
571 $this->addCall('unformatted', [$match], $pos);
577 * @param string $match matched syntax
582 public function preformatted($match, $state, $pos)
599 $this->addCall('preformatted_content', [$match], $pos);
607 * @param string $match matched syntax
612 public function quote($match, $state, $pos)
618 $this->addCall('quote_start', [$match], $pos);
629 $this->addCall('quote_newline', [$match], $pos);
633 $this->addCall('cdata', [$match], $pos);
641 * @param string $match matched syntax
646 public function file($match, $state, $pos)
648 return $this->code($match, $state, $pos, 'file');
652 * @param string $match matched syntax
658 public function code($match, $state, $pos, $type = 'code')
661 $matches = sexplode('>', $match, 2, '');
682 * @param string $match matched syntax
687 public function acronym($match, $state, $pos)
689 $this->addCall('acronym', [$match], $pos);
694 * @param string $match matched syntax
699 public function smiley($match, $state, $pos)
701 $this->addCall('smiley', [$match], $pos);
706 * @param string $match matched syntax
711 public function wordblock($match, $state, $pos)
713 $this->addCall('wordblock', [$match], $pos);
718 * @param string $match matched syntax
723 public function entity($match, $state, $pos)
725 $this->addCall('entity', [$match], $pos);
730 * @param string $match matched syntax
735 public function multiplyentity($match, $state, $pos)
737 preg_match_all('/\d+/', $match, $matches);
743 * @param string $match matched syntax
748 public function singlequoteopening($match, $state, $pos)
755 * @param string $match matched syntax
760 public function singlequoteclosing($match, $state, $pos)
767 * @param string $match matched syntax
772 public function apostrophe($match, $state, $pos)
779 * @param string $match matched syntax
784 public function doublequoteopening($match, $state, $pos)
792 * @param string $match matched syntax
797 public function doublequoteclosing($match, $state, $pos)
800 $this->doublequoteopening($match, $state, $pos);
809 * @param string $match matched syntax
814 public function camelcaselink($match, $state, $pos)
816 $this->addCall('camelcaselink', [$match], $pos);
821 * @param string $match matched syntax
826 public function internallink($match, $state, $pos)
829 $link = preg_replace(['/^\[\[/', '/\]\]$/u'], '', $match);
892 * @param string $match matched syntax
897 public function filelink($match, $state, $pos)
899 $this->addCall('filelink', [$match, null], $pos);
904 * @param string $match matched syntax
909 public function windowssharelink($match, $state, $pos)
911 $this->addCall('windowssharelink', [$match, null], $pos);
916 * @param string $match matched syntax
921 public function media($match, $state, $pos)
923 $p = Doku_Handler_Parse_Media($match);
934 * @param string $match matched syntax
939 public function rss($match, $state, $pos)
941 $link = preg_replace(['/^\{\{rss>/', '/\}\}$/'], '', $match);
947 if (preg_match('/\b(\d+)\b/', $params, $match)) {
948 $p['max'] = $match[1];
958 if (preg_match('/\b(\d+)([dhm])\b/', $params, $match)) {
960 $p['refresh'] = max(600, $match[1] * $period[$match[2]]); // n * period in seconds, minimum 10 minutes
970 * @param string $match matched syntax
975 public function externallink($match, $state, $pos)
977 $url = $match;
995 * @param string $match matched syntax
1000 public function emaillink($match, $state, $pos)
1002 $email = preg_replace(['/^</', '/>$/'], '', $match);
1008 * @param string $match matched syntax
1013 public function table($match, $state, $pos)
1020 if (trim($match) == '^') {
1035 if (trim($match) != '') {
1036 $this->addCall('cdata', [$match], $pos);
1041 if ($match == ' ') {
1042 $this->addCall('cdata', [$match], $pos);
1043 } elseif (preg_match('/:::/', $match)) {
1044 $this->addCall('rowspan', [$match], $pos);
1045 } elseif (preg_match('/\t+/', $match)) {
1046 $this->addCall('table_align', [$match], $pos);
1047 } elseif (preg_match('/ {2,}/', $match)) {
1048 $this->addCall('table_align', [$match], $pos);
1049 } elseif ($match == "\n|") {
1052 } elseif ($match == "\n^") {
1055 } elseif ($match == '|') {
1057 } elseif ($match == '^') {
1069 function Doku_Handler_Parse_Media($match)
1073 $link = preg_replace(['/^\{\{/', '/\}\}$/u'], '', $match);