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

Method replace

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

Source from the content-addressed store, hash-verified

915 }
916
917 public static String replace(Object baseString, Object search, Object replacement) {
918 if (baseString == null) {
919 return null;
920 }
921 String s = String.valueOf(baseString);
922 String find = (search == null) ? "" : String.valueOf(search);
923 String repl = (replacement == null) ? "" : String.valueOf(replacement);
924 return s.replaceFirst(java.util.regex.Pattern.quote(find), java.util.regex.Matcher.quoteReplacement(repl)); // literal (non-regex) replacement
925 }
926
927 public static String replaceAll(Object baseString, Object search, Object replacement) {
928 if (baseString == null) {

Callers 15

isLeveragedCurrencyMethod · 0.95
signMethod · 0.95
parseMarketMethod · 0.95
parseCurrencyMethod · 0.95
fetchHip3MarketsMethod · 0.95
parseMarketMethod · 0.95
isUnifiedEnabledMethod · 0.95
setMarginModeMethod · 0.95
formatVaultAddressMethod · 0.95
coinToMarketIdMethod · 0.95
fetchMarketsFromWebMethod · 0.95

Calls

no outgoing calls

Tested by 12

testExchangeMethod · 0.76
loadStaticDataMethod · 0.76
get_cli_arg_valueFunction · 0.64
convert_to_snake_caseFunction · 0.64
test_exchangeMethod · 0.64
load_static_dataMethod · 0.64
test_exchangeMethod · 0.64
load_static_dataMethod · 0.64
test_yyyymmddFunction · 0.64