(StringBuilder builder, String from, String to)
| 118 | } |
| 119 | |
| 120 | public static void replaceAll(StringBuilder builder, String from, String to) |
| 121 | { |
| 122 | int index = builder.indexOf(from); |
| 123 | while (index != -1) |
| 124 | { |
| 125 | builder.replace(index, index + from.length(), to); |
| 126 | index += to.length(); // Move to the end of the replacement |
| 127 | index = builder.indexOf(from, index); |
| 128 | } |
| 129 | } |
| 130 | } |
no outgoing calls
no test coverage detected