[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KURL problem
From: Andras Mantia <amantia () kde ! org>
Date: 2005-09-27 11:16:40
Message-ID: 200509271416.41119.amantia () kde ! org
[Download RAW message or body]
On Tuesday 27 September 2005 14:01, Andras Mantia wrote:
> The attached kurltext.cpp addition proves it:
...proves that the result for both is the same. The fact that this
result has the "/" in the end is proven if you use an extra debug
output there or the following test:
KURL ftpurl1("ftp://ftp.kde.org/");
ftpurl1.adjustPath(-1);
KURL ftpurl2("ftp://ftp.kde.org///");
ftpurl2.adjustPath(-1);
check("adjustPath(-1): remove multiple slashes", ((ftpurl1.url() !=
ftpurl2.url())?"ko":"ok"), "ok");
check("adjustPath(-1): check not removing the last slash",
((QString("ftp://ftp.kde.org/") != ftpurl2.url())?"ko":"ok"), "ok");
Andras
--
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic