Lines Matching defs:match

199      * @param string $match The text match
204 public function camelcaselink($match, $state, $pos) {
205 $oldID = cleanID($this->origNS . ':' . $match);
211 $this->calls .= $match;
215 $this->calls .= "[[$newNS:$match]]";
218 $this->calls .= "[[$newID|$match]]";
227 * @param string $match The text match
232 public function internallink($match, $state, $pos) {
234 $link = preg_replace(array('/^\[\[/', '/\]\]$/u'), '', $match);
244 // do a simple replace of the first match so really only the id is changed and not e.g. the alignment
245 $oldpos = strpos($match, $old_title);
247 $match = substr_replace($match, $link[1], $oldpos, $oldlen);
255 $this->calls .= $match;
258 $this->calls .= $match;
261 $this->calls .= $match;
264 $this->calls .= $match;
267 $this->calls .= $match;
289 $this->calls .= $match;
314 * @param string $match The text match
319 public function media($match, $state, $pos) {
320 $this->calls .= $this->rewrite_media($match);
327 * @param string $match The text match of the media syntax
330 protected function rewrite_media($match) {
331 $p = Doku_Handler_Parse_Media($match);
338 // do a simple replace of the first match so really only the id is changed and not e.g. the alignment
339 $srcpos = strpos($match, $p['src']);
341 return substr_replace($match, $new_src, $srcpos, $srclen);
344 return $match;
350 * @param string $match The text match
356 public function plugin($match, $state, $pos, $pluginname) {
358 $this->calls .= call_user_func($this->handlers[$pluginname], $match, $state, $pos, $pluginname, $this);
360 $this->calls .= $match;