Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 42) sorted by relevance

12

/dokuwiki/inc/Form/
H A DForm.php111 * @param int $pos
114 public function getElementAt($pos) argument
116 if ($pos < 0) $pos = count($this->elements) + $pos;
117 if ($pos < 0) $pos = 0;
118 if ($pos >= count($this->elements)) $pos = count($this->elements) - 1;
119 return $this->elements[$pos];
132 for ($pos = $offset; $pos < $len; $pos++) {
133 if ($this->elements[$pos]->getType() == $type) {
134 return $pos;
151 for ($pos = $offset; $pos < $len; $pos++) {
[all …]
/dokuwiki/inc/parser/
H A Dhandler.php52 * @param int $pos byte position in the original source file
54 public function addCall($handler, $args, $pos) argument
56 $call = [$handler, $args, $pos];
104 public function _addCall($handler, $args, $pos) argument
107 $this->addCall($handler, $args, $pos);
116 * @param int $pos byte position in the original source file
119 public function addPluginCall($plugin, $args, $state, $pos, $match) argument
121 $call = ['plugin', [$plugin, $args, $state, $match], $pos];
248 * @param int $pos byte position in the original source file
251 protected function nestingTag($match, $state, $pos, $name) argument
[all …]
H A Dxhtmlsummary.php44 * @param int $pos
47 public function header($text, $level, $pos, $returnonly = false) argument
H A Drenderer.php198 * @param int $pos byte position in the original source
200 public function header($text, $level, $pos) argument
752 * @param int $pos byte position in the original source
754 public function table_open($maxcols = null, $numrows = null, $pos = null) argument
761 * @param int $pos byte position in the original source
763 public function table_close($pos = null) argument
/dokuwiki/vendor/simplepie/simplepie/src/Content/Type/
H A DSniffer.php96 if (($pos = strpos($this->file->headers['content-type'], ';')) !== false) {
97 $official = substr($this->file->headers['content-type'], 0, $pos);
208 $pos = strspn($this->file->body, "\x09\x0A\x0D\x20\xEF\xBB\xBF");
210 while ($pos < $len) {
211 switch ($this->file->body[$pos]) {
216 $pos += strspn($this->file->body, "\x09\x0A\x0D\x20", $pos);
220 $pos++;
227 if (substr($this->file->body, $pos, 3) === '!--') {
228 $pos += 3;
229 if ($pos < $len && ($pos = strpos($this->file->body, '-->', $pos)) !== false) {
[all …]
/dokuwiki/inc/Parsing/Handler/
H A DPreformatted.php7 protected $pos; variable in dokuwiki\\Parsing\\Handler\\Preformatted
27 $this->pos = $call[2];
37 $this->callWriter->writeCall(['preformatted', [$this->text], $this->pos]);
40 $this->callWriter->writeCall(['eol', [], $this->pos]);
41 $this->callWriter->writeCall(['eol', [], $this->pos]);
H A DBlock.php58 protected function openParagraph($pos) argument
61 $this->calls[] = ['p_open', [], $pos];
73 * @param string|integer $pos
75 protected function closeParagraph($pos) argument
103 $this->calls[] = ['p_close', [], $pos];
/dokuwiki/inc/
H A DJpegMeta.php1521 $pos = 0;
1542 $this->_info['sof']['SamplePrecision'] = $this->_getByte($data, $pos + 0);
1543 $this->_info['sof']['ImageHeight'] = $this->_getShort($data, $pos + 1);
1544 $this->_info['sof']['ImageWidth'] = $this->_getShort($data, $pos + 3);
1545 $this->_info['sof']['ColorChannels'] = $this->_getByte($data, $pos + 5);
1693 $pos = 6;
1698 $byteAlign = $this->_getShort($data, $pos + 0);
1708 $alignCheck = $this->_getShort($data, $pos + 2, $isBigEndian);
1718 $offsetIFD0 = $this->_getLong($data, $pos + 4, $isBigEndian);
1722 $offsetIFD1 = $this->_readIFD($data, $pos, $offsetIFD0, $isBigEndian, 'ifd0');
[all …]
H A Dform.php162 * @param string $pos 0-based index where the element will be inserted.
167 public function insertElement($pos, $elem) argument
169 array_splice($this->_content, $pos, 0, array($elem));
177 * @param int $pos 0-based index the element will be placed at.
182 public function replaceElement($pos, $elem) argument
186 array_splice($this->_content, $pos, 1, $rep);
201 foreach ($this->_content as $pos => $elem) {
203 return $pos;
220 foreach ($this->_content as $pos => $elem) {
222 return $pos;
[all …]
H A Dpageutils.php180 $pos = strrpos((string)$id, ':');
181 if ($pos !== false) {
182 return substr((string)$id, 0, $pos);
197 $pos = strrpos($id, ':');
198 if ($pos !== false) {
199 return substr($id, $pos + 1);
H A Dio.php169 $pos = strpos($str, "\n");
170 while ($pos !== false) {
171 $lines[] = substr($str, 0, $pos + 1);
172 $str = substr($str, $pos + 1);
173 $pos = strpos($str, "\n");
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DFeedCreator.php104 $pos = strrpos($string, ".");
105 if ($pos >= $length - 4) {
107 $pos = strrpos($string, ".");
109 if ($pos >= $length * 0.4) {
110 return substr($string, 0, $pos + 1)." ...";
113 $pos = strrpos($string, " ");
114 if ($pos >= $length - 4) {
116 $pos = strrpos($string, " ");
118 if ($pos >= $length * 0.4) {
119 return substr($string, 0, $pos)." ...";
/dokuwiki/vendor/simplepie/simplepie/src/Net/
H A DIPv6.php148 $pos = null;
152 $pos = $match[1];
156 $ip_parts[0] = substr_replace($ip_parts[0], '::', $pos, $max);
181 $pos = strrpos($ip, ':');
182 $ipv6_part = substr($ip, 0, $pos);
183 $ipv4_part = substr($ip, $pos + 1);
/dokuwiki/lib/plugins/authad/
H A Daction.php72 $pos = $form->findPositionByAttribute('name', 'u');
73 if ($pos === false) return;
83 $element = $form->getElementAt($pos);
89 $element = $form->addDropdown('dom', $domains, $this->getLang('domain'), $pos + 1);
/dokuwiki/inc/Parsing/Lexer/
H A DLexer.php141 $pos = 0;
146 if (! $this->dispatchTokens($unmatched, $matched, $mode, $pos, $matchPos)) {
153 $pos = $initialLength - $currentLength;
158 return $this->invokeHandler($raw, DOKU_LEXER_UNMATCHED, $pos);
251 * @param int $pos Current byte index location in raw doc
255 protected function invokeHandler($content, $is_match, $pos) argument
269 return $this->handler->$handler($content, $is_match, $pos, $plugin);
272 return $this->handler->$handler($content, $is_match, $pos);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP/
H A DStream.php64 private $pos; variable in phpseclib3\\Net\\SFTP\\Stream
273 $this->pos = $this->mode[0] != 'a' ? 0 : $this->size;
300 $result = $this->sftp->get($this->path, false, $this->pos, $count);
314 $this->pos += strlen($result);
332 $result = $this->sftp->put($this->path, $data, SFTP::SOURCE_STRING, $this->pos);
345 $this->pos += strlen($data);
346 if ($this->pos > $this->size) {
347 $this->size = $this->pos;
360 return $this->pos;
396 $offset += $this->pos;
[all …]
/dokuwiki/inc/Extension/
H A DSyntaxPlugin.php74 * @param int $pos The character position of the matched text
78 abstract public function handle($match, $state, $pos, Doku_Handler $handler); argument
/dokuwiki/vendor/simplepie/simplepie/src/
H A DMisc.php1760 while ($position < $length && ($pos = strpos($string, '(', $position)) !== false) {
1761 $output .= substr($string, $position, $pos - $position);
1762 $position = $pos + 1;
1763 if ($string[$pos - 1] !== '\\') {
1796 if (($pos = strpos($mime, ';')) === false) {
1800 return trim(substr($mime, 0, $pos));
1984 if ($pos = strpos($data, "\x00\x00\x00\x3F\x00\x00\x00\x3E")) {
1985 …$registry->create(Parser::class, [Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32BE', …
1994 if ($pos = strpos($data, "\x3F\x00\x00\x00\x3E\x00\x00\x00")) {
1995 …$registry->create(Parser::class, [Misc::change_encoding(substr($data, 20, $pos - 20), 'UTF-32LE', …
[all …]
H A DParser.php127 … 0, 5) === '<?xml' && strspn(substr($data, 5, 1), "\x09\x0A\x0D\x20") && ($pos = strpos($data, '?>…
128 … $declaration = $this->registry->create(DeclarationParser::class, [substr($data, 5, $pos - 5)]);
130 $data = substr($data, $pos + 2);
350 if ($pos = strpos($string, $this->separator)) {
355 $namespace = substr($string, 0, $pos);
356 $local_name = substr($string, $pos + $separator_length);
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/Common/
H A DSymmetricKey.php1202 $pos = &$this->enbuffer['pos'];
1205 $pos = 0;
1209 if ($pos) {
1210 $orig_pos = $pos;
1211 $max = $this->block_size - $pos;
1215 $pos = 0;
1218 $pos += $len;
1237 $pos = $overflow;
1288 $pos = &$this->enbuffer['pos'];
1292 if ($pos) {
[all …]
/dokuwiki/inc/Utf8/
H A DPhpString.php360 $pos = strpos($haystack, $needle, $offset + $comp);
362 if ($pos === false)
365 $length = self::strlen(substr($haystack, 0, $pos));
368 $comp = $pos - $length;
/dokuwiki/vendor/simplepie/simplepie/src/Parse/
H A DDate.php764 while ($position < $length && ($pos = strpos($string, '(', $position)) !== false) {
765 $output .= substr($string, $position, $pos - $position);
766 $position = $pos + 1;
767 if ($pos === 0 || $string[$pos - 1] !== '\\') {
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/BaseCurves/
H A DKoblitzPrime.php173 $pos = 2 * $i;
174 $npoints[$pos] = $p;
175 $nscalars[$pos] = $this->factory->newInteger($k1);
177 $pos++;
178 $npoints[$pos] = $beta;
179 $nscalars[$pos] = $this->factory->newInteger($k2);
/dokuwiki/lib/scripts/
H A Dtoolbar.js240 pos = $btn.offset();
246 var picker_left = pos.left + 3,
259 $picker.offset({left: picker_left, top: pos.top+$btn[0].offsetHeight+3});
H A Dlinkwiz.js37 const pos = $editor.position();
56 'top': (pos.top + 20) + 'px',
57 'left': (pos.left + 80) + 'px'

12