Kaydet (Commit) 77d86709 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Document how rtl::Uri::convertRelToAbs normalizes an absolute URL's path

Change-Id: Ibf4f2d46bfbb977f0ba27110d86d7b7f1173631c
üst f9f9aa98
...@@ -331,7 +331,8 @@ void Test::test_Uri() { ...@@ -331,7 +331,8 @@ void Test::test_Uri() {
{ "http://a/b/../", "../c", "http://a/c" }, { "http://a/b/../", "../c", "http://a/c" },
{ "http://a/b/..", "../c", "http://a/c" }, { "http://a/b/..", "../c", "http://a/c" },
{ "http://a/./b/", ".././.././../c", "http://a/c" }, { "http://a/./b/", ".././.././../c", "http://a/c" },
{ "http://a", "b", "http://a/b" } }; { "http://a", "b", "http://a/b" },
{ "", "http://a/b/../c", "http://a/c" } };
for (std::size_t i = 0; i < sizeof aRelToAbsTest / sizeof (RelToAbsTest); ++i) for (std::size_t i = 0; i < sizeof aRelToAbsTest / sizeof (RelToAbsTest); ++i)
{ {
rtl::OUString aAbs; rtl::OUString aAbs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment