MCPcopy Create free account
hub / github.com/annmuor/jnode / replaceAll

Method replaceAll

jnode-rss-module/src/jnode/altrssposter/Cleaner.java:120–129  ·  view source on GitHub ↗
(StringBuilder builder, String from, String to)

Source from the content-addressed store, hash-verified

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}

Callers 15

cleanMethod · 0.95
XMPPClientMethod · 0.80
mainMethod · 0.80
SystemInfoMethod · 0.80
StatPosterMethod · 0.80
guessFilenameMethod · 0.80
quoteMethod · 0.80
writeMethod · 0.80
unpackMethod · 0.80
checkMethod · 0.80
createPointListMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected