Home
last modified time | relevance | path

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

123

/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/vendor/simplepie/simplepie/src/Content/Type/
H A DSniffer.php71 if (($pos = strpos($content_type, ';')) !== false) {
72 $official = substr($content_type, 0, $pos);
191 $pos = strspn($body, "\x09\x0A\x0D\x20\xEF\xBB\xBF");
193 while ($pos < $len) {
194 switch ($body[$pos]) {
199 $pos += strspn($body, "\x09\x0A\x0D\x20", $pos);
203 $pos++;
210 if (substr($body, $pos, 3) === '!--') {
211 $pos += 3;
212 if ($pos < $len && ($pos = strpos($body, '-->', $pos)) !== false) {
[all …]
/dokuwiki/inc/Parsing/ParserMode/
H A DTable.php56 public function handle($match, $state, $pos, Handler $handler) argument
62 $handler->addCall('table_start', [$pos + 1], $pos);
64 $handler->addCall('tableheader', [], $pos);
66 $handler->addCall('tablecell', [], $pos);
71 $handler->addCall('table_end', [$pos], $pos);
79 $handler->addCall('cdata', [$match], $pos);
85 $handler->addCall('cdata', [$match], $pos);
87 $handler->addCall('rowspan', [$match], $pos);
89 $handler->addCall('table_align', [$match], $pos);
91 $handler->addCall('table_align', [$match], $pos);
[all …]
H A DInternallink.php24 public function handle($match, $state, $pos, Handler $handler) argument
45 $pos
52 $pos
59 $pos
66 $pos
73 $pos
80 $pos
H A DHeader.php27 public function handle($match, $state, $pos, Handler $handler) argument
36 if ($handler->getStatus('section')) $handler->addCall('section_close', [], $pos);
38 $handler->addCall('header', [$title, $level, $pos], $pos);
40 $handler->addCall('section_open', [$level], $pos);
H A DFootnote.php53 public function handle($match, $state, $pos, Handler $handler) argument
60 $handler->addCall('cdata', [$match], $pos);
66 $handler->addCall('footnote_open', [], $pos);
71 $handler->addCall('cdata', [$match], $pos);
76 $handler->addCall('footnote_close', [], $pos);
83 $handler->addCall('cdata', [$match], $pos);
H A DQuote.php44 public function handle($match, $state, $pos, Handler $handler) argument
49 $handler->addCall('quote_start', [$match], $pos);
53 $handler->addCall('quote_end', [], $pos);
60 $handler->addCall('quote_newline', [$match], $pos);
64 $handler->addCall('cdata', [$match], $pos);
H A DPreformatted.php38 public function handle($match, $state, $pos, Handler $handler) argument
43 $handler->addCall('preformatted_start', [], $pos);
46 $handler->addCall('preformatted_end', [], $pos);
52 $handler->addCall('preformatted_newline', [], $pos);
55 $handler->addCall('preformatted_content', [$match], $pos);
H A DListblock.php55 public function handle($match, $state, $pos, Handler $handler) argument
60 $handler->addCall('list_open', [$match], $pos);
63 $handler->addCall('list_close', [], $pos);
69 $handler->addCall('list_item', [$match], $pos);
72 $handler->addCall('cdata', [$match], $pos);
H A DMedia.php23 public function handle($match, $state, $pos, Handler $handler) argument
30 $pos
73 $pos = strrpos($link[0], '?');
74 if ($pos !== false) {
75 $src = substr($link[0], 0, $pos);
76 $param = substr($link[0], $pos + 1);
H A DAbstractFormatting.php74 public function handle($match, $state, $pos, Handler $handler) argument
78 DOKU_LEXER_ENTER => $handler->addCall($name . '_open', [], $pos),
79 DOKU_LEXER_EXIT => $handler->addCall($name . '_close', [], $pos),
80 DOKU_LEXER_UNMATCHED => $handler->addCall('cdata', [$match], $pos),
H A DNocache.php22 public function handle($match, $state, $pos, Handler $handler) argument
24 $handler->addCall('nocache', [], $pos);
H A DLinebreak.php22 public function handle($match, $state, $pos, Handler $handler) argument
24 $handler->addCall('linebreak', [], $pos);
H A DHr.php22 public function handle($match, $state, $pos, Handler $handler) argument
24 $handler->addCall('hr', [], $pos);
H A DNotoc.php22 public function handle($match, $state, $pos, Handler $handler) argument
24 $handler->addCall('notoc', [], $pos);
H A DCamelcaselink.php26 public function handle($match, $state, $pos, Handler $handler) argument
28 $handler->addCall('camelcaselink', [$match], $pos);
H A DModeInterface.php54 * @param int $pos Byte position in the source
58 public function handle($match, $state, $pos, Handler $handler); argument
H A DMultiplyentity.php30 public function handle($match, $state, $pos, Handler $handler) argument
33 $handler->addCall('multiplyentity', [$matches[0][0], $matches[0][1]], $pos);
H A DEol.php28 public function handle($match, $state, $pos, Handler $handler) argument
30 $handler->addCall('eol', [], $pos);
/dokuwiki/inc/Parsing/
H A DHandler.php85 * @param int $pos Byte position in the source
89 public function handleToken($modeName, $match, $state, $pos, $originalModeName = '') argument
97 return $this->plugin($match, $state, $pos, $plugin);
102 return $this->modeObjects[$modeName]->handle($match, $state, $pos, $this);
114 * @param int $pos byte position in the original source file
116 public function addCall($handler, $args, $pos) argument
118 $call = [$handler, $args, $pos];
167 public function _addCall($handler, $args, $pos) argument
170 $this->addCall($handler, $args, $pos);
179 * @param int $pos byte position in the original source file
[all …]
/dokuwiki/inc/Parsing/Handler/
H A DPreformatted.php7 protected $pos; variable in dokuwiki\\Parsing\\Handler\\Preformatted
22 $this->pos = $call[2];
32 $this->callWriter->writeCall(['preformatted', [$this->text], $this->pos]);
35 $this->callWriter->writeCall(['eol', [], $this->pos]);
36 $this->callWriter->writeCall(['eol', [], $this->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 …]
/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.php109 $pos = null;
113 $pos = $match[1];
117 …assert($pos !== null, 'For PHPStan: Since the regex matched, there is at least one match. And beca…
118 $ip_parts[0] = substr_replace($ip_parts[0], '::', $pos, $max);
143 $pos = strrpos($ip, ':');
144 …assert($pos !== false, 'For PHPStan: IPv6 address must contain colon, since split_v6_v4 is only ev…
145 $ipv6_part = substr($ip, 0, $pos);
146 $ipv4_part = substr($ip, $pos + 1);
/dokuwiki/_test/tests/Parsing/Lexer/
H A DRecordingHandler.php17 public function handleToken($modeName, $match, $state, $pos, $originalModeName = '') argument
19 $this->recorded[] = [$modeName, $match, $state, $pos];

123