Lines Matching defs:line
155 $line = $to_lines[$yi];
156 if (($this->ychanged[$yi] = empty($xhash[$line])))
158 $yhash[$line] = 1;
159 $this->yv[] = $line;
163 $line = $from_lines[$xi];
164 if (($this->xchanged[$xi] = empty($yhash[$line])))
166 $this->xv[] = $line;
269 $line = $flip ? $this->yv[$x] : $this->xv[$x];
270 if (empty($ymatches[$line]))
272 $matches = $ymatches[$line];
334 * storing a 1 in the element for each line that is an insertion
340 * All line numbers are origin-0 and discarded lines are not counted.
395 * line at one end and has an excluded, identical line at the other.
396 * We are free to choose which identical line is included.
398 * but usually it is cleaner to consider the following identical line
456 * previous unchanged line matches the last changed one.
479 * first changed line matches the following unchanged one.
850 foreach ($lines as $line)
851 echo "$prefix ".$this->_escape($line)."\n";
981 // new-line should only come as first char of word.
1148 $l1 = $lang['line'].' '.$xbeg;
1149 $l2 = $lang['line'].' '.$ybeg;
1166 function addedLine($line,$escaped=false) {
1168 $line = $this->_escape($line);
1171 '<td '.HTMLDiff::css('diff-addedline').'>' . $line.'</td>';
1174 function deletedLine($line,$escaped=false) {
1176 $line = $this->_escape($line);
1179 '<td '.HTMLDiff::css('diff-deletedline').'>' . $line.'</td>';
1186 function contextLine($line) {
1188 '<td '.HTMLDiff::css('diff-context').'>'.$this->_escape($line).'</td>';
1196 foreach ($lines as $line) {
1197 print('<tr>' . $this->emptyLine() . $this->addedLine($line,$escaped) . "</tr>\n");
1202 foreach ($lines as $line) {
1203 print('<tr>' . $this->deletedLine($line) . $this->emptyLine() . "</tr>\n");
1208 foreach ($lines as $line) {
1209 print('<tr>' . $this->contextLine($line) . $this->contextLine($line) . "</tr>\n");
1218 while ($line = array_shift($del)) {
1220 print('<tr>' . $this->deletedLine($line,true) . $this->addedLine($aline,true) . "</tr>\n");
1266 $r = '<tr><td colspan="'.$this->colspan.'" '.HTMLDiff::css('diff-blockheader').'>@@ '.$lang['line']." -$xbeg +$ybeg @@";
1284 foreach ($lines as $line) {
1285 print('<tr><td '.HTMLDiff::css('diff-lineheader').'> </td><td '.HTMLDiff::css('diff-addedline').'>'. $this->_escape($line) . "</td></tr>\n");
1290 foreach ($lines as $line) {
1291 print('<tr><td '.HTMLDiff::css('diff-lineheader').'> </td><td '.HTMLDiff::css('diff-deletedline').'><del>' . $this->_escape($line) . "</del></td></tr>\n");
1296 foreach ($lines as $line) {
1297 print('<tr><td '.HTMLDiff::css('diff-lineheader').'> </td><td '.HTMLDiff::css('diff-context').'>'. $this->_escape($line) ."</td></tr>\n");
1305 foreach ($add as $line)
1306 print('<tr><td '.HTMLDiff::css('diff-lineheader').'> </td><td>'.$line."</td></tr>\n");