Lines Matching defs:end
239 private static boolean replace(ArrayList<String> lines, Position start, Position end,
242 fixPosition(lines, end);
243 if (start.line != end.line) {
247 for (int i = start.line + 1; i < end.line; i++) {
251 String endLine = lines.get(end.line);
252 String newEndLine = replaceWithSpaces(endLine, 0, end.charIndex - 1);
253 lines.set(end.line, newEndLine);
255 } else if (end.charIndex - start.charIndex >= text.length()) {
259 String spacedText = replaceWithSpaces(replacedText, endTextIndex, end.charIndex - 1);
264 String newLine = replaceWithSpaces(line, start.charIndex, end.charIndex - 1);
270 private static String replaceRange(String line, int start, int end, String newText) {
271 return line.substring(0, start) + newText + line.substring(end);
305 Position end = toEndPosition(it.getStop());
308 replace(lines, start, end, it.attrName.getText() + "=\"" + defaultVal + "\"");
309 } else if (replace(lines, start, end, tag)) {
388 private static String replaceWithSpaces(String line, int start, int end) {
390 for (int i = start; i <= end; i++) {