Searched defs:line2 (Results 1 - 1 of 1) sorted by relevance

/opengrok/src/org/opensolaris/opengrok/web/
H A DUtil.java772 * Tag changes in the given <var>line1</var> and <var>line2</var>
778 * @param line2 line of the changed/new file
779 * @return the tagged lines (field[0] ~= line1, field[1] ~= line2).
783 public static String[] diffline(StringBuilder line1, StringBuilder line2) { argument
787 int n = line2.length() - 1;
788 while (s <= m && s <= n && (line1.charAt(s) == line2.charAt(s))) {
792 while (s <= m && s <= n && (line1.charAt(m) == line2.charAt(n))) {
813 sb.append(Util.htmlize(line2.substring(0, s)));
815 sb.append(Util.htmlize(line2.substring(s, n + 1)));
817 sb.append(Util.htmlize(line2
[all...]

Completed in 13 milliseconds