Home
last modified time | relevance | path

Searched refs:lines (Results 1 - 19 of 19) sorted by relevance

/dokuwiki/inc/ChangeLog/
H A DChangeLog.php68 * Adjacent changelog lines are optimistically parsed and cached to speed up
94 //read lines from changelog
95 list($fp, $lines) = $this->readloglines($rev);
99 if (empty($lines)) return false;
101 // parse and cache changelog lines
102 foreach ($lines as $value) {
125 * For efficiency, the log lines are parsed and cached for later
128 * lines are recieved.
130 * @param int $first skip the first n changelog lines
140 $lines variable
164 $lines = file($file); global() variable
207 $lines = array_merge($tmp, $lines); global() variable
223 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num); global() variable
226 $lines = array_slice($lines, 0, max(count($lines) - $first, 0)); global() variable
228 $lines = array_slice($lines, max(count($lines) - $num, 0)); global() variable
418 $lines = file($file); global() variable
457 $lines = $this->readChunk($fp, $head, $tail); global() variable
491 $lines = explode("\\n", $chunk); global() variable
584 $lines = $this->readChunk($fp, $head, $tail); global() variable
637 $lines = array(); global() variable
660 $lines = array_slice($lines, 0, $i); global() variable
[all...]
/dokuwiki/inc/
H A DDifferenceEngine.php51 function __construct($lines) {
52 $this->orig = $lines;
64 function __construct($lines) {
65 $this->closing = $lines;
136 // Skip leading common lines.
142 // Skip trailing common lines.
151 // Ignore lines which do not exist in both files.
225 * This function assumes that the first lines of the specified portions
226 * of the two files do not match, and likewise that the last lines do not
227 * match. The caller must trim matching lines fro
595 $lines = array(); global() variable
613 $lines = array(); global() variable
1339 $lines = array(); global() variable
1343 $lines = array_merge($lines, global() variable
1351 $lines = array_merge($lines, $edit->merged()); global() variable
[all...]
H A Dconfutils.php136 $lines = file(DOKU_INC . 'lib/scripts/jquery/versions'); variable
137 foreach($lines as $line) {
204 * Builds a hash from an array of lines
213 * @param array $lines
218 function linesToHash($lines, $lower = false) {
221 if(isset($lines[0]) && substr($lines[0], 0, 3) == pack('CCC', 0xef, 0xbb, 0xbf))
222 $lines[0] = substr($lines[0], 3);
223 foreach($lines a
259 $lines = @file( $file ); global() variable
[all...]
H A DTaskRunner.php110 $lines = file($fn); variable
111 if (count($lines) <= $conf['recent']) {
122 for ($i = 0; $i < count($lines); $i++) {
123 $log = parseChangelogLine($lines[$i]);
129 // keep old lines for now (append .$i to prevent key collisions)
130 $old_lines[$log['date'] . ".$i"] = $lines[$i];
132 // definitely keep these lines
133 $out_lines[$log['date'] . ".$i"] = $lines[$i];
137 if (count($lines) == count($out_lines)) {
148 $extra = $conf['recent'] - count($out_lines); // do we need extra lines d
[all...]
H A Dchangelog.php125 // add changelog lines
185 // add changelog lines
224 $lines = @file($conf['media_changelog']) ?: []; variable
226 $lines = @file($conf['changelog']) ?: []; variable
228 if (!is_array($lines)) {
229 $lines = array(); variable
231 $lines_position = count($lines)-1;
243 $seen = array(); // caches seen lines, _handleRecent() skips them
245 // handle lines
248 $rec = _handleRecent(@$lines[
317 $lines = @file($conf['media_changelog']); global() variable
319 $lines = @file($conf['changelog']); global() variable
324 $lines = array_reverse($lines); global() variable
[all...]
H A Dio.php134 * @param bool $array return array of lines
141 if($array) $lines = array();
153 $lines[] = substr($str, 0, $pos+1);
161 if($str !== '') $lines[] = $str;
162 return $lines;
290 * The default, when $maxlines is 0 is to delete all matching lines then append a single line.
294 * Otherwise each line is matched and replaced individually, up to the first $maxlines lines
295 * or all lines if $maxlines is -1. If $regex is true then captures can be used in $newline.
297 * Be sure to include the trailing newline in $oldline when replacing entire lines.
326 $lines variable
329 $lines = bzfile($file, true); global() variable
331 $lines = file($file); global() variable
349 $lines = preg_grep($pattern, $lines, PREG_GREP_INVERT); global() variable
355 $lines = preg_replace($pattern, $replace, $lines); global() variable
[all...]
H A DLogger.php154 * Write the given lines to today's facility log
156 * @param string[] $lines the raw lines to append to the log
159 protected function writeLogLines($lines)
162 return io_saveFile($logfile, join("\n", $lines) . "\n", true);
/dokuwiki/lib/plugins/logviewer/
H A Dadmin.php96 $lines = file($logfile); variable
97 $cnt = count($lines);
99 $line = $lines[$i];
102 // lines indented by two spaces are details, aggregate them
106 $line = $lines[$i++];
111 // other lines are actual log lines in three parts
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DMBOXCreator.php26 * @param int $line_max wrap lines after these number of characters
32 $lines = preg_split("/(?:\r\n|\r|\n)/", $input); variable
36 foreach ($lines as $line) {
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php295 $lines = explode($break, $str); variable
296 foreach ($lines as &$line) {
323 return implode($break, $lines);
/dokuwiki/inc/Cache/
H A DCache.php206 $lines = explode("\n", io_readFile($file)); variable
208 foreach ($lines as $line) {
/dokuwiki/inc/Subscriptions/
H A DSubscriberManager.php187 $lines = file($file); variable
188 foreach ($lines as $line) {
/dokuwiki/vendor/geshi/geshi/src/
H A Dgeshi.php75 /** Use a pre to wrap lines when line numbers are enabled or to wrap the whole code. */
384 * Styles of lines that should be highlighted extra
390 * Styles of extra-highlighted lines
440 * Line number styles for fancy lines
944 * For fancy line numbers, the second parameter is used to signal which lines
949 * @param int $nth_row Defines which lines are fancy
963 * span over multiple lines or not. Defaults to true to reduce overhead.
1811 * Specifies which lines to highlight extra
1815 * @param mixed $lines An array of line numbers to highlight, or just a line
1824 public function highlight_lines_extra($lines,
1832 $lines = intval($lines); global() variable
3124 $lines = explode("\\n", $result); global() variable
[all...]
/dokuwiki/inc/Search/
H A DIndexer.php719 // load all lines and pages so the used lines can be taken and matched with the pages
720 $lines = $this->getIndex($metaname.'_i', ''); variable
725 $pages = array_keys($this->parseTuples($page_idx, $lines[$value_id]));
846 $lines = $this->getIndex($metaname.'_i', ''); variable
847 foreach ($lines as $line) {
973 * @return array list of lines without CR or LF
989 * @param array $lines list of lines without LF
994 protected function saveIndex($idx, $suffix, &$lines) {
[all...]
/dokuwiki/lib/plugins/acl/
H A Dadmin.php133 // prepare lines
134 $lines = array(); variable
138 $lines[] = $line;
154 $lines[] = "$where\t$who\t$perm\n";
158 io_saveFile($config_cascade['acl']['default'], join('', $lines));
728 // first make sure we won't end up with 2 lines matching this user and scope. See issue #1115
/dokuwiki/lib/exe/
H A Dcss.php219 $lines = explode("\n", $css); variable
221 if(preg_match('/\/(\* XXXXXXXXX )(.*?)( XXXXXXXXX \*)\//', $lines[$i], $m)){
/dokuwiki/lib/plugins/authplain/
H A Dauth.php408 $lines = file($file); variable
409 foreach ($lines as $line) {
/dokuwiki/vendor/marcusschwarz/lesserphp/
H A Dlessc.inc.php244 if (count($this->scope->lines) > 0) {
248 $orphan->lines = $this->scope->lines;
250 $this->scope->lines = array();
291 $out->lines = $this->deduplicate($out->lines);
295 * Deduplicate lines in a block. Comments are not deduplicated. If a
299 protected function deduplicate($lines) {
303 foreach($lines as $line) {
680 // compile a prop and update $lines o
[all...]
/dokuwiki/inc/HTTP/
H A DHTTPClient.php762 $lines = explode("\n",$string); variable
763 array_shift($lines); //skip first line (status)
764 foreach($lines as $line){

Completed in 42 milliseconds