|
lftp
4.4.6
About: lftp is a command line ftp client (FTP, HTTP, ssl support, background transfer, reget, reput, ...)
Fossies Dox: lftp-4.4.6.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
#include <url.h>
Public Member Functions | |
| url (const char *u) | |
| url () | |
| ~url () | |
| void | SetPath (const char *p, const char *q=URL_PATH_UNSAFE) |
| char * | Combine () |
Static Public Member Functions | |
| static xstring & | encode (const char *s, int len, const char *unsafe) |
| static xstring & | encode (const xstring &s, const char *unsafe) |
| static xstring & | encode (const char *s, const char *unsafe) |
| static xstring & | decode (const char *) __attribute__((warn_unused_result)) |
| static bool | is_url (const char *p) |
| static int | path_index (const char *p) |
| static const char * | path_ptr (const char *p) |
| static bool | dir_needs_trailing_slash (const char *proto) |
| static bool | find_password_pos (const char *url, int *start, int *len) |
| static const char * | remove_password (const char *url) |
| static const char * | hide_password (const char *url) |
Public Attributes | |
| char * | proto |
| char * | user |
| char * | pass |
| char * | host |
| char * | port |
| char * | path |
| url::url | ( | const char * | u) |
| url::url | ( | ) |
Referenced by find_password_pos(), hide_password(), is_url(), and remove_password().
| url::~url | ( | ) |
| char* url::Combine | ( | ) |
|
static |
Definition at line 343 of file url.cc.
References xstring::get_tmp(), xstring::null, and xstring::url_decode().
Referenced by FileAccess::Path::Change().
|
static |
Definition at line 356 of file url.cc.
References alloca_strdup, proto, strcasecmp(), and strchr.
Referenced by CmdExec::builtin_cd(), CmdExec::builtin_open(), FileAccess::Path::Change(), FileAccess::GetFileURL(), and History::Set().
|
static |
Definition at line 349 of file url.cc.
References xstring::append_url_encoded(), xstring::get_tmp(), and xstring::null.
Referenced by FileAccess::Path::Change(), CMD(), ParsedURL::Combine(), Http::Do(), FileAccess::Path::ExpandTilde(), and HttpTracker::SendTrackerRequest().
Definition at line 70 of file url.h.
References encode(), and xstring::length().
Referenced by encode().
|
inlinestatic |
|
static |
Definition at line 368 of file url.cc.
References strchr, strstr(), and url().
Referenced by hide_password(), and remove_password().
|
static |
Definition at line 395 of file url.cc.
References find_password_pos(), xstring::format(), and url().
Referenced by Bookmark::FormatHidePasswords().
|
static |
Definition at line 410 of file url.cc.
References ParsedURL::proto, and url().
Referenced by CmdExec::builtin_cd(), CmdExec::builtin_open(), CMD(), mgetJob::Do(), and Http::Do().
|
static |
Definition at line 255 of file url.cc.
References is_ascii_alpha, and strchr.
Referenced by FileAccess::Path::Change(), Http::Do(), FileAccess::Path::ExpandTilde(), FileAccess::GetFileURL(), GlobURL::NewGlob(), ParsedURL::parse(), and path_ptr().
|
static |
Definition at line 286 of file url.cc.
References path_index().
Referenced by Ftp::Do(), and HttpTracker::SendTrackerRequest().
|
static |
Definition at line 402 of file url.cc.
References find_password_pos(), xstring::format(), and url().
Referenced by FileCopy::LogTransfer(), and squeeze_file_name().
| void url::SetPath | ( | const char * | p, |
| const char * | q = URL_PATH_UNSAFE |
||
| ) |
| char* url::proto |
Definition at line 54 of file url.h.
Referenced by dir_needs_trailing_slash().