MCPcopy Create free account
hub / github.com/ReadyTalk/avian / replace

Method replace

classpath/java/util/ResourceBundle.java:21–28  ·  view source on GitHub ↗
(char a, char b, String s)

Source from the content-addressed store, hash-verified

19 protected ResourceBundle parent;
20
21 private static String replace(char a, char b, String s) {
22 char[] array = new char[s.length()];
23 for (int i = 0; i < array.length; ++i) {
24 char c = s.charAt(i);
25 array[i] = (c == a ? b : c);
26 }
27 return new String(array, 0, array.length, false);
28 }
29
30 private static ResourceBundle findProperties(String name, ClassLoader loader,
31 ResourceBundle parent)

Callers 1

findPropertiesMethod · 0.95

Calls 2

lengthMethod · 0.65
charAtMethod · 0.65

Tested by

no test coverage detected