本文整理汇总了PHP中lessc_parser::operatorString方法的典型用法代码示例。如果您正苦于以下问题:PHP lessc_parser::operatorString方法的具体用法?PHP lessc_parser::operatorString怎么用?PHP lessc_parser::operatorString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类lessc_parser
的用法示例。
在下文中一共展示了lessc_parser::operatorString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($lessc, $sourceName = null)
{
$this->eatWhiteDefault = true;
// reference to less needed for vPrefix, mPrefix, and parentSelector
$this->lessc = $lessc;
$this->sourceName = $sourceName;
// name used for error messages
$this->writeComments = false;
if (!self::$operatorString) {
self::$operatorString = '(' . implode('|', array_map(array('lessc', 'preg_quote'), array_keys(self::$precedence))) . ')';
$commentSingle = lessc::preg_quote(self::$commentSingle);
$commentMultiLeft = lessc::preg_quote(self::$commentMultiLeft);
$commentMultiRight = lessc::preg_quote(self::$commentMultiRight);
self::$commentMulti = $commentMultiLeft . '.*?' . $commentMultiRight;
self::$whitePattern = '/' . $commentSingle . '[^\\n]*\\s*|(' . self::$commentMulti . ')\\s*|\\s+/Ais';
}
}
示例2: implode
function __construct($lessc, $sourceName = null)
{
// reference to less needed for vPrefix, mPrefix, and parentSelector
$this->lessc = $lessc;
$this->sourceName = $sourceName;
// name used for error messages
if (!self::$operatorString) {
self::$operatorString = '(' . implode('|', array_map(array('lessc', 'preg_quote'), array_keys(self::$precedence))) . ')';
}
}