Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 196) sorted by relevance

12345678

/dokuwiki/_test/tests/inc/parser/
H A Drenderer_pipeline.test.php26 $this->assertSame(1, $h1->count(), 'page must have exactly one h1');
30 $this->assertGreaterThan(10, $doc->find('h2')->count(), 'page must have many h2 sections');
31 $this->assertGreaterThan(0, $doc->find('h3')->count());
32 $this->assertGreaterThan(0, $doc->find('h4')->count());
42 $this->assertGreaterThan(0, $doc->find('a.wikilink1, a.wikilink2')->count());
43 $this->assertGreaterThan(0, $doc->find('a.urlextern')->count());
44 $this->assertGreaterThan(0, $doc->find('a.interwiki')->count());
47 $this->assertGreaterThan(0, $doc->find('em')->count());
48 $this->assertGreaterThan(0, $doc->find('strong')->count());
49 $this->assertGreaterThan(0, $doc->find('code')->count());
[all …]
/dokuwiki/inc/Parsing/Lexer/
H A DParallelRegex.php53 $count = count($this->patterns);
54 $this->patterns[$count] = $pattern;
55 $this->labels[$count] = $label;
70 if (count($this->patterns) == 0) {
97 $idx = count($matches) - 2;
115 $cnt = count($this->patterns);
H A DStateStack.php35 return $this->stack[count($this->stack) - 1];
55 if (count($this->stack) == 1) {
/dokuwiki/_test/tests/Search/Index/
H A DFileIndexTest.php12 static $count = 0;
13 return new FileIndex('index', $count++, true);
28 $this->assertEquals(6, count($full));
32 $this->assertEquals(6, count($full));
50 $this->assertEquals(6, count($full));
H A DMemoryIndexTest.php12 static $count = 0;
13 return new MemoryIndex('index', $count++, true);
28 $this->assertEquals(6, count($full));
32 $this->assertEquals(6, count($full));
55 $this->assertEquals(6, count($full));
H A DTupleOpsTest.php45 public function testUpdateTuple($record, $key, $count, $expect) argument
47 $result = TupleOps::updateTuple($record, $key, $count);
/dokuwiki/inc/Search/Index/
H A DTupleOps.php18 * @param int $count The count to store
22 public static function updateTuple(string $record, int|string $key, int $count): string argument
29 if ($count) {
31 $tuple = ($count == 1) ? $key : "$key*$count";
H A DMemoryIndex.php73 if ($rid > count($this->data)) {
104 $count = count($this->data);
105 for ($ln = 0; $ln < $count; $ln++) {
182 public function count(): int function in dokuwiki\\Search\\Index\\MemoryIndex
184 return count($this->data);
/dokuwiki/vendor/splitbrain/lesserphp/src/
H A DParser.php27 public $count; variable in LesserPHP\\Parser
123 $this->count = 0;
144 if ($this->count != strlen($this->buffer)) {
147 $this->count,
219 $this->count--;
385 if (count($values) == 0) return false;
425 $whiteBefore = isset($this->buffer[$this->count - 1]) &&
426 ctype_space($this->buffer[$this->count - 1]);
449 $whiteAfter = isset($this->buffer[$this->count - 1]) &&
450 ctype_space($this->buffer[$this->count - 1]);
[all …]
/dokuwiki/_test/tests/Form/
H A DInputElementTest.php18 $this->assertTrue($input->count() == 1);
23 $this->assertTrue($label->count() == 1);
41 $this->assertTrue($input->count() == 1);
56 $this->assertTrue($input->count() == 1);
69 $this->assertTrue($input->count() == 1);
74 $this->assertTrue($label->count() == 1);
H A DButtonElementTest.php20 $this->assertTrue($input->count() == 1);
26 $this->assertTrue($b->count() == 0);
38 $this->assertTrue($input->count() == 1);
44 $this->assertTrue($b->count() == 1);
H A DDropdownElementTest.php38 $this->assertTrue($select->count() == 1);
41 $this->assertTrue($options->count() == 3);
44 $this->assertTrue($option->count() == 1);
49 $this->assertTrue($label->count() == 1);
78 $this->assertTrue($select->count() == 1);
81 $this->assertEquals(3, $options->count());
84 $this->assertEquals(1, $option->count());
128 $this->assertEquals(2, $optGroupsHTML->count());
131 $this->assertEquals(4, $options->count());
150 $this->assertEquals(1, $selected->count());
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/Formats/Keys/
H A DJWK.php42 $count = $publicCount = 0;
48 $count++;
79 if ($count == count($vars)) {
83 if ($count == 2 && $publicCount == 2) {
105 if (count($primes) != 2) {
/dokuwiki/inc/
H A DJpegMeta.php1009 $count = 0;
1065 $this->_markers[$count] = array();
1066 $this->_markers[$count]['marker'] = $marker;
1067 $this->_markers[$count]['length'] = $length;
1071 $this->_markers[$count]['data'] = fread($this->_fp, $length);
1073 $this->_markers[$count]['data'] = "";
1084 $count++;
1170 $count = 0;
1432 $count = count($this->_markers);
1433 for ($i = 0; $i < $count; $i++) {
[all …]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/
H A DEvalBarrett.php59 $m_length = count($m->value);
108 $cutoff = count($m) + (count($m) >> 1);
115 if (count($n) > ' . (2 * count($m)) . ') {
132 $code .= '$temp = array_slice($n, ' . (count($m) - 1) . ');';
137 '$temp = array_slice($temp2, ' . (count($m) + 1) . ');' :
138 '$temp = array_slice($temp2, ' . ((count($m) >> 1) + 1) . ');';
201 if (!count($arr)) {
210 $' . $output . ' = array_fill(0, $length + ' . count($arr) . ', 0);
213 for ($i = 0; $i < count($arr); $i++) {
231 $regular .= '$' . $output . '[' . count($arr) . '] = $carry;';
[all …]
H A DMontgomeryMult.php52 $key = count($cache[self::VARIABLE]);
57 $n = max(count($x), count($y), count($m));
/dokuwiki/lib/plugins/usermanager/_test/
H A Dcsv_import.test.php60 $import_count = count($after_users) - count($before_users);
64 $expectedCount = count($expectedNewUsers);
174 $count = 0;
177 $count++;
180 return $count;
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DPHP.php152 if (!count($this->value)) {
163 while (count($temp->value)) {
196 if (!count($this->value)) {
224 $x_size = count($x_value);
225 $y_size = count($y_value);
263 $value[count($value)] = 0; // just in case the carry adds an extra digit
309 $x_size = count($x_value);
310 $y_size = count($y_value);
349 $x_size = count($x_value);
350 $y_size = count($y_value);
[all …]
/dokuwiki/_test/tests/inc/search/
H A Dsearch.test.php18 $this->assertEquals(3, count($data));
23 $this->assertEquals(0, count($data));
28 $this->assertEquals(2, count($data));
/dokuwiki/lib/plugins/authpdo/_test/
H A Dmysql.test.php123 $this->assertGreaterThanOrEqual(count($users), count($list), $info);
132 $count = $auth->getUserCount();
133 $this->assertGreaterThanOrEqual(count($users), $count);
182 $this->assertGreaterThanOrEqual(1, count($list));
184 $this->assertGreaterThanOrEqual(1, count($list));
186 $this->assertGreaterThanOrEqual(1, count($list));
191 $count = $auth->getUserCount(array('user' => $user['user']));
192 $this->assertGreaterThanOrEqual(1, $count);
193 $count = $auth->getUserCount(array('name' => $user['name']));
194 $this->assertGreaterThanOrEqual(1, $count);
[all …]
/dokuwiki/lib/plugins/authplain/
H A Dauth.php267 $count = count($this->users);
269 $count -= count($this->users);
270 return $count;
286 if ($filter === []) return count($this->users);
288 $count = 0;
292 $count += $this->filter($user, $info);
295 return $count;
316 $count = 0;
324 $count++;
325 if (($limit > 0) && ($count >= $limit)) break;
[all …]
/dokuwiki/lib/plugins/extension/_test/
H A DInstallerTest.php58 $this->assertEquals(count($expected), count($list), 'number of extensions found');
/dokuwiki/vendor/simplepie/simplepie/
H A Dphpstan.dist.neon13 count: 1
19 count: 1
30 count: 1
37 count: 1
45 count: 3
53 count: 3
/dokuwiki/inc/TreeBuilder/
H A DTreeSort.php31 $min = min(count($pathA), count($pathB));
38 return count($pathA) <=> count($pathB);
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingMulticheckbox.php87 (count($default) === count($value)) &&
88 (count($value) === count(array_intersect($value, $default)))
123 if (count($idx) && $idx[count($idx) - 1] !== false) {

12345678