Home
last modified time | relevance | path

Searched full:lines (Results 1 – 25 of 1368) sorted by relevance

12345678910>>...55

/plugin/highlight2wiki/
Dscript.js47 var lines = selectedTextString.split('\n'); // lines is an array of strings
48 for (var j = 0; j < lines.length; j++) {
49 instance.mark(lines[j], {
54 …yId("edtop").contentWindow.document.getElementsByTagName("textarea")[0].value += lines[j] + "\n\n";
62 var lines = textArea.split('\n\n'); // lines is an array of strings
64 // Loop through all lines
65 for (var j = 0; j < lines.length; j++) {
66 // highlight(lines[j]);
67 console.log(lines[j]);
69 instance2.mark(lines[j], {
[all …]
/plugin/betadoku/src/
Dserver.php241 $lines = [ variable
246 $lines[] = sprintf(
255 $lines[] = sprintf(
261 $lines[] = sprintf(
268 $lines[] = sprintf(
279 $lines[] = $config->string->nothing;
283 $lines[] = sprintf(
289 $lines[] = sprintf(
295 $lines[] = sprintf(
301 $lines[] = sprintf(
[all …]
/plugin/mdpage/vendor/cebe/markdown/block/
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])
32 * Consume lines for a headline
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]),
[all …]
DListTrait.php41 * Consume lines for an ordered list
43 protected function consumeOl($lines, $current) argument
53 return $this->consumeList($lines, $current, $block, 'ol');
57 * Consume lines for an unordered list
59 protected function consumeUl($lines, $current) argument
68 return $this->consumeList($lines, $current, $block, 'ul');
71 private function consumeList($lines, $current, $block, $type) argument
80 $marker = $type === 'ul' ? ltrim($lines[$current])[0] : '';
81 for ($i = $current, $count = count($lines); $i < $count; $i++) {
82 $line = $lines[$i];
[all …]
DHtmlTrait.php50 protected function identifyHtml($line, $lines, $current) argument
60 $gtPos = strpos($lines[$current], '>');
61 $spacePos = strpos($lines[$current], ' ');
77 * Consume lines for an HTML block
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++) {
[all …]
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]) !== '';
27 * Consume lines for a table
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) === ' ') {
/plugin/loglog/helper/
Dlogging.php45 * Return logfile lines limited to specified $min - $max range
53 $lines = [];
56 if (empty($line)) continue; // Filter empty lines
59 $lines[] = $parsedLine;
62 return $lines;
66 * Read log lines backwards. Start and end timestamps are used to evaluate
67 * only the chunks being read, NOT single lines. This method will return
68 * too many lines, the dates have to be checked by the caller again.
77 $lines = array();
119 // put all the lines from the chunk on the stack
[all …]
/plugin/findologicxmlexport/vendor/sebastian/diff/src/
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;
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 …]
/plugin/asciidocjs/node_modules/pug-filters/node_modules/wordwrap/test/
Dbreak.js11 var lines = s_.split('\n');
12 assert.equal(lines.length, 2);
13 assert.ok(lines[0].length < 80);
14 assert.ok(lines[1].length < 80);
23 var lines = s_.split('\n');
24 assert.equal(lines.length, 3);
25 assert.ok(lines[0].length === 20);
26 assert.ok(lines[1].length === 20);
27 assert.ok(lines[2].length === 15);
/plugin/asciidocjs/node_modules/pug-filters/node_modules/wordwrap/
Dindex.js37 return chunks.reduce(function (lines, rawChunk) { argument
38 if (rawChunk === '') return lines;
42 var i = lines.length - 1;
43 if (lines[i].length + chunk.length > stop) {
44 lines[i] = lines[i].replace(/\s+$/, '');
47 lines.push(
55 lines[i] += xs.shift();
57 lines.push(
64 lines[i] += chunk;
67 return lines;
/plugin/asciidocjs/node_modules/wordwrap/
Dindex.js37 return chunks.reduce(function (lines, rawChunk) { argument
38 if (rawChunk === '') return lines;
42 var i = lines.length - 1;
43 if (lines[i].length + chunk.length > stop) {
44 lines[i] = lines[i].replace(/\s+$/, '');
47 lines.push(
55 lines[i] += xs.shift();
57 lines.push(
64 lines[i] += chunk;
67 return lines;
/plugin/jquery-syntax/jquery-syntax/
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/asciidocjs/node_modules/wordwrap/test/
Dbreak.js11 var lines = s_.split('\n');
12 t.equal(lines.length, 2);
13 t.ok(lines[0].length < 80);
14 t.ok(lines[1].length < 80);
24 var lines = s_.split('\n');
25 t.equal(lines.length, 3);
26 t.ok(lines[0].length === 20);
27 t.ok(lines[1].length === 20);
28 t.ok(lines[2].length === 15);
/plugin/struct/meta/
H A DInlineConfigParser.php33 $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[] = 'schema: ' . trim($components[0]);
90 $lines[] = 'field: ' . trim($components[1]);
[all …]
/plugin/swiftmail/Swift/Message/
DHeaders.php406 …//Encode to QP, excluding the specification for now but keeping the lines short enough to be compl…
427 //Turn our header into an array of lines ready for wrapping around the encoding specification
428 $lines = explode($this->LE, $encoded_value[$key]);
430 for ($i = 0, $len = count($lines); $i < $len; $i++)
433 if (empty($spec) && $is_email && (false !== $p = strpos($lines[$i], ",")))
435 $s = strpos($lines[$i], " <");
436 $e = strpos($lines[$i], ">");
439 $addr = substr($lines[$i], $s);
440 $lines[$i] = "\"" . substr($lines[$i], 0, $s) . "\"" . $addr;
444 $lines[$i] = "\"" . $lines[$i] . "\"";
[all …]
/plugin/sympaauth/
Dadmin.php154 …// Open local.php, copy its content to $lines, look for $conf['sympaSoapService'] line(s) delete i…
162 $lines[$i] = fgets($local_handle, 1000);
163 …\'plugin\'\]\[\'sympaauth\'\]\[\[\'sympaSoapService\'\] *= *.*!', $lines[$i])) unset($lines[$i--]);
164 } while (!(preg_match('!local.protected.php!', $lines[$i++]) || feof($local_handle)) );
165 $temp = $lines[--$i];
166 $lines[$i++] = '$conf[\'plugin\'][\'sympaauth\'][\'sympaSoapService\'] = \'\';' . "\n";
167 $lines[$i] = $temp;
170 $lines[$i] = fgets($local_handle, 1000);
171 …if(preg_match('!\$conf\[\'plugin\'\]\[\'sympaauth\'\]\[\[\'sympaSoapService\'\] *= *.*!', $lines[$…
175 $lines[$i] = '<?'."\n";
[all …]
/plugin/mdpage/vendor/cebe/markdown/
DGithubMarkdown.php27 * This feature is useful for comments where newlines are often meant to be real new lines.
57 * Consume lines for a paragraph
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)
[all …]
DParser.php132 * Given a set of lines and an index of a current line it uses the registed block types to
134 * @param array $lines
138 protected function detectLineType($lines, $current) argument
140 $line = $lines[$current];
143 if ($this->{'identify' . $blockType}($line, $lines, $current)) {
155 protected function parseBlocks($lines) argument
159 return [['text', implode("\n", $lines)]];
165 // convert lines to blocks
166 for ($i = 0, $count = count($lines); $i < $count; $i++) {
167 $line = $lines[$i];
[all …]
/plugin/mdimport/
H A DMarkdownToDokuWiki.php39 /** @var array<int, string> Buffer for paragraph lines before they are flushed */
46 * followed by any lines, and ending with '---' or '...'.
54 $lines = explode("\n", $markdown);
55 if (count($lines) === 0) {
59 // Trim leading empty lines to find the first non-empty line
61 while ($firstNonEmpty < count($lines) && trim($lines[$firstNonEmpty]) === '') {
66 if ($firstNonEmpty < count($lines) && trim($lines[$firstNonEmpty]) === '---') {
69 for ($i = $firstNonEmpty + 1; $i < count($lines); $i++) {
70 if (trim($lines[$i]) === '---' || trim($lines[$i]) === '...') {
75 // If we found a closing delimiter, remove all lines from start to end (inclusive)
[all …]
/plugin/findologicxmlexport/vendor/phpdocumentor/reflection-docblock/src/DocBlock/
DDescriptionFactory.php30 …* If a body consists of multiple lines then this factory will also remove any superfluous whitespa…
144 … description has more than one line then it can happen that the second and subsequent lines have an
150 * subsequent lines.
153 * lines and this may cause rendering issues when, for example, using a Markdown converter.
161 $lines = explode("\n", $contents);
163 // if there is only one line then we don't have lines with superfluous whitespace and
165 if (count($lines) <= 1) {
171 for ($i = 1; $i < count($lines); $i++) {
172 // lines with a no length do not count as they are not indented at all
173 if (strlen(trim($lines[$i])) === 0) {
[all …]
/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 continuation
88 $body = join($this->CRLF, $lines);
/plugin/upgrade/
H A Dlegacy.php33 function linesToHash($lines) argument
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));
/plugin/asciidocjs/node_modules/align-text/
Dindex.js15 var lines, type = typeOf(val);
18 lines = val;
20 lines = val.split(/(?:\r\n|\n)/);
26 var len = lines.length;
27 var max = longest(lines);
31 var line = String(lines[i++]);
35 diff = fn(line.length, max.length, line, lines, i);
/plugin/diagramsnet/lib/js/spin/
Dspin.min.js2lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{wi… method in h

12345678910>>...55