kurl.cpp File Reference
#include "kurl.h"
#include <kdebug.h>
#include <kglobal.h>
#include <kshell.h>
#include <kstringhandler.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <QtCore/QDir>
#include <QtCore/QMutableStringListIterator>
#include <QtCore/QRegExp>
#include <QtCore/QMimeData>
#include <QtCore/QTextCodec>
Go to the source code of this file.
Defines |
#define | IS_DRIVE_OR_DOUBLESLASH(isletter, char1, char2, colon, slash) ((isletter && char2 == colon) || (char1 == slash && char2 == slash)) |
#define | IS_DRIVE_OR_DOUBLESLASH_0 ( IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(str[0]), str[0], str[1], ':', '/') ) |
#define | IS_LETTER(c) ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) |
#define | IS_SLASH_AND_DRIVE_OR_DOUBLESLASH_0 ( str[0] == '/' && IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(str[1]), str[1], str[2], ':', '/') ) |
Functions |
static QString | _relativePath (const QString &base_dir, const QString &path, bool &isParent) |
static QString | cleanpath (const QString &_path, bool cleanDirSeparator, bool decodeDots) |
static bool | hasSubUrl (const QUrl &url) |
static bool | isLocalFile (const QUrl &url) |
uint | qHash (const KUrl &kurl) |
static QString | removeSlashOrFilePrefix (const QString &str) |
static QString | toPrettyPercentEncoding (const QString &input, bool forFragment) |
static QString | trailingSlash (KUrl::AdjustPathOption trailing, const QString &path) |
static QByteArray | uriListData (const KUrl::List &urls) |
bool | urlcmp (const QString &_url1, const QString &_url2, const KUrl::EqualsOptions &_options) |
bool | urlcmp (const QString &_url1, const QString &_url2) |
Variables |
static const char * | s_kdeUriListMime = "application/x-kde4-urilist" |
Define Documentation
#define IS_DRIVE_OR_DOUBLESLASH |
( |
isletter, |
|
|
char1, |
|
|
char2, |
|
|
colon, |
|
|
slash |
|
) |
((isletter && char2 == colon) || (char1 == slash && char2 == slash)) |
#define IS_DRIVE_OR_DOUBLESLASH_0 ( IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(str[0]), str[0], str[1], ':', '/') ) |
#define IS_LETTER |
( |
c |
|
) |
((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) |
#define IS_SLASH_AND_DRIVE_OR_DOUBLESLASH_0 ( str[0] == '/' && IS_DRIVE_OR_DOUBLESLASH(IS_LETTER(str[1]), str[1], str[2], ':', '/') ) |
Function Documentation
KDE4 TODO: maybe we should use QUrl::resolved().
Definition at line 47 of file kurl.cpp.
static bool hasSubUrl |
( |
const QUrl & |
url |
) |
[inline, static] |
static bool isLocalFile |
( |
const QUrl & |
url |
) |
[inline, static] |
uint qHash |
( |
const KUrl & |
kurl |
) |
|
static QString removeSlashOrFilePrefix |
( |
const QString & |
str |
) |
[static] |
static QString toPrettyPercentEncoding |
( |
const QString & |
input, |
|
|
bool |
forFragment | |
|
) |
| | [static] |
static QByteArray uriListData |
( |
const KUrl::List & |
urls |
) |
[static] |
bool urlcmp |
( |
const QString & |
_url1, |
|
|
const QString & |
_url2, |
|
|
const KUrl::EqualsOptions & |
_options | |
|
) |
| | [related] |
Variable Documentation