Lines Matching refs:matches

57              preg_match('/_\w+_/',  $_COOKIE['FCKG_USE'], $matches);
58 if($matches[0] == '_false_') {
231 function($matches) {
232 … $matches[0] = preg_replace("#{{rss>http(s?):\/\/#", "{ { rss>$1Feed:", $matches[0]);
233 $matches[0] = str_replace("~", "~ ", $matches[0]);
234 return $matches[0];
264 function ($matches) {
265 $matches[0] = str_replace('%%', 'DBLPERCENT',$matches[0]);
266 $matches[0] = str_replace('\\ ', 'DBLBACKSPLASH',$matches[0]);
267 $matches[0] = str_replace('|', 'NWPIPECHARACTER',$matches[0]);
268 return $matches[0];
275 function($matches) {
276 return '<nowiki>' . $matches[1] . '</nowiki>';
291 function($matches) {
294 $matches[1] = str_replace($needles, $replacements, $matches[1]);
295 return '&grave;&grave;' .$matches[1] .'&grave;&grave;' ;
303 function($matches) {
306 $matches[2] = str_replace($needles, $replacements, $matches[2]);
307 return $matches[1] . $matches[2] . $matches[3];
314 function($matches) {
316 if(preg_match("/(^\s*geshi:\s*(\w+)(\s+\w+\.\w+)*\s*)$/m",$matches[0],$gmatch)){
318 $matches[1] .= " " . trim($gmatch[0]);
321 $matches[4] = str_replace($gmatch[1],"",$matches[4],$c);
323 if(preg_match("/\w+/",$matches[2])) {
324 $matches[4] = str_replace("CHEVRONescC", ">>",$matches[4]);
325 $matches[4] = str_replace("CHEVRONescO", "<<",$matches[4]);
326 $matches[4] = preg_replace("/<(?!\s)/ms", "__GESHI_OPEN__", $matches[4]);
329 if( preg_match("/MULTI/",$matches[0])) {
337 $matches[4] = preg_replace("/<(?!\s)/ms", $open, $matches[4]);
338 … $matches[4] = preg_replace("/(?<!\s)>/ms", $close, $matches[4]);
340 $matches[4] = str_replace("\"", "__GESHI_QUOT__", $matches[4]);
341 … $matches[4] = preg_replace("/\\\\\\\\(\n|\s)/ms","CODE_BLOCK_EOL_MASK$1",$matches[4]);
342 … return "<" . $matches[1] . $matches[2] . $matches[3] . $matches[4] . $matches[5];
349 function($matches) {
350 $matches[0] = str_replace("_ckgedit_NPBBR_","",$matches[0]);
351 return $matches[0];
356 function($matches) {
357 $matches[2] = preg_replace("/<code>/ms", "TPRE_CODE", $matches[2]);
358 $matches[2] = preg_replace("/<file>/ms", "TPRE_FILE", $matches[2]);
359 $matches[4] = "TPRE_CLOSE";
360 $matches[3] = preg_replace("/^\n+/", "TC_NL",$matches[3]);
361 … $matches[3] = preg_replace("/\n/ms", "TC_NL",$matches[3]);
362 return $matches[1] . $matches[2] . trim($matches[3]) . $matches[4];
374 function($matches) {
380 … $matches[1] = str_replace($needles, $replacements, $matches[1]);
381 return "(($ins" . $matches[1] . "))" ;
403 function ($matches) {
404 return "divalNLine" . str_replace('#','CGEHASH',$matches[1]);
410 function($matches) {
411 … $retstr = $matches[1] . ">\n/*" . $matches[2] . "*/\n" . $matches[3];
433 function($matches) {
434 $matches[2] = str_ireplace('<br/>',"",$matches[2]);
435 return $matches[1] . $matches[2] . "<br />";
443 function($matches) {
444 … $matches[1] = preg_replace("/TPRE_CODE/","<pre class=\'code\'>\n", $matches[1]);
445 … $matches[1] = preg_replace("/TPRE_FILE/","<pre class=\'file\'>\n", $matches[1]);
446 $matches[2] = preg_replace("/TC_NL/ms", "\n", $matches[2]);
447 $matches[3] = "</pre>";
448 return $matches[1] . $matches[2] . $matches[3];
457 function($matches) {
458 $matches[1] = str_replace("&amp;","&",$matches[1]);
459 $matches[1] = html_entity_decode($matches[1],ENT_QUOTES, "UTF-8");
460 $matches[1] = preg_replace("/<\/?code.*?>/", "",$matches[1]);
461 $matches[1] = preg_replace("/^\s*<\/p>/","",$matches[1]);
462 $tmp = explode("\n", $matches[1]);
473 function($matches) {
474 $matches[4] = preg_replace("/(\||\^)[ ]+(\||\^)/ms","$1 &nbsp; $2" , $matches[4]);
475 return $matches[1] . $matches[2] . $matches[3] . $matches[4] . $matches[5];
482 function($matches) {
483 return str_replace("&lt;", "< ",$matches[0]);
506 preg_match_all("/<\/(.*?)\>/", $cdata['text'],$matches);
508 …if (!in_array('code', $matches[1]) && !in_array('file', $matches[1]) && !in_array('nowiki', $match…
1074 function ($matches) {
1075 if(strpos($matches[0],"\n") !== false) return $matches[0];
1076 if(preg_match("#<(\w+)>.*?<\/\\1>#",$matches[0])) return $matches[0];
1077 list($name,$link_text) = explode('|',$matches[2]);
1078 $retv = '[[' . $matches[1] . "oIWIKIo" . $name ."cIWIKIc";
1112 function ($matches) {
1113 $matches[0] = preg_replace("#\\\\\\\\\s*[\r\n]#ms", " \\\\\\\\ ",$matches[0]);
1114 return ($matches[0]);
1122 function($matches) {
1123 $quot = str_replace("_ckgedit_QUOT_", "\"", $matches[2]);
1126 return $matches[1] . $quot . $matches[3];
1130 function($matches) {
1131 $quot = str_replace("_ckgedit_QUOT_", "\"", $matches[2]);
1134 return $matches[1] . $quot . $matches[3];
1138 function ($matches) {
1139 if(!strpos($matches[1], "_ckgedit_NL")) return $matches[0];
1140 … $matches[1] = str_replace("\\_ckgedit_NL","_ckgedit_NL",$matches[1]);
1142 return '|' . $matches[1] . '|';
1143 return $matches[0];
1149 function($matches) {
1150 $matches[2] = str_replace("&lt;font","ckgeditFONTOpen",$matches[2]);
1151 $matches[2] = str_replace("font&gt;","ckgeditFONTClose",$matches[2]);
1152 return $matches[1] .$matches[2] . $matches[3];
1205 function($matches) {
1207 …if($matches[3] && $matches[3] != 'inherit') { $str .= '<span style = "color:' . $matches[3] .'">';…
1208 …if($matches[1] && $matches[1] != 'inherit') { $str .= '<span style = "font-size:' . $matches[1] .'…
1209 …if($matches[2] && $matches[2] != 'inherit') { $str .= '<span style = "font-family:' . $matches[2] …
1210 …if($matches[4] && $matches[4] != 'inherit') { $str .= '<span style = "background-color:' . $matche…
1211 $str .= $matches[5];
1235 function($matches) {
1236 … if(preg_match("/^\w+$/",$matches[2]) && $matches[1] == "/") return "/". $matches[2];
1237 return $matches[0];
1243 function($matches) {
1244 return ">". $matches[1] ;
1255 function($matches) {
1256 $matches[0] = str_replace("//<//", "< ",$matches[0]);
1257 $matches[0] = str_replace(array("oIWIKIo","cIWIKIc"),"",$matches[0]);
1258 return preg_replace("/\n/ms","<br />",$matches[0]);
1289 function($matches) {
1290 … $matches[0] = preg_replace("/(<p>)?\s*(<blockquote>)\s*(<\/p>)?/m","<p></p>$2",$matches[0]);
1291 … $matches[0] = preg_replace("/(<p>)?\s*(<\/blockquote>)\s*(<\/p>)?/m","$2<p></p>",$matches[0]);
1293 return $matches[0];
1301 function($matches) {
1302 $ret_str = " " . trim($matches[3]) . " " . trim($matches[2]) . " " . trim($matches[1]) ;