Home
last modified time | relevance | path

Searched refs:UrlUtils (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/net/url/
DUrlUtilsTest.java23 assertEquals("", UrlUtils.canonicalizePath("", true)); in testCanonicalizePath()
24 assertEquals("", UrlUtils.canonicalizePath(".", true)); in testCanonicalizePath()
25 assertEquals("", UrlUtils.canonicalizePath("..", true)); in testCanonicalizePath()
26 assertEquals("...", UrlUtils.canonicalizePath("...", true)); in testCanonicalizePath()
27 assertEquals("", UrlUtils.canonicalizePath("./", true)); in testCanonicalizePath()
28 assertEquals("", UrlUtils.canonicalizePath("../", true)); in testCanonicalizePath()
29 assertEquals("a", UrlUtils.canonicalizePath("../a", true)); in testCanonicalizePath()
30 assertEquals("a", UrlUtils.canonicalizePath("a", true)); in testCanonicalizePath()
31 assertEquals("a/", UrlUtils.canonicalizePath("a/", true)); in testCanonicalizePath()
32 assertEquals("a/", UrlUtils.canonicalizePath("a/.", true)); in testCanonicalizePath()
[all …]
/libcore/luni/src/main/java/java/net/
DURLStreamHandler.java21 import libcore.net.url.UrlUtils;
104 fileStart = UrlUtils.findFirstOf(spec, "/?#", authorityStart, end); in parseURL()
106 int userInfoEnd = UrlUtils.findFirstOf(spec, "@", authorityStart, fileStart); in parseURL()
122 int ipv6End = UrlUtils.findFirstOf(spec, "]", hostStart, fileStart); in parseURL()
124 if (UrlUtils.findFirstOf(spec, ":", hostStart, ipv6End) == ipv6End) { in parseURL()
130 int hostEnd = UrlUtils.findFirstOf(spec, ":", colonSearchFrom, fileStart); in parseURL()
174 nextPos = UrlUtils.findFirstOf(spec, "#", pos, end); in parseURL()
179 nextPos = UrlUtils.findFirstOf(spec, "?#", pos, end); in parseURL()
192 path = UrlUtils.authoritySafePath(authority, path); in parseURL()
202 return UrlUtils.canonicalizePath(path, true); in relativePath()
[all …]
DURI.java26 import libcore.net.url.UrlUtils;
353 int fragmentStart = UrlUtils.findFirstOf(uri, "#", 0, uri.length()); in parseURI()
360 int colon = UrlUtils.findFirstOf(uri, ":", 0, fragmentStart); in parseURI()
361 if (colon < UrlUtils.findFirstOf(uri, "/?#", 0, fragmentStart)) { in parseURI()
389 fileStart = UrlUtils.findFirstOf(uri, "/?", authorityStart, fragmentStart); in parseURI()
401 int queryStart = UrlUtils.findFirstOf(uri, "?", fileStart, fragmentStart); in parseURI()
418 if (!UrlUtils.isValidSchemeChar(i, uri.charAt(i))) { in validateScheme()
1071 path = UrlUtils.canonicalizePath(path, discardRelativePrefix); in normalize()
1226 result.path = UrlUtils.authoritySafePath(result.authority, normalize(resolvedPath, true)); in resolve()
DURL.java30 import libcore.net.url.UrlUtils;
159 protocol = UrlUtils.getSchemePrefix(spec); in URL()
249 file = UrlUtils.authoritySafePath(host, file); in URL()
/libcore/luni/src/main/java/libcore/net/url/
DUrlUtils.java21 public final class UrlUtils { class
22 private UrlUtils() { in UrlUtils() method in UrlUtils
DJarHandler.java77 tmpFile = UrlUtils.canonicalizePath(tmpFile, true); in parseURL()