MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getURLProtocol

Method getURLProtocol

CodenameOne/src/com/codename1/io/Util.java:1566–1572  ·  view source on GitHub ↗
(String url)

Source from the content-addressed store, hash-verified

1564 ///
1565 /// protocol
1566 public static String getURLProtocol(String url) {
1567 int index = url.indexOf("://");
1568 if (index != -1) {
1569 return url.substring(0, index);
1570 }
1571 return null;
1572 }
1573
1574 /// Returns the URL's host portion
1575 ///

Callers 2

relativeToAbsoluteMethod · 0.95
invokeStatic16Method · 0.80

Calls 2

indexOfMethod · 0.65
substringMethod · 0.65

Tested by

no test coverage detected