Lines Matching refs:match

31 	function handle($match, $state, $pos, Doku_Handler $handler){  argument
62 $match = str_replace("{{INSTR<", '', $match);
63 $match = str_replace("}}", '', $match);
64 $match = str_replace("~~INSTR~~", '', $match);
65 $match = str_replace("~~END~~", '', $match);
68 if (substr_count($match,"~~") > 0) {
69 list($typ) = explode('~~',$match);
71 list($typ) = explode('>',$match);
76 $match = str_replace(array("|+"), '<br>', $match);
80 $match = str_replace(array(" "), '&nbsp; &nbsp;', $match);
82 while (strpos($match, '//') !== false) {
83 $match = preg_replace('/\/\//', '<i>', $match, 1);
84 $match = preg_replace('/\/\//', '</i>', $match, 1);
87 while (strpos($match, '**') !== false) {
88 $match = preg_replace('/\*\*/', '<b>', $match, 1);
89 $match = preg_replace('/\*\*/', '</b>', $match, 1);
92 while (strpos($match, "''") !== false) {
93 $match = preg_replace("/''/", '<code>', $match, 1);
94 $match = preg_replace("/''/", '</code>', $match, 1);
97 while (strpos($match, '[[') !== false) {
98 $s1 = strpos($match, '[[') + 2;
99 $s2 = strpos($match, ']]');
100 $title = substr($match, $s1, $s2-$s1);
104 $content = substr($match, $s1, $s3-1);
105 $match = str_replace("|".$title, "", $match);
106 $match = preg_replace('/\[\[/', '<a href="'.DOKU_BASE.'/doku.php?id=', $match, 1);
107 $match = preg_replace('/\]\]/', '">'.$title.'</a>', $match, 1);
111 while (strpos($match, '@PAGE@') !== false) {
112 $match = preg_replace('/@PAGE@/', $pg_curr, $match, 1);
114 while (strpos($match, '@ID@') !== false) {
115 $match = preg_replace('/@ID@/', $id_curr, $match, 1);
117 while (strpos($match, '@NS@') !== false) {
118 $match = preg_replace('/@NS@/', $ns_long, $match, 1);
120 while (strpos($match, '@NSMAIN@') !== false) {
121 $match = preg_replace('/@NSMAIN@/', $ns_main, $match, 1);
123 while (strpos($match, '@CURNS@') !== false) {
124 $match = preg_replace('/@CURNS@/', $ns_curr, $match, 1);
126 while (strpos($match, '@URL_DOKU@') !== false) {
127 $match = preg_replace('/@URL_DOKU@/', $urldoku, $match, 1);
129 while (strpos($match, '@URL_PAGE@') !== false) {
130 $match = preg_replace('/@URL_PAGE@/', $urlpage, $match, 1);
134 $param = explode('|-',$match);