MCPcopy Index your code
hub / github.com/ccxt/ccxt / replaceAll

Method replaceAll

java/lib/src/main/java/io/github/ccxt/Helpers.java:927–939  ·  view source on GitHub ↗
(Object baseString, Object search, Object replacement)

Source from the content-addressed store, hash-verified

925 }
926
927 public static String replaceAll(Object baseString, Object search, Object replacement) {
928 if (baseString == null) {
929 return null;
930 }
931 String s = String.valueOf(baseString);
932 String find = (search == null) ? "" : String.valueOf(search);
933 if (find.isEmpty()) {
934 // Avoid weird behavior of replacing "" (would insert between every char)
935 return s;
936 }
937 String repl = (replacement == null) ? "" : String.valueOf(replacement);
938 return s.replace(find, repl); // literal (non-regex) replacement
939 }
940
941 public static Object getArg(Object[] v, int index, Object def) {
942 if (v == null || v.length <= index) {

Callers 12

signMethod · 0.95
examples2md.jsFile · 0.80
signMethod · 0.80
signMethod · 0.80
Base64ToBase64UrlMethod · 0.80
EcdsaMethod · 0.80
decodePemBodyMethod · 0.80
getLLMTextFunction · 0.80
GETFunction · 0.80

Calls 2

isEmptyMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected