00001 /* boss_utility.h $Revision: 1.3 $ $Date: 2005/12/10 20:33:54 $ 00002 Copyright (C) 1999 University of Bonn. 00003 http://www.ikp.uni-bonn.de/boss 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (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; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, 00018 Boston, MA 02111-1307, USA. 00019 */ 00020 00026 #ifndef __BOSS_UTILITYH__ 00027 #define __BOSS_UTILITYH__ 00028 00029 using namespace std; 00030 00031 #include "boss_types.h" 00032 #include "boss_exceptions.h" 00033 #include <iterator> 00034 #include <iostream> 00035 00036 namespace BOSS 00037 { 00038 00040 t_USPairVector readS1LabelTable(const string & name) 00041 throw(BOSS::FileOpenError, BOSS::FileFormatError); 00042 00044 t_SSPairVector readTwoStringTable(const string & name) 00045 throw(BOSS::FileOpenError, BOSS::FileFormatError); 00046 00048 string addSlash(const string & s); 00049 00051 string makeInvFileName(const string & pref, const string & inv, const string & file) 00052 throw(BOSS::FileFormatError); 00053 00055 string makeFilePath(const string & pref, const string & file) 00056 throw(BOSS::FileFormatError); 00057 00060 t_CSPair removePunctuation(const string & word); 00061 00063 string my_tolower(string s); 00064 00069 t_CSPair cleanWordPunctuation(const string & w); 00070 00071 BOSS::Fileinfo getFileinfo(const string & s); 00072 00073 string getDate(); 00074 } 00075 00076 00077 #endif