Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 70) sorted by relevance

123

/dokuwiki/_test/tests/inc/
H A Dchangelog_getRevisionsAround.test.php50 $max = 50;
55 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max);
65 $max = 10;
72 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max);
76 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max);
80 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max);
90 $max = 10;
97 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max);
101 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max);
105 $revs = $pagelog->getRevisionsAround($rev1, $rev2, $max);
[all …]
H A Dauth_random.test.php15 $max = $min + (1 << 33) + 17;
16 $rand = auth_random($min, $max);
18 $this->assertTrue($rand <= $max, 'The generated number was too high');
/dokuwiki/vendor/splitbrain/lesserphp/src/Utils/
H A DColor.php80 $max = max($r, $g, $b);
82 $L = ($min + $max) / 2;
83 if ($min == $max) {
87 $S = ($max - $min) / ($max + $min);
89 $S = ($max - $min) / (2.0 - $max - $min);
92 if ($r == $max) {
93 $H = ($g - $b) / ($max - $min);
94 } elseif ($g == $max) {
95 $H = 2.0 + ($b - $r) / ($max - $min);
96 } elseif ($b == $max) {
[all …]
H A DUtil.php22 public static function clamp(float $v, float $max = 1, float $min = 0): float argument
24 return min($max, max($min, $v));
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php152 $rev = max(0, $rev);
214 $num = max($num, 0);
225 $first = max($first + 1, 0);
245 $finger = max($tail - $this->chunk_size, 0);
251 $finger = max($finger - $this->chunk_size, 0);
259 $read_size = max($tail - $finger, 0); // found chunk size
262 $tmp = @fread($fp, max(min($this->chunk_size, $read_size - $got), 0));
281 $finger = max($tail - $this->chunk_size, 0);
288 $num = max(min(count($lines) - $first, $num), 0);
290 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
[all …]
H A DChangeLogTrait.php101 $this->chunk_size = max($chunk_size, 0);
192 $chunk_size = max($tail - $head, 0); // found chunk size
196 $tmp = @fread($fp, max(min($this->chunk_size, $chunk_size - $got), 0));
250 $head = max($tail - $this->chunk_size, 0);
255 $head = max($head - $this->chunk_size, 0);
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingNumeric.php15 protected $max; variable in dokuwiki\\plugin\\config\\core\\Setting\\SettingNumeric
22 if ($valid && !(is_null($this->min) && is_null($this->max))) {
26 (!is_null($this->max) && $numeric_local > $this->max)
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DPHP64.php302 * @param PHP64 $max
305 public static function randomRangePrime(PHP64 $min, PHP64 $max) argument
307 return self::randomRangePrimeOuter($min, $max);
320 * @param PHP64 $max
323 public static function randomRange(PHP64 $min, PHP64 $max) argument
325 return self::randomRangeHelper($min, $max);
356 public static function max(PHP64 ...$nums) function in phpseclib3\\Math\\BigInteger\\Engines\\PHP64
365 * @param PHP64 $max
368 public function between(PHP64 $min, PHP64 $max) argument
370 return $this->compare($min) >= 0 && $this->compare($max) <= 0;
H A DPHP32.php301 * @param PHP32 $max
304 public static function randomRangePrime(PHP32 $min, PHP32 $max) argument
306 return self::randomRangePrimeOuter($min, $max);
319 * @param PHP32 $max
322 public static function randomRange(PHP32 $min, PHP32 $max) argument
324 return self::randomRangeHelper($min, $max);
355 public static function max(PHP32 ...$nums) function in phpseclib3\\Math\\BigInteger\\Engines\\PHP32
364 * @param PHP32 $max
367 public function between(PHP32 $min, PHP32 $max) argument
369 return $this->compare($min) >= 0 && $this->compare($max) <= 0;
H A DEngine.php627 $max = str_repeat(chr(0xFF), $bytes);
631 $max = chr((1 << $msb) - 1) . $max;
637 'max' => new static($max, 256)
781 $max = $minMax['max'];
782 return static::randomRange($min, $max);
797 $max = $minMax['max'];
798 return static::randomRangePrime($min, $max);
805 * @param Engine $max
808 protected static function randomRangePrimeOuter(Engine $min, Engine $max) argument
810 $compare = $max->compare($min);
[all …]
H A DGMP.php486 * @param Engine $max
489 protected static function randomRangePrimeInner(Engine $x, Engine $min, Engine $max) argument
493 if ($p <= $max->value) {
510 * @param GMP $max
513 public static function randomRangePrime(GMP $min, GMP $max) argument
515 return self::randomRangePrimeOuter($min, $max);
528 * @param GMP $max
531 public static function randomRange(GMP $min, GMP $max) argument
533 return self::randomRangeHelper($min, $max);
605 public static function max(GMP ...$nums) function in phpseclib3\\Math\\BigInteger\\Engines\\GMP
[all …]
H A DBCMath.php494 * @param BCMath $max
497 public static function randomRangePrime(BCMath $min, BCMath $max) argument
499 return self::randomRangePrimeOuter($min, $max);
512 * @param BCMath $max
515 public static function randomRange(BCMath $min, BCMath $max) argument
517 return self::randomRangeHelper($min, $max);
616 public static function max(BCMath ...$nums) function in phpseclib3\\Math\\BigInteger\\Engines\\BCMath
625 * @param BCMath $max
628 public function between(BCMath $min, BCMath $max) argument
630 return $this->compare($min) >= 0 && $this->compare($max) <= 0;
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php19 protected $max = 74; variable in splitbrain\\phpcli\\TableFormatter
34 $this->max = $width - 1;
74 return $this->max;
80 * @param int $max
82 public function setMaxWidth($max) argument
84 $this->max = $max;
150 $remain = $this->max - $alloc;
165 $remain = $this->max - $alloc;
/dokuwiki/vendor/aziraphale/email-address-validator/
H A DEmailAddressValidator.php96 for ($i = 0, $max = sizeof($localPortionParts); $i < $max; $i++) {
151 for ($i = 0, $max = sizeof($domainPortionParts); $i < $max; $i++) {
160 if ($i == $max - 1) { // TLD cannot be only numbers
/dokuwiki/lib/plugins/extension/
H A Dremote.php47 * @param int $max Maximum number of results (default 10)
50 public function search($query, $max = 10) argument
59 if ($max > 0) {
60 $result = array_slice($result, 0, $max);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/
H A DBigInteger.php657 $max = $minMax['max'];
660 'max' => new static($max)
722 * @param BigInteger $max
725 public static function randomRangePrime(BigInteger $min, BigInteger $max) argument
728 return new static($class::randomRangePrime($min->value, $max->value));
741 * @param BigInteger $max
744 public static function randomRange(BigInteger $min, BigInteger $max) argument
747 return new static($class::randomRange($min->value, $max->value));
810 public static function max(BigInteger ...$nums) function in phpseclib3\\Math\\BigInteger
816 return new static($class::max(...$nums));
[all …]
/dokuwiki/lib/scripts/
H A Dqsearch.js99 var max, $links, too_big;
118max = dw_qsearch.$outObj[0].clientWidth; // maximum width allowed (but take away paddings below)
120 max -= parseInt(dw_qsearch.$outObj.css('padding-left'));
125 max -= parseInt(dw_qsearch.$outObj.css('padding-right'));
127 return l.offsetWidth + l.offsetLeft > max;
/dokuwiki/vendor/simplepie/simplepie/src/Net/
H A DIPv6.php108 $max = 0;
111 if (strlen($match[0]) > $max) {
112 $max = strlen($match[0]);
118 $ip_parts[0] = substr_replace($ip_parts[0], '::', $pos, $max);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/
H A DPrime.php540 $max = 0;
547 $max = max(count($naf[$a]), count($naf[$b]), $max);
575 $max = max(count($jsf[0]), $max);
576 if ($max > 0) {
577 $naf[$a] = array_fill(0, $max, 0);
578 $naf[$b] = array_fill(0, $max, 0);
584 for ($j = 0; $j < $max; $j++) {
596 for ($i = $max; $i >= 0; $i--) {
655 $max = (1 << $wnd) - 1;
656 $dbl = $max == 1 ? null : $this->doublePoint($point);
[all …]
/dokuwiki/lib/tpl/dokuwiki/images/
H A Dpagetools-build.php111 $r = max(min(round($r*$scale),255),0);
112 $g = max(min(round($g*$scale),255),0);
113 $b = max(min(round($b*$scale),255),0);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DDH.php263 $max = $one->bitwise_leftShift($length);
264 $max = $max->subtract($one);
266 $max = $params->prime->subtract($one);
272 $key->privateKey = BigInteger::randomRange($one, $max);
/dokuwiki/lib/plugins/logviewer/
H A Dstyle.less17 max-height: 80vh;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BinaryField/
H A DInteger.php131 $length = max(strlen($a), strlen($b));
174 $length = max(strlen($s), strlen($q));
179 $length = max(strlen($r), strlen($s));
201 $length = max(strlen($x), strlen($y));
237 $length = max(strlen($x), strlen($y));
324 $length = max(strlen($x), strlen($y));
339 $length = max(strlen($x), strlen($y), strlen($z));
/dokuwiki/lib/tpl/dokuwiki/css/
H A Dmobile.less16 @media only screen and (max-width: @ini_tablet_width) {
143 @media only screen and (max-width: @ini_phone_width) {
156 max-width: 100%;
286 max-width: 100% !important;
289 max-width: 100% !important;
324 @media only screen and (max-height: 400px) {
H A D_footnotes.css12 max-width: 40%;

123