Lines Matching defs:pos
52 * @param int $pos byte position in the original source file
54 public function addCall($handler, $args, $pos)
56 $call = [$handler, $args, $pos];
104 public function _addCall($handler, $args, $pos)
107 $this->addCall($handler, $args, $pos);
116 * @param int $pos byte position in the original source file
119 public function addPluginCall($plugin, $args, $state, $pos, $match)
121 $call = ['plugin', [$plugin, $args, $state, $match], $pos];
248 * @param int $pos byte position in the original source file
251 protected function nestingTag($match, $state, $pos, $name)
255 $this->addCall($name . '_open', [], $pos);
258 $this->addCall($name . '_close', [], $pos);
261 $this->addCall('cdata', [$match], $pos);
286 * @param int $pos byte position in the original source file
292 public function plugin($match, $state, $pos, $pluginname)
298 $data = $plugin->handle($match, $state, $pos, $this);
301 $this->addPluginCall($pluginname, $data, $state, $pos, $match);
309 * @param int $pos byte position in the original source file
312 public function base($match, $state, $pos)
315 $this->addCall('cdata', [$match], $pos);
324 * @param int $pos byte position in the original source file
327 public function header($match, $state, $pos)
336 if ($this->status['section']) $this->addCall('section_close', [], $pos);
338 $this->addCall('header', [$title, $level, $pos], $pos);
340 $this->addCall('section_open', [$level], $pos);
348 * @param int $pos byte position in the original source file
351 public function notoc($match, $state, $pos)
353 $this->addCall('notoc', [], $pos);
360 * @param int $pos byte position in the original source file
363 public function nocache($match, $state, $pos)
365 $this->addCall('nocache', [], $pos);
372 * @param int $pos byte position in the original source file
375 public function linebreak($match, $state, $pos)
377 $this->addCall('linebreak', [], $pos);
384 * @param int $pos byte position in the original source file
387 public function eol($match, $state, $pos)
389 $this->addCall('eol', [], $pos);
396 * @param int $pos byte position in the original source file
399 public function hr($match, $state, $pos)
401 $this->addCall('hr', [], $pos);
408 * @param int $pos byte position in the original source file
411 public function strong($match, $state, $pos)
413 $this->nestingTag($match, $state, $pos, 'strong');
420 * @param int $pos byte position in the original source file
423 public function emphasis($match, $state, $pos)
425 $this->nestingTag($match, $state, $pos, 'emphasis');
432 * @param int $pos byte position in the original source file
435 public function underline($match, $state, $pos)
437 $this->nestingTag($match, $state, $pos, 'underline');
444 * @param int $pos byte position in the original source file
447 public function monospace($match, $state, $pos)
449 $this->nestingTag($match, $state, $pos, 'monospace');
456 * @param int $pos byte position in the original source file
459 public function subscript($match, $state, $pos)
461 $this->nestingTag($match, $state, $pos, 'subscript');
468 * @param int $pos byte position in the original source file
471 public function superscript($match, $state, $pos)
473 $this->nestingTag($match, $state, $pos, 'superscript');
480 * @param int $pos byte position in the original source file
483 public function deleted($match, $state, $pos)
485 $this->nestingTag($match, $state, $pos, 'deleted');
492 * @param int $pos byte position in the original source file
495 public function footnote($match, $state, $pos)
504 $this->addCall('cdata', [$match], $pos);
510 $this->addCall('footnote_open', [], $pos);
515 $this->addCall('cdata', [$match], $pos);
520 $this->addCall('footnote_close', [], $pos);
527 $this->addCall('cdata', [$match], $pos);
536 * @param int $pos byte position in the original source file
539 public function listblock($match, $state, $pos)
544 $this->addCall('list_open', [$match], $pos);
547 $this->addCall('list_close', [], $pos);
553 $this->addCall('list_item', [$match], $pos);
556 $this->addCall('cdata', [$match], $pos);
565 * @param int $pos byte position in the original source file
568 public function unformatted($match, $state, $pos)
571 $this->addCall('unformatted', [$match], $pos);
579 * @param int $pos byte position in the original source file
582 public function preformatted($match, $state, $pos)
587 $this->addCall('preformatted_start', [], $pos);
590 $this->addCall('preformatted_end', [], $pos);
596 $this->addCall('preformatted_newline', [], $pos);
599 $this->addCall('preformatted_content', [$match], $pos);
609 * @param int $pos byte position in the original source file
612 public function quote($match, $state, $pos)
618 $this->addCall('quote_start', [$match], $pos);
622 $this->addCall('quote_end', [], $pos);
629 $this->addCall('quote_newline', [$match], $pos);
633 $this->addCall('cdata', [$match], $pos);
643 * @param int $pos byte position in the original source file
646 public function file($match, $state, $pos)
648 return $this->code($match, $state, $pos, 'file');
654 * @param int $pos byte position in the original source file
658 public function code($match, $state, $pos, $type = 'code')
676 $this->addCall($type, $param, $pos);
684 * @param int $pos byte position in the original source file
687 public function acronym($match, $state, $pos)
689 $this->addCall('acronym', [$match], $pos);
696 * @param int $pos byte position in the original source file
699 public function smiley($match, $state, $pos)
701 $this->addCall('smiley', [$match], $pos);
708 * @param int $pos byte position in the original source file
711 public function wordblock($match, $state, $pos)
713 $this->addCall('wordblock', [$match], $pos);
720 * @param int $pos byte position in the original source file
723 public function entity($match, $state, $pos)
725 $this->addCall('entity', [$match], $pos);
732 * @param int $pos byte position in the original source file
735 public function multiplyentity($match, $state, $pos)
738 $this->addCall('multiplyentity', [$matches[0][0], $matches[0][1]], $pos);
745 * @param int $pos byte position in the original source file
748 public function singlequoteopening($match, $state, $pos)
750 $this->addCall('singlequoteopening', [], $pos);
757 * @param int $pos byte position in the original source file
760 public function singlequoteclosing($match, $state, $pos)
762 $this->addCall('singlequoteclosing', [], $pos);
769 * @param int $pos byte position in the original source file
772 public function apostrophe($match, $state, $pos)
774 $this->addCall('apostrophe', [], $pos);
781 * @param int $pos byte position in the original source file
784 public function doublequoteopening($match, $state, $pos)
786 $this->addCall('doublequoteopening', [], $pos);
794 * @param int $pos byte position in the original source file
797 public function doublequoteclosing($match, $state, $pos)
800 $this->doublequoteopening($match, $state, $pos);
802 $this->addCall('doublequoteclosing', [], $pos);
811 * @param int $pos byte position in the original source file
814 public function camelcaselink($match, $state, $pos)
816 $this->addCall('camelcaselink', [$match], $pos);
823 * @param int $pos byte position in the original source file
826 public function internallink($match, $state, $pos)
849 $pos
856 $pos
863 $pos
870 $pos
877 $pos
884 $pos
894 * @param int $pos byte position in the original source file
897 public function filelink($match, $state, $pos)
899 $this->addCall('filelink', [$match, null], $pos);
906 * @param int $pos byte position in the original source file
909 public function windowssharelink($match, $state, $pos)
911 $this->addCall('windowssharelink', [$match, null], $pos);
918 * @param int $pos byte position in the original source file
921 public function media($match, $state, $pos)
928 $pos
936 * @param int $pos byte position in the original source file
939 public function rss($match, $state, $pos)
965 $this->addCall('rss', [$link, $p], $pos);
972 * @param int $pos byte position in the original source file
975 public function externallink($match, $state, $pos)
990 $this->addCall('externallink', [$url, $title], $pos);
997 * @param int $pos byte position in the original source file
1000 public function emaillink($match, $state, $pos)
1003 $this->addCall('emaillink', [$email, null], $pos);
1010 * @param int $pos byte position in the original source file
1013 public function table($match, $state, $pos)
1019 $this->addCall('table_start', [$pos + 1], $pos);
1021 $this->addCall('tableheader', [], $pos);
1023 $this->addCall('tablecell', [], $pos);
1028 $this->addCall('table_end', [$pos], $pos);
1036 $this->addCall('cdata', [$match], $pos);
1042 $this->addCall('cdata', [$match], $pos);
1044 $this->addCall('rowspan', [$match], $pos);
1046 $this->addCall('table_align', [$match], $pos);
1048 $this->addCall('table_align', [$match], $pos);
1050 $this->addCall('table_row', [], $pos);
1051 $this->addCall('tablecell', [], $pos);
1053 $this->addCall('table_row', [], $pos);
1054 $this->addCall('tableheader', [], $pos);
1056 $this->addCall('tablecell', [], $pos);
1058 $this->addCall('tableheader', [], $pos);
1102 $pos = strrpos($link[0], '?');
1103 if ($pos !== false) {
1104 $src = substr($link[0], 0, $pos);
1105 $param = substr($link[0], $pos + 1);