function lessc::to in Less CSS Preprocessor 6.3
Same name and namespace in other branches
- 6 lessc.inc.php \lessc::to()
4 calls to lessc::to()
- lessc::func in lessphp/
lessc.inc.php - lessc::import in lessphp/
lessc.inc.php - lessc::string in lessphp/
lessc.inc.php - lessc::tagBracket in lessphp/
lessc.inc.php
File
- lessphp/
lessc.inc.php, line 1174
Class
Code
function to($what, &$out, $until = false, $allowNewline = false) {
$validChars = $allowNewline ? "[^\n]" : '.';
if (!$this
->match('(' . $validChars . '*?)' . $this
->preg_quote($what), $m, !$until)) {
return false;
}
if ($until) {
$this->count -= strlen($what);
}
// give back $what
$out = $m[1];
return true;
}