00001 /* 00002 * File: StringFunctions.h 00003 * Author: Dorian Galvez-Lopez 00004 * Date: December 2010 00005 * Description: string functions 00006 * 00007 * 00008 * This program 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 * any later version. 00012 * 00013 * This program 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 */ 00022 00023 #ifndef __D_STRING__ 00024 #define __D_STRING__ 00025 00026 #include <string> 00027 #include <vector> 00028 00029 namespace DUtils { 00030 00031 class StringFunctions 00032 { 00033 public: 00034 00041 static void split(const std::string &s, std::vector<std::string> &tokens, 00042 const std::string &delims = " \t\n"); 00043 00044 }; 00045 00046 } 00047 00048 #endif 00049