/plugin/owncloud/ |
D | syntax.php | 55 function handle($match, $state, $pos, &$handler){ argument 57 $rawdata = $match; 58 if(preg_match('#\[(.*)\]#',$match,$inside)){ 59 $match = $inside[1]; 62 $match= Doku_Handler_Parse_Media($match); 63 $match['imagebox'] = $imagebox; 64 $match['pos'] = $pos; 65 $match['raw'] = $rawdata; 66 return array($match, $state, $pos); 70 list($match, $state, $pos) = $data; [all …]
|
/plugin/instructions/ |
D | syntax.php | 31 function handle($match, $state, $pos, Doku_Handler $handler){ argument 62 $match = str_replace("{{INSTR<", '', $match); 63 $match = str_replace("}}", '', $match); 64 $match = str_replace("~~INSTR~~", '', $match); 65 $match = str_replace("~~END~~", '', $match); 68 if (substr_count($match,"~~") > 0) { 69 list($typ) = explode('~~',$match); 71 list($typ) = explode('>',$match); 76 $match = str_replace(array("|+"), '<br>', $match); 80 $match = str_replace(array(" "), ' ', $match); [all …]
|
/plugin/htmlokay/ |
D | syntax.php | 109 function rewrite_match_medium($match) argument 111 if (preg_match('/<FORM(.*?)>/i', $match, $matches)) 115 return $this->getError(HTML_OK_NOTSUPPORTED, $match, $action[1]); 118 return $this->getError(HTML_OK_NOTSUPPORTED, $match, $onsubmit[1]); 121 elseif (preg_match('/<script/i', $match)) 123 return $this->script_matches($match, 2); 125 elseif (preg_match('/<IFRAME/i', $match, $matches)) 127 return $this->getError(HTML_OK_EXCLUDEDWINDOW, $match, "IFRAME"); 129 elseif (preg_match('/<ILAYER/i', $match, $matches)) 131 return $this->getError(HTML_OK_EXCLUDEDWINDOW, $match, "ILAYER"); [all …]
|
/plugin/imagebox/ |
D | syntax.php | 20 function handle($match, $state, $pos, Doku_Handler $handler){ argument 23 $match=Doku_Handler_Parse_Media(substr($match,3)); 25 …$dispMagnify = ($match['width'] || $match['height']) && $this->getConf('display_magnify')=='If nec… 29 $result = explode('#',$match['src'],2); 38 if ($match['type'] == 'internalmedia') { 44 …$match['detail'] = ml($src, array('id' => $ID, 'cache' => $match['cache']), ($match['linking'] == … 45 if (isset($hash)) $match['detail'] .= '#' . $hash; 56 $match['detail'] = ml($src, array('cache' => 'cache'), false); 57 if (isset($hash)) $match['detail'] .= '#' . $hash; 67 $match['exist'] = ($image_size!==false || (isset($mime_type[0]) && $mime_type[0] == "image")) ; [all …]
|
/plugin/autlogin/ |
D | action.php | 182 foreach($line as $match) 183 if((SubStr($match,0,3)) == 'EP='){ 184 $match = SubStr($match,3,(strlen($match))); 185 $match = trim($match); 187 if($entry_page == $match) 261 $match =$users[1]." ".$users[2]; 263 $match = trim($match); 264 if($line == $match){ 346 if(preg_match("~(Offline Explorer)/([0-9]{1}.[0-9]{1})~",$user_agent,$match)) 348 $BName = "Offline_Explorer"; $Version=$match[2]; [all …]
|
/plugin/nspages/ |
D | optionParser.php | 15 static function checkRegEx(&$match, $pattern, &$arrayAffected) { argument 16 optionParser::preg_match_all_wrapper($pattern, $match, $found); 19 $match = optionParser::_removeFromMatch($regex[0], $match); 26 * @param string $match The string match by the plugin 31 static function checkOption(&$match, $pattern, &$varAffected, $valIfFound) { argument 32 if(optionParser::preg_match_wrapper($pattern, $match, $found)) { 34 $match = optionParser::_removeFromMatch($found[0], $match); 38 static function checkRecurse(&$match, &$varAffected){ argument 39 if(optionParser::preg_match_wrapper('r *=? *\"?([[:digit:]]*)\"?', $match, $found)) { 45 $match = optionParser::_removeFromMatch($found[0], $match); [all …]
|
D | syntax.php | 44 function handle($match, $state, $pos, Doku_Handler $handler) { argument 48 $match = PhpString::substr($match, 8, -1); //9 = strlen("<nspages") 49 $match .= ' '; 51 optionParser::checkOption($match, "subns", $return['subns'], true); 52 optionParser::checkOption($match, "nopages", $return['nopages'], true); 53 optionParser::checkOption($match, "simpleListe?", $return['simpleList'], true); 54 optionParser::checkOption($match, "tree", $return['tree'], true); 55 optionParser::checkOption($match, "numberedListe?", $return['numberedList'], true); 56 optionParser::checkOption($match, "simpleLineBreak", $return['lineBreak'], true); 57 optionParser::checkOption($match, "title", $return['title'], true); [all …]
|
/plugin/condition/ |
D | syntax.php | 54 function handle($match, $state, $pos, Doku_Handler $handler) { argument 65 $this->_parse($match, $blocks, $content); 71 function _parse(&$match, &$b, &$ctn) { argument 72 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces 73 $b = $this->_fetch_block($match, 0); 74 …if($match != '') $ctn = preg_replace('`\n+$`', '', preg_replace('`^\n+`', '', preg_replace('`^>`',… 79 function _fetch_block(&$match, $lvl=0) { argument 80 $match = preg_replace('`^\s+`', '', $match); // trim heading whitespaces 84 while(($match{0} != '>') && ($match != '') && (($lvl == 0) || ($match{0} != ')')) && $continue) { 86 if($this->_fetch_op($match, true)) { // ! heading equals block descending for first token [all …]
|
/plugin/calendoku/ |
D | action.php | 75 if (!$inparse && (preg_match('/^(DTSTAMP:)/', $line, $match) 76 || preg_match('/^(LAST-MODIFIED:)/', $line, $match))) { 77 $newtext .= $match[1].$now->format('Ymd').'T'.$now->format('His')."\n"; 82 …alnum:]-]*?):@@([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9-]{1,2}):([0-9-]{1,2})@@$/', $line, $match)) { 83 if (!strcmp($match[5], '-') || !strcmp($match[6], '-')) { 84 $newtext .= $match[1].':'.$match[2].$match[3].$match[4]."\n"; 86 if (count($match[5]) == 1) 87 $match[5] = '0'.$match[5]; 88 if (count($match[6]) == 1) 89 $match[6] = '0'.$match[6]; [all …]
|
/plugin/codemirror/dist/modes/ |
D | troff.min.js | 1 …match("fB")||b.match("fR")||b.match("fI")||b.match("u")||b.match("d")||b.match("%")||b.match("&"))…
|
D | rst.min.js | 1 …match(d)&&a.match(/\W+|$/,false))return"strong";if(a.match(e)&&a.match(/\W+|$/,false))return"em";i…
|
D | julia.min.js | 1 …match(/^#=/,false)){b.tokenize=D;return b.tokenize(a,b)}var c=b.leavingExpr;if(a.sol()){c=false}b.…
|
D | octave.min.js | 1 …match(/^.*%}/)){b.tokenize=m;return"comment"}a.skipToEnd();return"comment"}function m(n,o){if(n.ea…
|
D | rpm.min.js | 1 …match(a)){return"tag"}if(d.match(b)){return"tag"}}if(d.match(c)){return"string"}d.next();return nu…
|
/plugin/bb4dw/ |
D | templating.php | 180 $match = []; 187 while (preg_match($pattern, $string, $match)) { 190 $evalcond = !empty($entry[$match[1]]); 191 $then = count($match) > 3 ? 4 : 2; 192 $else = count($match) > 3 ? 5 : 3; 194 if ( $evalcond && count($match) > 3 ) { 195 if ( $match[2] === '==' ) { 196 $evalcond = $entry[$match[1]] === $match[3]; 198 elseif ( $match[2] === '!=' ) { 199 $evalcond = $entry[$match[1]] !== $match[3]; [all …]
|
/plugin/zoom/ |
D | syntax.php | 49 function handle($match, $state, $pos, &$handler){ argument 57 $match = substr($match,7,-2); //strip markup from start and end 61 if (substr($match,0,1) == ' ') { 62 if (substr($match,-1,1) == ' ') { 70 elseif (substr($match,-1,1) == ' ') { 73 elseif (substr($match,0,1) == '*') { 74 $match = substr($match,1); 75 if (substr($match,-1,1) == '*') { 76 $match = substr($match,0,-1); 84 elseif (substr($match,-1,1) == '*') { [all …]
|
/plugin/combo/ComboStrap/ |
D | PluginUtility.php | 234 …public static function getTagAttributes(string $match, array $knownTypes = [], bool $allowFirstBoo… argument 236 …return self::getQualifiedTagAttributes($match, false, "", $knownTypes, $allowFirstBooleanAttribute… 250 …public static function getQualifiedTagAttributes($match, $hasThirdValue, $keyThirdArgument, array … argument 253 $match = PluginUtility::getPreprocessEnterTag($match); 256 $spacePosition = strpos($match, " "); 261 $match = trim(substr($match, $spacePosition)); 262 if ($match == "") { 270 $spacePosition = strpos($match, " "); 272 $nextArgument = substr($match, 0, $spacePosition); 274 $nextArgument = $match; [all …]
|
/plugin/bbcodeextensions/syntax/ |
D | alink.php | 16 function handle($match, $state, $pos, Doku_Handler $handler) { argument 17 $match = substr($match, 8, -4); 18 if (preg_match('/^".+?"$/',$match)) $match = substr($match, 1, -1); 19 $match = preg_split('/\]/u',$match,2); 21 if ( !isset($match[0]) ) { 22 $url = $match[1]; 23 $title = $match[1]; 25 $url = $match[0]; 26 $title = $match[1]; 28 $match= [ $url, $url ]; [all …]
|
/plugin/hidden/ |
D | syntax.php | 42 function handle($match, $state, $pos, Doku_Handler $handler) { argument 47 $match = trim(utf8_substr($match, 14, -1)); //14 = strlen("<hiddenSwitch ") 48 if ( $match !== '' ){ 49 $return['text'] = $match; 68 $match = substr($match, 7, -1); //7 = strlen("<hidden") 71 preg_match("/initialState *= *\"([^\"]*)\" ?/i", $match, $initialState); 73 $match = str_replace($initialState[0], '', $match); 83 if ( preg_match('/-noprint/i', $match, $found) ){ 85 $match = str_replace($found[0], '', $match); 89 if ( preg_match('/-edit(able)?( *= *"([^"]*)")?/i', $match, $found) ){ [all …]
|
/plugin/codedoc/ |
D | specials.php | 29 function handle($match, $state, $pos, Doku_Handler $handler) { argument 30 $match = trim(substr($match,10,-2)); 31 $type = strtolower($match); 35 return array($match,$state); 41 list($match, $state) = $data; 42 if(preg_match('/\s*xref:(.*)/i',$match,$matches)) { 47 if(preg_match('/\s*clean:(.*)/i',$match,$matches)) { 52 elseif($match == 'timestamp') { 55 elseif($match == 'user') { 66 $match = preg_replace_callback("/\[\[(.*?)\]\]/", [all …]
|
/plugin/textinsert/ |
D | syntax.php | 59 function handle($match, $state, $pos, Doku_Handler $handler){ argument 63 $match = substr($match,2,-2); 64 $match = trim($match); 65 if(strpos($match, 'HTML')) $html=true; 66 if(strpos($match, 'LANG_') !== false) { 68 list($prefix,$trans) = explode('_',$match,2); 96 while(preg_match('#(\*\*|//|__|\'\').*?\1#m',$match )) { 97 $match = preg_replace_callback( 103 },$match ); 106 if(preg_match('/(.*?)~([\s\S]+)~$/',$match,$subtitution)) { [all …]
|
/plugin/jquery-syntax/jquery-syntax/ |
D | jquery.syntax.core.js | 5 …gExp.prototype.indexOf){RegExp.indexOf=function(match,index){return match[0].indexOf(match[index])… argument 15 …ce(pattern,function(match){var offset=arguments[arguments.length-2];if(match==="\r"||match==="\n")… argument 18 …match=matches[i];var offset=match.offset+linearOffsets[match.offset];var end=match.offset+match.le… 19 …rguments.callee(match.children);}})(matches);return matches;};Syntax.extractMatches=function(){var… argument 21 if(rule.debug){Syntax.log("extractMatches",rule,index,match[index],match);} 22 …match[index].length>0){if(rule.brush){matches.push(Syntax.Brush.buildTree(rule,match[index],RegExp… 24 return function(element,match,options){if(options.linkify===false) argument 27 ….length);};Syntax.Match.prototype.contains=function(match){return(match.offset>=this.offset)&&(mat… argument 34 return container;};Syntax.Match.prototype.canContain=function(match){if(match.expression.force){ret… argument 36 if(match.expression.only){return true;} [all …]
|
/plugin/caption/syntax/ |
D | reference.php | 43 public function handle($match, $state, $pos, Doku_Handler $handler){ argument 44 if (!(strpos($match,'{{ref>')===false)) { 45 return array($state, substr($match,6,-2)); 53 list($state,$match) = $data; 58 $renderer->doc .= '<a href="#'.$match.'">'; 59 if (isset($caption_labels[$match]) && $caption_labels[$match]) { 60 $renderer->doc .= $caption_labels[$match]; 62 $renderer->doc .= '##REF:'.$match.'##'; 72 list($state,$match) = $data; 76 $renderer->doc .= '\ref{'.$match.'}'; [all …]
|
/plugin/extlist/ |
D | syntax.php | 115 protected function interpret($match) argument 118 $depth = substr_count(str_replace("\t", ' ', ltrim($match,' ')),' '); 119 $match = trim($match); 124 if (preg_match('/^(-?\d+)([.:])/', $match, $matches)) { 131 $m += array('mk' => $match); 133 switch (substr($match, 0, 1)) { 139 if ($match == '+:') { 147 if ($match == '-:') $m += array('p' => 1); 151 if ($match == '*:') $m += array('p' => 1); 155 if ($match == ';') $m += array('class' => 'compact'); [all …]
|
/plugin/bbcode/ |
D | size.php | 29 function handle($match, $state, $pos, Doku_Handler $handler) { argument 32 $match = substr($match, 6, -1); 33 … if (preg_match('/".+?"/',$match)) $match = substr($match, 1, -1); // addition #1: unquote 34 …if (preg_match('/^[0-6]$/',$match)) $match = self::_relsz(intval($match) ); // addition #2: relati… 35 else if (preg_match('/^\d+$/',$match)) $match .= 'px'; 36 return array($state, $match); 39 return array($state, $match); 53 list($state, $match) = $data; 56 $renderer->doc .= '<span style="font-size:'.$renderer->_xmlEntities($match).'">'; 60 $renderer->doc .= $renderer->_xmlEntities($match);
|