Home
last modified time | relevance | path

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

/web-bugs/src/Horde/Text/Diff/ThreeWay/
H A DBlockBuilder.php18 public function input($lines) argument
20 if ($lines) {
21 $this->_append($this->orig, $lines);
25 public function out1($lines) argument
27 if ($lines) {
28 $this->_append($this->final1, $lines);
32 public function out2($lines) argument
34 if ($lines) {
35 $this->_append($this->final2, $lines);
60 protected function _append(&$array, $lines) argument
[all …]
/web-bugs/src/Utils/
H A DDiff.php40 public function _added($lines) argument
42 self::escapeHTML($lines);
44 …return '<span class="newdiff"> '.implode('</span>'."\n".'<span class="newdiff"> ', $lines).'</span…
47 public function _context($lines) argument
49 self::escapeHTML($lines);
51 return "\n" . parent::_context($lines);
54 public function _deleted($lines) argument
56 self::escapeHTML($lines);
58 …return '<span class="olddiff"> '.implode('</span>'."\n".'<span class="olddiff"> ', $lines).'</span…
71 protected static function escapeHTML(&$lines) argument
[all …]
/web-bugs/src/Horde/Text/Diff/Renderer/
H A DInline.php98 return implode("\n", $lines) . "\n";
100 return implode('', $lines);
104 protected function _added($lines) argument
106 array_walk($lines, array(&$this, '_encode'));
107 $lines[0] = $this->_ins_prefix . $lines[0];
108 $lines[count($lines) - 1] .= $this->_ins_suffix;
109 return $this->_lines($lines, ' ', false);
114 array_walk($lines, array(&$this, '_encode'));
115 $lines[0] = $this->_del_prefix . $lines[0];
116 $lines[count($lines) - 1] .= $this->_del_suffix;
[all …]
H A DUnified.php38 protected function _context($lines) argument
40 return $this->_lines($lines, ' ');
43 protected function _added($lines) argument
45 return $this->_lines($lines, '+');
48 protected function _deleted($lines) argument
50 return $this->_lines($lines, '-');
H A DContext.php45 protected function _context($lines) argument
47 $this->_second_block .= $this->_lines($lines, ' ');
48 return $this->_lines($lines, ' ');
51 protected function _added($lines) argument
53 $this->_second_block .= $this->_lines($lines, '+ ');
57 protected function _deleted($lines) argument
59 return $this->_lines($lines, '- ');
/web-bugs/src/Horde/Text/Diff/ThreeWay/Op/
H A DCopy.php13 public function __construct($lines = false) argument
15 $this->orig = $lines ? $lines : array();
/web-bugs/src/Horde/Text/Diff/Renderer/Unified/
H A DColored.php54 protected function _added($lines) argument
57 'lightgreen', parent::_added($lines)
61 protected function _deleted($lines) argument
64 'lightred', parent::_deleted($lines)
/web-bugs/src/Horde/Text/
H A DDiff.php162 $lines = array();
165 array_splice($lines, count($lines), 0, $edit->orig);
168 return $lines;
180 $lines = array();
183 array_splice($lines, count($lines), 0, $edit->final);
186 return $lines;
/web-bugs/src/Horde/Text/Diff/Op/
H A DAdd.php17 public function __construct($lines) argument
19 $this->final = $lines;
H A DDelete.php17 public function __construct($lines) argument
19 $this->orig = $lines;
/web-bugs/src/Horde/Text/Diff/
H A DRenderer.php210 protected function _lines($lines, $prefix = ' ') argument
212 return $prefix . implode("\n$prefix", $lines) . "\n";
215 protected function _context($lines) argument
217 return $this->_lines($lines, ' ');
220 protected function _added($lines) argument
222 return $this->_lines($lines, '> ');
225 protected function _deleted($lines) argument
227 return $this->_lines($lines, '< ');
H A DThreeWay.php52 $lines = array();
56 $lines = array_merge($lines,
64 $lines = array_merge($lines, $edit->merged());
68 return $lines;
/web-bugs/src/Horde/Text/Diff/Engine/
H A DShell.php145 $lines = array();
148 $lines[] = array_shift($text_lines);
152 $lines = array(array_shift($text_lines));
156 return $lines;
H A DNative.php318 protected function _shiftBoundaries($lines, &$changed, $other_changed) argument
323 assert(count($lines) == count($changed));
324 $len = count($lines);
370 while ($start > 0 && $lines[$start - 1] == $lines[$i - 1]) {
394 while ($i < $len && $lines[$start] == $lines[$i]) {

Completed in 30 milliseconds