Home
last modified time | relevance | path

Searched refs:match (Results 26 – 50 of 55) sorted by last modified time

123

/dokuwiki/inc/Parsing/Handler/
H A DLists.php175 protected function interpretSyntax($match, &$type) argument
177 if (str_ends_with($match, '*')) {
184 return substr_count(str_replace("\t", ' ', $match), ' ') + 1;
/dokuwiki/vendor/simplepie/simplepie/src/
H A DSanitize.php519 public function do_strip_htmltags($match) argument
522 if (isset($match[4]) && !in_array(strtolower($match[1]), ['script', 'style'])) {
523 $match[1] = htmlspecialchars($match[1], ENT_COMPAT, 'UTF-8');
524 $match[2] = htmlspecialchars($match[2], ENT_COMPAT, 'UTF-8');
525 return "<$match[1]$match[2]>$match[
[all...]
H A DSimplePie.php1414 * Allows you to override SimplePie's output to match that of your webpage.
1774 $headers['if-none-match'] = $this->data['headers']['etag'];
2783 } elseif (($return = $this->get_channel_tags(self::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
2784 return (float) $match[1];
2808 } elseif (($return = $this->get_channel_tags(self::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
2809 return (float) $match[2];
H A DSource.php430 } elseif (($return = $this->get_source_tags(\SimplePie\SimplePie::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
431 return (float) $match[1];
443 } elseif (($return = $this->get_source_tags(\SimplePie\SimplePie::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
444 return (float) $match[2];
H A DIRI.php330 if (preg_match('/^((?P<scheme>[^:\/?#]+):)?(\/\/(?P<authority>[^\/?#]*))?(?P<path>[^?#]*)(\?(?P<query>[^#]*))?(#(?P<fragment>.*))?$/', $iri, $match)) {
331 if ($match[1] === '') {
332 $match['scheme'] = null;
334 if (!isset($match[3]) || $match[3] === '') {
335 $match['authority'] = null;
337 if (!isset($match[5])) {
338 $match['path'] = '';
340 if (!isset($match[6]) || $match[
532 remove_iunreserved_percent_encoded($match) global() argument
[all...]
H A DItem.php2312 } elseif (($return = $this->get_item_tags(\SimplePie\SimplePie::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
2313 return (float) $match[1];
2337 } elseif (($return = $this->get_item_tags(\SimplePie\SimplePie::NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match)) {
2338 return (float) $match[2];
/dokuwiki/vendor/marcusschwarz/lesserphp/
H A Dlessc.inc.php
/dokuwiki/data/pages/wiki/
H A Dsyntax.txt137 Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}
/dokuwiki/inc/Ui/
H A DPageDiff.php542 return preg_replace_callback('/<[^>]*>|[^<> ]{12,}/', function ($match) {
543 // if match is an html tag, return it intact
544 if ($match[0][0] == '<') return $match[0];
551 &\#?\\w{1,6}; # yes pattern - a quicker match for the html entity, since we know we have one
556 return preg_replace('<' . $regex . '>xu', '\0<wbr>', $match[0]);
/dokuwiki/inc/Utf8/
H A DPhpString.php162 if (!preg_match('#' . $offset_pattern . $length_pattern . '#us', $str, $match)) return '';
163 return $match[1];
/dokuwiki/inc/
H A Dauth.php251 * crypted password and browserID match between session and cookie
573 // check superuser match
614 * @param string $user user to match against
753 //check exact match first
756 foreach ($matches as $match) {
757 $match = preg_replace('/#.*$/', '', $match); //ignore comments
758 $acl = preg_split('/[ \t]+/', $match);
771 //we had a match - return it
786 foreach ($matches as $match) {
[all...]
H A Dfetch.functions.php125 static fn($match) => rawurlencode($match[0]),
H A Dfulltext.php256 * @param bool $in_ns match against namespace as well?
465 $match = [];
490 } elseif (preg_match('/' . $re3 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
491 } elseif (preg_match('/' . $re2 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
492 } elseif (preg_match('/' . $re1 . '/iu', $text, $match, PREG_OFFSET_CAPTURE, $offset)) {
497 [$str, $idx] = $match[0];
503 // establish context, 100 bytes surrounding the match string
536 // set $offset for next match attempt
537 // continue matching after the current match
538 // if the current match i
[all...]
H A Dhtml.php308 return @preg_replace_callback("/((<[^>]*)|$regex)/ui", function ($match) {
309 $hlight = unslash($match[0]);
310 if (!isset($match[2])) {
/dokuwiki/lib/scripts/
H A Dmedia.js271 edid = String.prototype.match.call(document.location, /&edid=([^&]+)/);
273 cb = String.prototype.match.call(document.location, /&onselect=([^&]+)/);
276 // arguments here only match the dw_mediamanager_item_select function, these will need to change if you override cb with onselect GET param
H A Dpage.js29 const match = $tgt.attr('class').match(/(\s+|^)editbutton_(\d+)(\s+|$)/);
30 if(!match) return;
31 const nr = match[2];
H A Dbehaviour.js139 if(!LANG.nosmblinks || navigator.userAgent.match(/(Trident|MSIE|Edge)/)) {
172 show_list = $this.val().match(/:$/);
/dokuwiki/lib/plugins/styling/
H A Dadmin.php130 if (preg_match('/^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])$/', $value, $match)) {
131 return '#' . $match[1] . $match[1] . $match[2] . $match[2] . $match[3] . $match[3];
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/
H A DANSI.php266 case preg_match('#\x1B\[(\d+)B#', $this->ansi, $match): // Move cursor down n lines
268 $this->y += (int) $match[1];
270 case preg_match('#\x1B\[(\d+);(\d+)H#', $this->ansi, $match): // Move cursor to screen location v,h
273 $this->x = $match[2] - 1;
274 $this->y = (int) $match[1] - 1;
276 case preg_match('#\x1B\[(\d+)C#', $this->ansi, $match): // Move cursor right n lines
278 $this->x += $match[1];
280 case preg_match('#\x1B\[(\d+)D#', $this->ansi, $match): // Move cursor left n lines
282 $this->x -= $match[1];
287 case preg_match('#\x1B\[(\d+);(\d+)r#', $this->ansi, $match)
[all...]
/dokuwiki/vendor/geshi/geshi/src/
H A Dgeshi.php796 // match the langname
2237 // no match for this delimiter ever
2244 //So we got a new match, update the close_pos
2253 //So we should match an RegExp as Strict Block ...
2261 //We got a match ...
2281 // no match for this delimiter ever
2300 // out of bounds means no next match was found
2324 foreach ($submatches as $match) {
2325 if ($match['next_match'] == $i) {
2507 } elseif (preg_match($regexp, $part, $match, PREG_OFFSET_CAPTUR
3240 handle_keyword_replace($match) global() argument
[all...]
/dokuwiki/lib/plugins/authldap/
H A Dauth.php257 if ($grpkey !== 'count' && preg_match($regexp, $grp, $match)) {
259 $info[$localkey][] = $match[1];
261 $info[$localkey] = $match[1];
461 //replace each match
462 foreach ($matches[1] as $match) {
464 if (is_array($placeholders[$match])) {
465 $value = $placeholders[$match][0];
467 $value = $placeholders[$match];
470 $filter = str_replace('%{' . $match . '}', $value, $filter);
476 * return true if $user + $info match
[all...]
/dokuwiki/vendor/geshi/geshi/
H A DCHANGELOG64 * Lua: match comments non-greedily (Jerry)
377 in SQL will match "CREATE\s+TABLE" instead of literally matching) (BenBE)
601 - Added possibility to match a regexp as comment (SF#1914640, SF#1945301, SF#1934832, BenBE)
656 colour of a regular expression match
926 - Added underscore to allowed characters in match for XML tags (anonymous)
/dokuwiki/inc/parser/
H A Dhandler.php117 * @param string $match matched syntax
119 public function addPluginCall($plugin, $args, $state, $pos, $match)
121 $call = ['plugin', [$plugin, $args, $state, $match], $pos];
187 foreach ($matches as $match) {
188 $equal_sign = strpos($match [0], '=');
190 $key = trim($match[0]);
193 $key = substr($match[0], 0, $equal_sign);
194 $value = substr($match[0], $equal_sign + 1);
246 * @param string $match matched syntax
251 protected function nestingTag($match,
111 addPluginCall($plugin, $args, $state, $pos, $match) global() argument
239 nestingTag($match, $state, $pos, $name) global() argument
279 plugin($match, $state, $pos, $pluginname) global() argument
298 base($match, $state, $pos) global() argument
314 header($match, $state, $pos) global() argument
337 notoc($match, $state, $pos) global() argument
348 nocache($match, $state, $pos) global() argument
359 linebreak($match, $state, $pos) global() argument
370 eol($match, $state, $pos) global() argument
381 hr($match, $state, $pos) global() argument
392 strong($match, $state, $pos) global() argument
403 emphasis($match, $state, $pos) global() argument
414 underline($match, $state, $pos) global() argument
425 monospace($match, $state, $pos) global() argument
436 subscript($match, $state, $pos) global() argument
447 superscript($match, $state, $pos) global() argument
458 deleted($match, $state, $pos) global() argument
469 footnote($match, $state, $pos) global() argument
512 listblock($match, $state, $pos) global() argument
540 unformatted($match, $state, $pos) global() argument
553 preformatted($match, $state, $pos) global() argument
582 quote($match, $state, $pos) global() argument
617 file($match, $state, $pos) global() argument
628 code($match, $state, $pos, $type = 'code') global() argument
656 acronym($match, $state, $pos) global() argument
667 smiley($match, $state, $pos) global() argument
678 wordblock($match, $state, $pos) global() argument
689 entity($match, $state, $pos) global() argument
700 multiplyentity($match, $state, $pos) global() argument
712 singlequoteopening($match, $state, $pos) global() argument
723 singlequoteclosing($match, $state, $pos) global() argument
734 apostrophe($match, $state, $pos) global() argument
745 doublequoteopening($match, $state, $pos) global() argument
757 doublequoteclosing($match, $state, $pos) global() argument
773 camelcaselink($match, $state, $pos) global() argument
784 internallink($match, $state, $pos) global() argument
854 filelink($match, $state, $pos) global() argument
865 windowssharelink($match, $state, $pos) global() argument
876 media($match, $state, $pos) global() argument
894 rss($match, $state, $pos) global() argument
929 externallink($match, $state, $pos) global() argument
953 emaillink($match, $state, $pos) global() argument
965 table($match, $state, $pos) global() argument
1022 Doku_Handler_Parse_Media($match) global() argument
[all...]
/dokuwiki/lib/exe/
H A Dcss.php390 if (preg_match('/(.*?)\.svg$/i', $file, $match)) {
391 $exts[] = strtolower($match[1]);
485 * @param array $match see http://php.net/preg_replace_callback
488 public function replacements($match)
491 if (preg_match('#^(/|data:|https?://)#', $match[3])) { // not a relative url? - no adjustment required
492 return $match[0];
493 } elseif (str_ends_with($match[3], '.less')) { // a less file import? - requires a file system location
494 if ($match[3][0] != '/') {
495 $match[3] = $this->getRelativePath() . '/' . $match[
466 replacements($match) global() argument
490 css_datauri($match) global() argument
[all...]
/dokuwiki/inc/Action/
H A DRedirect.php36 } elseif ($PRE && preg_match('/^\s*==+([^=\n]+)/', $TEXT, $match)) {
39 $opts['fragment'] = sectionID($match[0], $check);

123