Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXURL.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * U R L M a n i p u l a t i o n *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2000,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXURL.h,v 1.13 2006/01/22 17:58:12 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXURL_H
25 #define FXURL_H
26 
27 namespace FX {
28 
29 namespace FXURL {
30 
31 /// Return host name
32 extern FXAPI FXString hostname();
33 
34 /// Return URL of filename
35 extern FXAPI FXString fileToURL(const FXString& file);
36 
37 /// Return filename from URL, empty if url is not a local file
38 extern FXAPI FXString fileFromURL(const FXString& url);
39 
40 /// Decode url string
41 extern FXAPI FXString decode(const FXString& url);
42 
43 /// Encode url string
44 extern FXAPI FXString encode(const FXString& url);
45 
46 }
47 
48 }
49 
50 #endif
FXString hostname()
Return host name.
FXString fileFromURL(const FXString &url)
Return filename from URL, empty if url is not a local file.
#define FXAPI
Definition: fxdefs.h:122
FXString encode(const FXString &url)
Encode url string.
FXString decode(const FXString &url)
Decode url string.
FXString fileToURL(const FXString &file)
Return URL of filename.
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33

Copyright © 1997-2005 Jeroen van der Zijp