/plugin/mdpage/vendor/cebe/markdown/block/ |
H A D | HeadlineTrait.php | 18 protected function identifyHeadline($line, $lines, $current) argument 25 !empty($lines[$current + 1]) && 26 (($l = $lines[$current + 1][0]) === '=' || $l === '-') && 27 preg_match('/^(\-+|=+)\s*$/', $lines[$current + 1]) 34 protected function consumeHeadline($lines, $current) argument 36 if ($lines[$current][0] === '#') { 39 while (isset($lines[$current][$level]) && $lines[$current][$level] === '#' && $level < 6) { 44 'content' => $this->parseInline(trim($lines[$current], "# \t")), 52 'content' => $this->parseInline($lines[$current]), 53 'level' => $lines[$current + 1][0] === '=' ? 1 : 2,
|
H A D | ListTrait.php | 43 protected function consumeOl($lines, $current) argument 53 return $this->consumeList($lines, $current, $block, 'ol'); 59 protected function consumeUl($lines, $current) argument 68 return $this->consumeList($lines, $current, $block, 'ul'); 82 $line = $lines[$i]; 113 if (!isset($lines[$i + 1][0])) { 117 } elseif (preg_match($pattern, $lines[$i + 1])) { 122 …} elseif (strncmp($lines[$i + 1], $indent, $len) === 0 || !empty($lines[$i + 1]) && $lines[$i + 1]… 124 … $nextLine = $lines[$i + 1][0] === "\t" ? substr($lines[$i + 1], 1) : substr($lines[$i + 1], $len); 142 …if (!empty($lines[$i + 1]) && method_exists($this, 'identifyHr') && $this->identifyHr($lines[$i + … [all …]
|
H A D | HtmlTrait.php | 50 protected function identifyHtml($line, $lines, $current) argument 60 $gtPos = strpos($lines[$current], '>'); 61 $spacePos = strpos($lines[$current], ' '); 79 protected function consumeHtml($lines, $current) argument 82 if (strncmp($lines[$current], '<!--', 4) === 0) { // html comment 83 for ($i = $current, $count = count($lines); $i < $count; $i++) { 84 $line = $lines[$i]; 91 …$tag = rtrim(substr($lines[$current], 1, min(strpos($lines[$current], '>'), strpos($lines[$current… 96 for ($i = $current, $count = count($lines); $i < $count; $i++) { 97 $line = $lines[$i];
|
H A D | TableTrait.php | 18 protected function identifyTable($line, $lines, $current) argument 20 return strpos($line, '|') !== false && isset($lines[$current + 1]) 21 && preg_match('~^\\s*\\|?(\\s*:?-[\\-\\s]*:?\\s*\\|?)*\\s*$~', $lines[$current + 1]) 22 && strpos($lines[$current + 1], '|') !== false 23 && isset($lines[$current + 2]) && trim($lines[$current + 1]) !== ''; 29 protected function consumeTable($lines, $current) argument 38 for ($i = $current, $count = count($lines); $i < $count; $i++) { 39 $line = trim($lines[$i]); 65 if ($line === '' || substr($lines[$i], 0, 4) === ' ') {
|
H A D | CodeTrait.php | 27 protected function consumeCode($lines, $current) argument 32 for ($i = $current, $count = count($lines); $i < $count; $i++) { 33 $line = $lines[$i]; 40 } elseif (($line === '' || rtrim($line) === '') && isset($lines[$i + 1][0]) && 41 ($lines[$i + 1][0] === "\t" || strncmp($lines[$i + 1], ' ', 4) === 0)) {
|
/plugin/sympaauth/ |
H A D | admin.php | 162 $lines[$i] = fgets($local_handle, 1000); 165 $temp = $lines[--$i]; 167 $lines[$i] = $temp; 175 $lines[$i] = '<?'."\n"; 181 $lines[$i] = '<?'."\n"; 192 foreach ($lines as $line) { 241 foreach ($lines as $line) { 275 if(!preg_match('!\$lang\[\'\w{1,}\'\] *= *.*!', $lines[$i])) unset($lines[$i--]); 282 foreach ($lines as $line) { 310 if(preg_match('!sympa!i', $lines[$i])) unset($lines[$i--]); [all …]
|
/plugin/findologicxmlexport/vendor/sebastian/diff/src/ |
H A D | Chunk.php | 38 private $lines; variable in SebastianBergmann\\Diff\\Chunk 45 * @param array $lines 47 …public function __construct($start = 0, $startRange = 1, $end = 0, $endRange = 1, array $lines = a… argument 53 $this->lines = $lines; 93 return $this->lines; 97 * @param array $lines 99 public function setLines(array $lines) argument 101 $this->lines = $lines;
|
H A D | Parser.php | 25 $lines = \preg_split('(\r\n|\r|\n)', $string); 27 if (!empty($lines) && $lines[\count($lines) - 1] == '') { 28 \array_pop($lines); 31 $lineCount = \count($lines); 37 if (\preg_match('(^---\\s+(?P<file>\\S+))', $lines[$i], $fromMatch) && 38 \preg_match('(^\\+\\+\\+\\s+(?P<file>\\S+))', $lines[$i + 1], $toMatch)) { 50 if (\preg_match('/^(?:diff --git |index [\da-f\.]+|[+-]{3} [ab])/', $lines[$i])) { 54 $collected[] = $lines[$i]; 69 * @param array $lines 71 private function parseFileDiff(Diff $diff, array $lines) argument [all …]
|
/plugin/swiftmail/Swift/Message/ |
H A D | Headers.php | 440 $lines[$i] = "\"" . substr($lines[$i], 0, $s) . "\"" . $addr; 444 $lines[$i] = "\"" . $lines[$i] . "\""; 448 if ($this->encoding == "Q") $lines[$i] = rtrim($lines[$i], "="); 458 …if (substr($lines[$i], 0, 1) == '<' && substr($lines[$i], -1) == '>') $lines[$i] = " " . $lines[$i… 459 else $lines[$i] = " " . $spec . $lines[$i] . $end; 463 …if (substr($lines[$i], 0, 1) != '<' || substr($lines[$i], -1) != '>') $lines[$i] = $spec . $lines[… 468 $lines = null; 493 $used_len = strlen($lines[count($lines)-1]); 494 $lines= null; 523 if (count($lines) > 1) [all …]
|
/plugin/struct/meta/ |
H A D | InlineConfigParser.php | 33 $lines = []; // Config lines to pass to full parser 47 // Process parameters and add to config lines 62 $lines[] = $p . ' ' . trim($parameters[$i + 1]); 68 $lines[] = 'filterand: ' . trim($parameters[$i + 1]); 74 $lines[] = 'filteror: ' . trim($parameters[$i + 1]); 84 $lines[] = 'schema: ' . trim($components[1]); 85 $lines[] = 'field: ' . trim($components[2]); 86 $lines[] = 'filter: %pageid% = ' . trim($components[0]); 89 $lines[] [all...] |
/plugin/commonmark/vendor/league/commonmark/src/Input/ |
H A D | MarkdownInput.php | 25 private ?array $lines = null; 63 \assert($this->lines !== null); 66 foreach ($this->lines as $i => $line) { 82 if ($this->lines !== null) { 86 $lines = \preg_split('/\r\n|\n|\r/', $this->content); 87 if ($lines === false) { 91 $this->lines = $lines; 96 if (\end($this->lines) === '') { 97 \array_pop($this->lines); 19 private $lines; global() variable in League\\CommonMark\\Input\\MarkdownInput [all...] |
/plugin/mdpage/vendor/cebe/markdown/ |
H A D | GithubMarkdown.php | 61 protected function consumeParagraph($lines, $current) argument 65 for ($i = $current, $count = count($lines); $i < $count; $i++) { 66 $line = $lines[$i]; 70 $this->identifyQuote($line, $lines, $i) || 71 $this->identifyFencedCode($line, $lines, $i) || 72 $this->identifyUl($line, $lines, $i) || 73 $this->identifyOl($line, $lines, $i) || 74 $this->identifyHr($line, $lines, $i) 76 || $this->identifyHeadline($line, $lines, $i)) 79 } elseif ($this->identifyCode($line, $lines, $i)) {
|
H A D | Parser.php | 134 * @param array $lines 138 protected function detectLineType($lines, $current) argument 140 $line = $lines[$current]; 155 protected function parseBlocks($lines) argument 159 return [['text', implode("\n", $lines)]]; 167 $line = $lines[$i]; 170 list($block, $i) = $this->parseBlock($lines, $i); 189 protected function parseBlock($lines, $current) argument 216 protected function consumeParagraph($lines, $current) argument 221 if (ltrim($lines[$i]) !== '') { [all …]
|
H A D | Markdown.php | 82 protected function consumeParagraph($lines, $current) argument 86 for ($i = $current, $count = count($lines); $i < $count; $i++) { 87 $line = $lines[$i]; 91 $this->identifyUl($line, $lines, $i) || $this->identifyOl($line, $lines, $i))) { 95 if ($line === '' || ltrim($line) === '' || $this->identifyHeadline($line, $lines, $i)) {
|
/plugin/upgrade/ |
H A D | legacy.php | 33 function linesToHash($lines) 35 $lines = array_map('trim', $lines); 36 $lines = array_filter($lines); 37 $lines = array_map(function ($item) { 39 }, $lines); 40 return array_combine(array_column($lines, 0), array_column($lines, 1)); 31 linesToHash($lines) global() argument
|
/plugin/findologicxmlexport/vendor/phpdocumentor/reflection-docblock/src/DocBlock/ |
H A D | DescriptionFactory.php | 161 $lines = explode("\n", $contents); 165 if (count($lines) <= 1) { 171 for ($i = 1; $i < count($lines); $i++) { 173 if (strlen(trim($lines[$i])) === 0) { 179 … $startingSpaceCount = min($startingSpaceCount, strlen($lines[$i]) - strlen(ltrim($lines[$i]))); 184 for ($i = 1; $i < count($lines); $i++) { 185 $lines[$i] = substr($lines[$i], $startingSpaceCount); 189 return implode("\n", $lines);
|
/plugin/jquery-syntax/jquery-syntax/ |
H A D | jquery.syntax.layout.editor.js | 6 Syntax.Editor.prototype.getLines=function(){var children=this.container.childNodes,lines=[],offsets… 7 for(var j=0;j<childLines.length;j+=1){offsets.push(startChild-lines.length);lines.push(childLines[j… 9 if(text!=""){offsets.push(startChild-lines.length);lines.push(text);}else{startChild-=1;} 10 offsets.push(startChild);Syntax.log("getLines",offsets,lines,children);return{lines:lines,offsets:o… 11 …es();var i=0,j=0;while(i<this.current.lines.length&&j<updated.lines.length){if(this.current.lines[… 12 …t=j;i=this.current.lines.length,j=updated.lines.length;while(i>result.start&&j>result.start){if(th… 13 result.end=j;result.originalEnd=i;result.difference=updated.lines.length-this.current.lines.length;… 15 if(result.difference>0){while(result.end<(updated.lines.length-1)){if(updated.offsets[result.end-1]… 18 Syntax.Editor.prototype.textForLines=function(start,end){return this.current.lines.slice(start,end)…
|
/plugin/smtp/classes/ |
H A D | Message.php | 76 $lines = preg_split('/\r?\n/', $this->body); 77 $count = count($lines); 79 if(trim($lines[$i]) === '') break; // end of headers, we're done 80 if(substr($lines[$i],0, 4) == 'Bcc:') { 81 unset($lines[$i]); // we found the Bcc: header and remove it 82 while(substr($lines[++$i],0, 1) === ' ') { 83 unset($lines[$i]); // indented lines are header continuation 88 $body = join($this->CRLF, $lines);
|
/plugin/loglog/helper/ |
H A D | logging.php | 53 $lines = []; 59 $lines[] = $parsedLine; 62 return $lines; 77 $lines = array(); 120 $lines = array_merge($cparts, $lines); 126 return $lines; 150 * @param array $lines 154 public function countMatchingLines(array $lines, string $msgNeedle) argument 157 $lines,
|
/plugin/flattr/ |
H A D | syntax.php | 49 $lines = explode("\n", substr($match, 8, -9)); 50 if (trim($lines[0]) === '') 51 array_shift($lines); 52 if (trim($lines[-1]) === '') 53 array_pop($lines); 55 foreach ($lines as $line) {
|
/plugin/diagramsnet/lib/js/spin/ |
H A D | spin.min.js | 2 …lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{wi… method in h
|
/plugin/onlinenumber/ |
H A D | syntax.php | 89 $lines = @file(PLUGIN_ONLINE_USER_LIST); 90 if ($lines === FALSE) $lines = array(); 93 $line_count = $count = count($lines); 97 if (! preg_match(PLUGIN_ONLINE_LIST_REGEX, $lines[$i], $matches) || 101 unset($lines[$i]); // Invalid or outdated or invalid date 108 array_unshift($lines, strtr($host, "\n", '') . '|' . UTIME . "\n"); 117 fputs($fp, join('', $lines));
|
/plugin/confmanager/configTypes/ |
H A D | ConfigManagerTwoLine.php | 93 $lines = []; 95 $lines = array_combine($keys, $values); 98 $lines = array_merge($lines, array_combine($newKey, $newValue)); 101 uksort($lines, [$this->helper, '_sortConf']); 104 foreach ($lines as $key => $value) {
|
/plugin/fblogin/ |
H A D | admin.php | 180 $lines[$i] = fgets($fblogin_file, 1000); 181 if(!preg_match('!\$lang\[\'\w{1,}\'\] *= *.*!', $lines[$i])) unset($lines[$i--]); 188 foreach ($lines as $line) { 214 $lines[$i] = fgets($fblogin_file, 1000); 215 if(preg_match('!fblogin!i', $lines[$i])) unset($lines[$i--]); 227 foreach ($lines as $line) {
|
/plugin/shibbolethauth/ |
H A D | admin.php | 182 $lines[$i] = fgets($shibboleth_file, 1000); 183 if(!preg_match('!\$lang\[\'\w{1,}\'\] *= *.*!', $lines[$i])) unset($lines[$i--]); 190 foreach ($lines as $line) { 216 $lines[$i] = fgets($shibboleth_file, 1000); 217 if(preg_match('!shibboleth!i', $lines[$i])) unset($lines[$i--]); 229 foreach ($lines as $line) {
|