![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
00001 /******************************************************************************** 00002 * * 00003 * U R L M a n i p u l a t i o n * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2000,2009 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 * $Id: FXURL.h,v 1.24 2009/01/06 13:07:29 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXURL_H 00024 #define FXURL_H 00025 00026 namespace FX { 00027 00028 namespace FXURL { 00029 00030 /// Encode control characters and characters from set using %-encoding 00031 extern FXAPI FXString encode(const FXString& string,const FXchar* set=NULL); 00032 00033 /// Decode string containing %-encoded characters 00034 extern FXAPI FXString decode(const FXString& string); 00035 00036 /// Parse scheme from string containing url 00037 extern FXAPI FXString scheme(const FXString& string); 00038 00039 /// Parse username from string containing url 00040 extern FXAPI FXString username(const FXString& string); 00041 00042 /// Parse password from string containing url 00043 extern FXAPI FXString password(const FXString& string); 00044 00045 /// Parse hostname from string containing url 00046 extern FXAPI FXString host(const FXString& string); 00047 00048 /// Parse port number from string containing url 00049 extern FXAPI FXint port(const FXString& string); 00050 00051 /// Parse path from string containing url 00052 extern FXAPI FXString path(const FXString& string); 00053 00054 /// Parse query from string containing url 00055 extern FXAPI FXString query(const FXString& string); 00056 00057 /// Parse fragment from string containing url 00058 extern FXAPI FXString fragment(const FXString& string); 00059 00060 00061 /// Return URL of filename 00062 extern FXAPI FXString fileToURL(const FXString& string); 00063 00064 /// Return filename from URL, empty if url is not a local file 00065 extern FXAPI FXString fileFromURL(const FXString& string); 00066 00067 } 00068 00069 } 00070 00071 #endif
![]() |