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

Method urlEncode

java/lib/src/main/java/io/github/ccxt/base/Encode.java:415–423  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

413 }
414
415 private static String urlEncode(String s) {
416 try {
417 // Use standard form-urlencode then fix spaces to %20 (URLEncoder uses '+')
418 String enc = URLEncoder.encode(s, "UTF-8");
419 return enc.replace("+", "%20");
420 } catch (UnsupportedEncodingException e) {
421 throw new RuntimeException(e);
422 }
423 }
424}

Callers 3

urlencodeNestedMethod · 0.95
urlencodeMethod · 0.95

Calls 2

replaceMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected