Searched refs:Util (Results 1 – 8 of 8) sorted by relevance
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/ |
D | Type.php | 7 use LesserPHP\Utils\Util; alias 43 return Util::toBool($value[0] == 'number'); 53 return Util::toBool($value[0] == 'string'); 63 return Util::toBool(Color::coerceColor($value)); 73 return Util::toBool($value[0] == 'keyword'); 83 return Util::toBool($value[0] == 'function' && $value[1] == 'url'); 93 return Util::toBool($value[0] == 'number' && $value[2] == 'px'); 103 return Util::toBool($value[0] == 'number' && $value[2] == 'em'); 113 return Util::toBool($value[0] == 'number' && $value[2] == 'rem'); 123 return Util::toBool($value[0] == 'number' && $value[2] == '%'); [all …]
|
D | ColorOperation.php | 8 use LesserPHP\Utils\Util; alias 50 $hsl[2] = Util::clamp($hsl[2] + $delta, 100); 65 $hsl[2] = Util::clamp($hsl[2] - $delta, 100); 80 $hsl[3] = Util::clamp($hsl[3] + $delta, 100); 95 $hsl[3] = Util::clamp($hsl[3] - $delta, 100); 108 $color[4] = Util::clamp(($color[4] ?? 1) + $delta / 100); 121 $color[4] = Util::clamp(($color[4] ?? 1) - $delta / 100); 135 $color[4] = Util::clamp($alpha / 100.0);
|
D | Strings.php | 7 use LesserPHP\Utils\Util; alias 72 '/' . Util::pregQuote($match) . '/',
|
D | Misc.php | 7 use LesserPHP\Utils\Util; alias 53 return Util::convert($value, $to);
|
D | Math.php | 8 use LesserPHP\Utils\Util; alias 237 $converted = Util::convert($values[$a], $first_format); 264 $converted = Util::convert($values[$a], $first_format);
|
/dokuwiki/vendor/splitbrain/lesserphp/src/Utils/ |
D | Util.php | 11 class Util class
|
/dokuwiki/vendor/splitbrain/lesserphp/src/ |
D | Parser.php | 15 use LesserPHP\Utils\Util; alias 105 [Util::class, 'pregQuote'], 109 $commentSingle = Util::pregQuote(self::$commentSingle); 110 $commentMultiLeft = Util::pregQuote(self::$commentMultiLeft); 111 $commentMultiRight = Util::pregQuote(self::$commentMultiRight); 359 array_map([Util::class, 'pregQuote'], $directives) 672 $stop = array_map([Util::class, 'pregQuote'], $stop); 748 $patt = '([^\n]*?)(@\{|\\\\|' . Util::pregQuote($delim) . ')'; 1290 self::$literalCache[$what] = Util::pregQuote($what);
|
D | Lessc.php | 17 use LesserPHP\Utils\Util; alias 1277 $hsl[] = Util::clamp($val, $clamp); 1472 return Util::toBool($left == Constants::TRUE && $right == Constants::TRUE); 1476 return Util::toBool($this->eq($left, $right)); 1601 return Util::toBool($left[1] < $right[1]); 1603 return Util::toBool($left[1] > $right[1]); 1605 return Util::toBool($left[1] >= $right[1]); 1607 return Util::toBool($left[1] <= $right[1]);
|