Lines Matching refs:match
59 function handle($match, $state, $pos, Doku_Handler $handler){ argument
63 $match = substr($match,2,-2);
64 $match = trim($match);
65 if(strpos($match, 'HTML')) $html=true;
66 if(strpos($match, 'LANG_') !== false) {
68 list($prefix,$trans) = explode('_',$match,2);
96 while(preg_match('#(\*\*|//|__|\'\').*?\1#m',$match )) {
97 $match = preg_replace_callback(
103 },$match );
106 if(preg_match('/(.*?)~([\s\S]+)~$/',$match,$subtitution)) {
107 $match=$subtitution[1];
114 if(!array_key_exists($match, $this->macros) ) {
116 msg("$match $err", -1);
117 $match = "";
121 $match = $this->translations[$trans];
124 $match =$this->macros[$match];
131 $match = str_replace ($search , trim($substitutions[$i]), $match);
134 $match = $this->get_inserts($match,$translation);
137 $match = str_replace('<','<',$match);
138 $match = str_replace('>','>',$match);
141 return array($state,$match);
173 function get_inserts($match,$translation) { argument
177 if(preg_match_all('/#@(.*?)@#/',$match,$inserts)) {
188 $match = str_replace($pats[$i],$insert,$match);
197 $match = str_replace($e_keys,$e_values,$match);
199 return $match;