SvnCpp
url.hpp
Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2009 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This program is free software: you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation, either version 3 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program (in the file GPL.txt.  
00017  * If not, see <http://www.gnu.org/licenses/>.
00018  *
00019  * This software consists of voluntary contributions made by many
00020  * individuals.  For exact contribution history, see the revision
00021  * history and logs, available at http://rapidsvn.tigris.org/.
00022  * ====================================================================
00023  */
00024 #ifndef _SVNCPP_URL_HPP_
00025 #define _SVNCPP_URL_HPP_
00026 
00027 // stl
00028 #include "svncpp/string_wrapper.hpp"
00029 #include "svncpp/vector_wrapper.hpp"
00030 
00031 namespace svn
00032 {
00033   class Url
00034   {
00035   public:
00037     Url();
00038 
00040     virtual ~Url();
00041 
00050     static bool
00051     isValid(const char * urlToValidate);
00052 
00061     static std::string
00062     escape(const char * url);
00063 
00069     static std::string
00070     unescape(const char * url);
00071 
00079     static std::vector<std::string>
00080     supportedSchemas();
00081   };
00082 }
00083 
00084 #endif
00085 /* -----------------------------------------------------------------
00086  * local variables:
00087  * eval: (load-file "../../rapidsvn-dev.el")
00088  * end:
00089  */
00090