/web-bugs/src/Horde/Text/Diff/ThreeWay/ |
H A D | BlockBuilder.php | 18 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 D | Diff.php | 40 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 D | Inline.php | 98 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 D | Unified.php | 38 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 D | Context.php | 45 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 D | Copy.php | 13 public function __construct($lines = false) argument 15 $this->orig = $lines ? $lines : array();
|
/web-bugs/src/Horde/Text/Diff/Renderer/Unified/ |
H A D | Colored.php | 54 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 D | Diff.php | 162 $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 D | Add.php | 17 public function __construct($lines) argument 19 $this->final = $lines;
|
H A D | Delete.php | 17 public function __construct($lines) argument 19 $this->orig = $lines;
|
/web-bugs/src/Horde/Text/Diff/ |
H A D | Renderer.php | 210 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 D | ThreeWay.php | 52 $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 D | Shell.php | 145 $lines = array(); 148 $lines[] = array_shift($text_lines); 152 $lines = array(array_shift($text_lines)); 156 return $lines;
|
H A D | Native.php | 318 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]) {
|