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);
212 $num = max($num, 0);
223 $first = max($first + 1, 0);
243 $finger = max($tail - $this->chunk_size, 0);
249 $finger = max($finger - $this->chunk_size, 0);
257 $read_size = max($tail - $finger, 0); // found chunk size
260 $tmp = @fread($fp, max(min($this->chunk_size, $read_size - $got), 0));
279 $finger = max($tail - $this->chunk_size, 0);
286 $num = max(min(count($lines) - $first, $num), 0);
288 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
[all …]
H A DChangeLogTrait.php101 $this->chunk_size = max($chunk_size, 0);
187 $chunk_size = max($tail - $head, 0); // found chunk size
191 $tmp = @fread($fp, max(min($this->chunk_size, $chunk_size - $got), 0));
245 $head = max($tail - $this->chunk_size, 0);
250 $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.php591 $max = str_repeat(chr(0xFF), $bytes);
595 $max = chr((1 << $msb) - 1) . $max;
601 'max' => new static($max, 256)
748 return static::randomRange($min, $max);
766 return static::randomRangePrime($min, $max);
773 * @param Engine $max
776 protected static function randomRangePrimeOuter(Engine $min, Engine $max) argument
778 $compare = $max->compare($min);
784 $temp = $max;
785 $max = $min;
[all …]
H A DGMP.php483 * @param Engine $max
486 protected static function randomRangePrimeInner(Engine $x, Engine $min, Engine $max) argument
490 if ($p <= $max->value) {
507 * @param GMP $max
510 public static function randomRangePrime(GMP $min, GMP $max) argument
512 return self::randomRangePrimeOuter($min, $max);
525 * @param GMP $max
528 public static function randomRange(GMP $min, GMP $max) argument
530 return self::randomRangeHelper($min, $max);
602 public static function max(GMP ...$nums) function in phpseclib3\\Math\\BigInteger\\Engines\\GMP
[all …]
H A DBCMath.php490 * @param BCMath $max
493 public static function randomRangePrime(BCMath $min, BCMath $max) argument
495 return self::randomRangePrimeOuter($min, $max);
508 * @param BCMath $max
511 public static function randomRange(BCMath $min, BCMath $max) argument
513 return self::randomRangeHelper($min, $max);
612 public static function max(BCMath ...$nums) function in phpseclib3\\Math\\BigInteger\\Engines\\BCMath
621 * @param BCMath $max
624 public function between(BCMath $min, BCMath $max) argument
626 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/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/phpseclib/phpseclib/phpseclib/Math/
H A DBigInteger.php626 'max' => new static($max)
688 * @param BigInteger $max
691 public static function randomRangePrime(BigInteger $min, BigInteger $max) argument
694 return new static($class::randomRangePrime($min->value, $max->value));
707 * @param BigInteger $max
710 public static function randomRange(BigInteger $min, BigInteger $max) argument
713 return new static($class::randomRange($min->value, $max->value));
776 public static function max(BigInteger ...$nums) function in phpseclib3\\Math\\BigInteger
782 return new static($class::max(...$nums));
789 * @param BigInteger $max
[all …]
/dokuwiki/vendor/simplepie/simplepie/src/Net/
H A DIPv6.php147 $max = 0;
150 if (strlen($match[0]) > $max) {
151 $max = strlen($match[0]);
156 $ip_parts[0] = substr_replace($ip_parts[0], '::', $pos, $max);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DDH.php257 $max = $one->bitwise_leftShift($length);
258 $max = $max->subtract($one);
260 $max = $params->prime->subtract($one);
266 $key->privateKey = BigInteger::randomRange($one, $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/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