Lines Matching refs:match
42 function handle($match, $state, $pos, Doku_Handler $handler) {
47 $match = trim(utf8_substr($match, 14, -1)); //14 = strlen("<hiddenSwitch ")
48 if ( $match !== '' ){
49 $return['text'] = $match;
68 $match = substr($match, 7, -1); //7 = strlen("<hidden")
71 preg_match("/initialState *= *\"([^\"]*)\" ?/i", $match, $initialState);
73 $match = str_replace($initialState[0], '', $match);
83 if ( preg_match('/-noprint/i', $match, $found) ){
85 $match = str_replace($found[0], '', $match);
89 if ( preg_match('/-edit(able)?( *= *"([^"]*)")?/i', $match, $found) ){
94 $match = str_replace($found[0], '', $match);
98 preg_match("/active *= *\"([^\"]*)\" ?/i", $match, $active);
100 $match = str_replace($active[0], '', $match);
108 preg_match("/element *= *\"([^\"]*)\" ?/i", $match, $element);
110 $match = str_replace($element[0], '', $match);
116 $this->_grepOption($return, 'onHidden', $match);
117 $this->_grepOption($return, 'onVisible', $match);
118 $this->_grepOption($return, 'onExportPdf', $match);
122 $text = trim($match);
143 return array('state'=>$state, 'text'=>$match);
146 return array('state'=>$state, 'bytepos_end' => $pos + strlen($match));
150 private function _grepOption(&$options, $tag, &$match){
151 preg_match("/$tag *= *\"([^\"]*)\" ?/i", $match, $text);
153 $match = str_replace($text[0], '', $match);
202 if ( preg_match("/^[ \t]*={2,}[^\n]+={2,}[ \t]*$/", $text, $match) ){
203 $title = trim($match[0]);