Beans_Lessc::preg_quote PHP Method

preg_quote() public static method

public static preg_quote ( $what )
    public static function preg_quote($what)
    {
        return preg_quote($what, '/');
    }

Usage Example

コード例 #1
0
ファイル: lessc.php プロジェクト: Getbeans/Beans
 protected function to($what, &$out, $until = false, $allowNewline = false)
 {
     if (is_string($allowNewline)) {
         $validChars = $allowNewline;
     } else {
         $validChars = $allowNewline ? "." : "[^\n]";
     }
     if (!$this->match('(' . $validChars . '*?)' . Beans_Lessc::preg_quote($what), $m, !$until)) {
         return false;
     }
     if ($until) {
         $this->count -= strlen($what);
     }
     // give back $what
     $out = $m[1];
     return true;
 }