2 // Copyright (c) 1997, 1998 Etienne BERNARD
3 // Copyright (c) 2002,2005 Clinton Ebadi
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36 std::string get_nick (std::string);
37 std::string get_userhost (std::string);
38 std::string get_key();
40 int get_level (Bot *, std::string);
41 int get_level (Bot *, std::string, std::string);
43 std::string make_wildcard (std::string);
46 bool channel_p (std::string);
47 bool wildcard_p (std::string);
48 bool valid_channel_name_p (std::string);
49 bool valid_nickname_p (const Bot *, std::string);
50 bool IP_p (std::string);
52 std::string level2str (int);
53 std::string prot2str (int);
54 std::string bool2str (bool);
55 std::string long2str (long);
57 std::time_t str2time(std::string);
59 // string case conversion
60 std::string to_lower (std::string);
61 std::string to_upper (std::string);
63 std::string trim_str (std::string);
66 std::string scm2str (SCM);
67 SCM str2scm (std::string);