Searched defs:line1 (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>
777 * @param line1 line of the original file
779 * @return the tagged lines (field[0] ~= line1, field[1] ~= line2).
783 public static String[] diffline(StringBuilder line1, StringBuilder line2) { argument
786 int m = line1.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))) {
800 sb.append(Util.htmlize(line1.substring(0, s)));
802 sb.append(Util.htmlize(line1.substring(s, m + 1)));
804 sb.append(Util.htmlize(line1
[all...]

Completed in 10 milliseconds