Esempio n. 1
0
 /**
  * static
  * @access  public
  * @param   string  $pattern  ex)'/%full%/'
  * @return  string
  */
 function getAnchorRegex($pattern)
 {
     static $caches_ = array();
     if (!array_key_exists($pattern, $caches_)) {
         $caches_[$pattern] = strtr($pattern, ShowThread::getAnchorRegexParts());
         // 大差はないが compileMobile2chUriCallBack() のように preg_relplace_callback()してもいいかも。
     }
     return $caches_[$pattern];
 }