Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

util.h

Go to the documentation of this file.
00001 #ifndef __msn_util_h__
00002 #define __msn_util_h__
00003 
00004 /*
00005  * util.h
00006  * libmsn
00007  *
00008  * Created by Mark Rowe on Mon Mar 22 2004.
00009  * Copyright (c) 2004 Mark Rowe. All rights reserved.
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  */
00025 
00026 #include <string>
00027 #include <map>
00028 #include <vector>
00029 #include <stdexcept>
00030 
00031 namespace MSN 
00032 {
00039     std::string encodeURL(const std::string & s);
00040     
00047     std::string decodeURL(const std::string & s);
00048     
00055     std::pair<std::string, int> splitServerAddress(const std::string & address, int default_port=1863);
00056     
00059     int nocase_cmp(const std::string & s1, const std::string & s2);
00060     
00063     std::vector<std::string> splitString(const std::string & string, const std::string & separator, bool suppressBlanks=true);
00064     
00067     unsigned int decimalFromString(const std::string & s) throw (std::logic_error);
00068 }
00069 #endif

Generated on Sun Feb 6 19:59:40 2005 for libmsn by  doxygen 1.4.1