Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/plugin/sympaauth/
H A Dadmin.php162 $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/mdpage/vendor/cebe/markdown/block/
H A DListTrait.php43 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 DHeadlineTrait.php18 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 DHtmlTrait.php50 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 DTableTrait.php18 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 DCodeTrait.php27 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/swiftmail/Swift/Message/
H A DHeaders.php440 $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/findologicxmlexport/vendor/sebastian/diff/src/
H A DParser.php25 $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 …]
H A DChunk.php38 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;
/plugin/struct/meta/
H A DInlineConfigParser.php34 $lines = array(); // Config lines to pass to full parser
62 $lines[] = $p . ' ' . trim($parameters[$i + 1]);
68 $lines[] = 'filterand: ' . trim($parameters[$i + 1]);
74 $lines[] = 'filteror: ' . trim($parameters[$i + 1]);
88 $lines[] = 'schema: ' . trim($components[1]);
89 $lines[] = 'field: ' . trim($components[2]);
90 $lines[] = 'filter: %pageid% = ' . trim($components[0]);
93 $lines[] = 'schema: ' . trim($components[0]);
94 $lines[] = 'field: ' . trim($components[1]);
96 $lines[] = 'filter: %pageid% = $ID$';
[all …]
/plugin/commonmark/vendor/league/commonmark/src/Input/
H A DMarkdownInput.php19 private $lines; variable in League\\CommonMark\\Input\\MarkdownInput
48 foreach ($this->lines as $lineNumber => $line) {
62 if ($this->lines !== null) {
66 $lines = \preg_split('/\r\n|\n|\r/', $this->content);
67 if ($lines === false) {
71 $this->lines = $lines;
76 if (\end($this->lines) === '') {
77 \array_pop($this->lines);
80 $this->lineCount = \count($this->lines);
/plugin/mdpage/vendor/cebe/markdown/
H A DGithubMarkdown.php61 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 DParser.php134 * @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 DMarkdown.php82 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/findologicxmlexport/vendor/phpdocumentor/reflection-docblock/src/DocBlock/
H A DDescriptionFactory.php161 $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 Djquery.syntax.layout.editor.js6 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 DMessage.php76 $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 continuiation
88 $body = join($this->CRLF, $lines);
/plugin/loglog/helper/
H A Dlogging.php53 $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/struct/_test/
H A DAccessTableDataReplacement.test.php78 $lines = array(
84 $configParser = new meta\ConfigParser($lines);
99 $lines = array(
105 $configParser = new meta\ConfigParser($lines);
153 $lines = array(
158 $lines = array_merge($lines, $inputFilterLines);
160 $configParser = new meta\ConfigParser($lines);
/plugin/flattr/
H A Dsyntax.php49 $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/onlinenumber/
H A Dsyntax.php89 $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/quiz/
H A Dclass_quiz.php356 $lines = explode("\n", $select);
357 $nr = count($lines);
368 if (substr($lines[$n], 0, 5) == "=====") {
369 $temp = str_replace("=====",'',$lines[$n]);
373 if ((trim($lines[$k]) == '') || (substr($lines[$k], 0, 5) != "=====")) {
374 $tmp_array['text'] .= $lines[$k]."\n";
385 if ((trim($lines[$n]) == '') || (substr($lines[$n], 0, 4) != " * ")) {
406 if (trim($lines[$k]) == '') continue;
407 if (substr($lines[$k], 0, 6) == " - ") {
417 $temp = str_replace(" * [",'',$lines[$k]);
[all …]
/plugin/confmanager/configTypes/
H A DConfigManagerTwoLine.php93 $lines = array();
95 $lines = array_combine($keys, $values);
98 $lines = array_merge($lines, array_combine($newKey, $newValue));
101 uksort($lines, array($this->helper, '_sortConf'));
104 foreach ($lines as $key => $value) {
/plugin/findologicxmlexport/vendor/hoa/compiler/Llk/
H A DLlk.php265 $lines = explode("\n", $pp);
270 for ($i = 0, $m = count($lines); $i < $m; ++$i) {
271 $line = rtrim($lines[$i]);
352 isset($lines[$i][0]) &&
353 (' ' === $lines[$i][0] ||
354 "\t" === $lines[$i][0] ||
355 '//' === substr($lines[$i], 0, 2))) {
356 if ('//' === substr($lines[$i], 0, 2)) {
362 $rule .= ' ' . trim($lines[$i++]);
365 if (isset($lines[$i][0])) {
/plugin/fblogin/
H A Dadmin.php180 $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) {

12345678910>>...19