MCPcopy Create free account
hub / github.com/PCGen/pcgen / replaceString

Method replaceString

code/src/java/pcgen/core/BioSet.java:213–226  ·  view source on GitHub ↗
(final String argInput, final String replacement, final int value)

Source from the content-addressed store, hash-verified

211 }
212
213 private static String replaceString(final String argInput, final String replacement, final int value)
214 {
215 String input = argInput;
216 final int x = input.indexOf(replacement);
217
218 if (x >= 0)
219 {
220 final String output = input.substring(0, x);
221 final String appendage = input.substring(x + replacement.length());
222 input = output + value + appendage;
223 }
224
225 return input;
226 }
227
228 /**
229 * Retrieves a collection of the tags defined for a race grouped by

Callers 1

generateHeightWeightMethod · 0.95

Calls 1

indexOfMethod · 0.65

Tested by

no test coverage detected