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

/home/jeroen/FOX/fox/fox-1.7.33/include/FXURL.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                       U R L   M a n i p u l a t i o n                         *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2000,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXURL_H
00022 #define FXURL_H
00023 
00024 namespace FX {
00025 
00026 namespace FXURL {
00027 
00029 extern FXAPI FXString encode(const FXString& string,const FXchar* set=NULL);
00030 
00032 extern FXAPI FXString decode(const FXString& string);
00033 
00035 extern FXAPI FXString scheme(const FXString& string);
00036 
00038 extern FXAPI FXString username(const FXString& string);
00039 
00041 extern FXAPI FXString password(const FXString& string);
00042 
00044 extern FXAPI FXString host(const FXString& string);
00045 
00047 extern FXAPI FXint port(const FXString& string,FXint def=0);
00048 
00050 extern FXAPI FXString path(const FXString& string);
00051 
00053 extern FXAPI FXString query(const FXString& string);
00054 
00056 extern FXAPI FXString fragment(const FXString& string);
00057 
00058 
00060 extern FXAPI FXString fileToURL(const FXString& string);
00061 
00063 extern FXAPI FXString fileFromURL(const FXString& string);
00064 
00065 }
00066 
00067 }
00068 
00069 #endif

Copyright © 1997-2011 Jeroen van der Zijp