Lines Matching refs:matches
376 function _stripLinkDefinitions_callback($matches) {
377 $link_id = strtolower($matches[1]);
378 $this->urls[$link_id] = $matches[2];
379 $this->titles[$link_id] =& $matches[3];
521 function _hashHTMLBlocks_callback($matches) {
522 $text = $matches[1];
662 function _doHardBreaks_callback($matches) {
737 function _doAnchors_reference_callback($matches) {
738 $whole_match = $matches[1];
739 $link_text = $matches[2];
740 $link_id =& $matches[3];
771 function _doAnchors_inline_callback($matches) {
772 $whole_match = $matches[1];
773 $link_text = $this->runSpanGamut($matches[2]);
774 $url = $matches[3] == '' ? $matches[4] : $matches[3];
775 $title =& $matches[7];
847 function _doImages_reference_callback($matches) {
848 $whole_match = $matches[1];
849 $alt_text = $matches[2];
850 $link_id = strtolower($matches[3]);
875 function _doImages_inline_callback($matches) {
876 $whole_match = $matches[1];
877 $alt_text = $matches[2];
878 $url = $matches[3] == '' ? $matches[4] : $matches[3];
879 $title =& $matches[7];
924 function _doHeaders_callback_setext($matches) {
926 if ($matches[2] == '-' && preg_match('{^-(?: |$)}', $matches[1]))
927 return $matches[0];
929 $level = $matches[2]{0} == '=' ? 1 : 2;
930 $block = "<h$level>".$this->runSpanGamut($matches[1])."</h$level>";
933 function _doHeaders_callback_atx($matches) {
934 $level = strlen($matches[1]);
935 $block = "<h$level>".$this->runSpanGamut($matches[2])."</h$level>";
997 function _doLists_callback($matches) {
1003 $list = $matches[1];
1004 $list_type = preg_match("/$marker_ul_re/", $matches[3]) ? "ul" : "ol";
1063 function _processListItems_callback($matches) {
1064 $item = $matches[4];
1065 $leading_line =& $matches[1];
1066 $leading_space =& $matches[2];
1067 $marker_space = $matches[3];
1068 $tailing_blank_line =& $matches[5];
1106 function _doCodeBlocks_callback($matches) {
1107 $codeblock = $matches[1];
1306 function _doBlockQuotes_callback($matches) {
1307 $bq = $matches[1];
1320 function _doBlockQuotes_callback2($matches) {
1321 $pre = $matches[1];
1371 // }xs', $block, $matches))
1373 // list(, $div_open, , $div_content, $div_close) = $matches;
1448 function _doAutoLinks_url_callback($matches) {
1449 $url = $this->encodeAttribute($matches[1]);
1453 function _doAutoLinks_email_callback($matches) {
1454 $address = $matches[1];
1568 $str, $matches))
1570 $str = $matches[2];
1571 $codespan = $this->makeCodeSpan($matches[1]);
1606 function _detab_callback($matches) {
1607 $line = $matches[0];
1644 function _unhash_callback($matches) {
1645 return $this->html_hashes[$matches[0]];
1916 $text, $matches))
1919 $parsed .= $tag . $matches[0];
1920 $text = substr($text, strlen($matches[0]));
1940 $matches))
1943 $parsed .= $tag . $matches[0];
1944 $text = substr($text, strlen($matches[0]));
2077 if (preg_match('/^<([\w:$]*)\b/', $text, $matches))
2078 $base_tag_name_re = $matches[1];
2142 if (preg_match('/(?:^|\n)( *?)(?! ).*?$/', $block_text, $matches)) {
2144 $indent = $strlen($matches[1], 'UTF-8');
2155 preg_match('/^<([\w:$]*)\b/', $tag, $matches);
2156 $tag_name_re = $matches[1];
2244 function _doHeaders_callback_setext($matches) {
2245 if ($matches[3] == '-' && preg_match('{^- }', $matches[1]))
2246 return $matches[0];
2247 $level = $matches[3]{0} == '=' ? 1 : 2;
2248 $attr = $this->_doHeaders_attr($id =& $matches[2]);
2249 $block = "<h$level$attr>".$this->runSpanGamut($matches[1])."</h$level>";
2252 function _doHeaders_callback_atx($matches) {
2253 $level = strlen($matches[1]);
2254 $attr = $this->_doHeaders_attr($id =& $matches[3]);
2255 $block = "<h$level$attr>".$this->runSpanGamut($matches[2])."</h$level>";
2321 function _doTable_leadingPipe_callback($matches) {
2322 $head = $matches[1];
2323 $underline = $matches[2];
2324 $content = $matches[3];
2329 return $this->_doTable_callback(array($matches[0], $head, $underline, $content));
2331 function _doTable_callback($matches) {
2332 $head = $matches[1];
2333 $underline = $matches[2];
2334 $content = $matches[3];
2432 function _doDefLists_callback($matches) {
2434 $list = $matches[1];
2487 function _processDefListItems_callback_dt($matches) {
2488 $terms = explode("\n", trim($matches[1]));
2496 function _processDefListItems_callback_dd($matches) {
2497 $leading_line = $matches[1];
2498 $marker_space = $matches[2];
2499 $def = $matches[3];
2549 function _doFencedCodeBlocks_callback($matches) {
2550 $codeblock = $matches[2];
2557 function _doFencedCodeBlocks_newlines($matches) {
2559 strlen($matches[0]));
2649 function _stripFootnotes_callback($matches) {
2650 $note_id = $this->fn_id_prefix . $matches[1];
2651 $this->footnotes[$note_id] = $this->outdent($matches[2]);
2725 function _appendFootnotes_callback($matches) {
2726 $node_id = $this->fn_id_prefix . $matches[1];
2757 return "[^".$matches[1]."]";
2778 function _stripAbbreviations_callback($matches) {
2779 $abbr_word = $matches[1];
2780 $abbr_desc = $matches[2];
2805 function _doAbbreviations_callback($matches) {
2806 $abbr = $matches[0];
2816 return $matches[0];