[go: up one dir, main page]

Menu

[79af12]: / src / yurl.h  Maximize  Restore  History

Download this file

39 lines (30 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* IceWM - Definition of an URL decoder
* Copyright (C) 2001 The Authors of IceWM
*
* Release under terms of the GNU Library General Public License
*/
#ifndef __YURL_H
#define __YURL_H
/*******************************************************************************
* An URL decoder
******************************************************************************/
class YURL {
public:
YURL();
YURL(char const * url, bool expectInetScheme = true);
~YURL();
void assign(char const * url, bool expectInetScheme = true);
YURL& operator= (char const * url) { assign(url); return *this; }
char const * scheme() const { return fScheme; }
char const * user() const { return fUser; }
char const * password() const { return fPassword; }
char const * host() const { return fHost; }
char const * port() const { return fPort; }
char const * path() const { return fPath; }
static char * unescape(char * str);
static char * unescape(char const * str);
private:
char * fScheme, * fUser, * fPassword, * fHost, *fPort, * fPath;
};
#endif