Lines Matching refs:text
191 function fetch_date(&$text,$default_date) { argument
194 if($text=="") return;
199 if(preg_match('#^'.$conf['gCal_date_dmy'].'(?=($|\D))#',$text,$match)) {
201 }elseif(preg_match('#^'.$conf['gCal_date_mdy'].'(?=($|\D))#',$text,$match)) {
203 }elseif(preg_match('#^'.$conf['gCal_date_ymd'].'(?=($|\D))#',$text,$match)) {
214 $text=trim(substr($text,strlen($match[0])));
222 function fetch_time(&$text) { argument
225 if($text=="") return;
232 if(preg_match($pattern,$text, $match)) {
233 $text=trim(substr($text,strlen($match[0])));
247 function fetch_inline_category(&$text) { argument
250 if($text=="") return;
255 if(preg_match($pattern,$text, $match)) {
256 $text=trim($match[1].substr($text,strlen($match[0])));
261 if(preg_match($pattern,$text, $match)) {
262 $text=trim(substr($text,strlen($match[0])));
322 * @param string $text text to be rendered
326 function fast_p_render($text) { argument
330 $text = preg_replace('#\*\*(.*)\*\*#sU', '<strong>\1</strong>', $text);
331 $text = preg_replace('#(?<!\:)\/\/(.*)(?<!\:)\/\/#sU', '<em>\1</em>', $text);
332 $text = preg_replace('#\_\_(.*)\_\_#sU', '<em class="u">\1</em>', $text);
333 $text = preg_replace('#\'\'(.*)\'\'#sU', '<code>\1</code>', $text);
334 $text = preg_replace('#\\\\\\\\(\s+|$)#m', '<br/>', $text);
336 $text = str_replace('=>','⇒',$text);
337 $text = str_replace('<=','⇐',$text);
338 $text = str_replace('->','→',$text);
339 $text = str_replace('<-','←',$text);
345 preg_match_all("=\[\[.+\]\]=sU",$text,$wiki_links);
375 $text=str_replace($wl,$drx->doc,$text);
379 return strip_tags($text,$conf['gCal_allowed_tags']);