Lines Matching refs:match

54 	function handle($match, $state, $pos, Doku_Handler $handler) {  argument
65 $this->_parse($match, $blocks, $content);
71 function _parse(&$match, &$b, &$ctn) { argument
72 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces
73 $b = $this->_fetch_block($match, 0);
74 …if($match != '') $ctn = preg_replace('`\n+$`', '', preg_replace('`^\n+`', '', preg_replace('`^>`',…
79 function _fetch_block(&$match, $lvl=0) { argument
80 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces
84 while(($match{0} != '>') && ($match != '') && (($lvl == 0) || ($match{0} != ')')) && $continue) {
86 if($this->_fetch_op($match, true)) { // ! heading equals block descending for first token
88 $match = substr($match, 1); // remove heading !
89 $i['value'] = $this->_fetch_block($match, $lvl+1);
90 }else if($this->_is_block($match)) {
92 $match = substr($match, 1); // remove heading (
93 $i['value'] = $this->_fetch_block($match, $lvl+1);
94 }else if($this->_is_key($match, $key)) {
97 $match = substr($match, strlen($key)); // remove heading key
98 if($this->_is_test($match, $test)) {
100 $match = substr($match, strlen($test)); // remove heading test
101 if(($v = $this->_fetch_value($match)) !== null) $i['value'] = $v;
103 }else $match = preg_replace('`^[^>\s\(]+`', '', $match); // here dummy stuff remains
105 if(($op = $this->_fetch_op($match, false)) !== null) {
106 $match = substr($match, strlen($op)); // remove heading op
116 function _is_block(&$match) { argument
117 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces
118 return preg_match('`^\(`', $match);
122 function _is_key(&$match, &$key) { argument
123 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces
124 if(preg_match('`^([a-zA-Z0-9_-]+)`', $match, $r)) {
140 function _is_test(&$match, &$test) { argument
141 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces
142 …if(preg_match('`^'.$this->_preg_build_alternative($this->allowedtests).'`', $match, $r)) { $test =…
147 function _fetch_value(&$match) { argument
148 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces
149 if($match{0} == '"') {
150 $match = substr($match, 1);
151 $value = substr($match, 0, strpos($match, '"'));
152 $match = substr($match, strlen($value) + 1);
154 $psp = strpos($match, ')');
155 $wsp = strpos($match, ' ');
156 $esp = strpos($match, '>');
175 $value = substr($match, 0, $sp);
176 $match = substr($match, strlen($value));
182 function _fetch_op(&$match, $head=false) { argument
183 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces
186 if(preg_match('`^'.$this->_preg_build_alternative($ops).'`', $match, $r)) return $r[1];