From dacd393fefeabafd1306533dd6c5a56e0ab347cc Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 27 Feb 2011 18:48:35 +0100 Subject: Initial commit --- myfuncs.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 myfuncs.h (limited to 'myfuncs.h') diff --git a/myfuncs.h b/myfuncs.h new file mode 100644 index 0000000..d5f2500 --- /dev/null +++ b/myfuncs.h @@ -0,0 +1,32 @@ +#ifndef _MYFUNCS_H_ +#define _MYFUNCS_H_ + +#include +#include + +using namespace std; + +string ucase (string str); +string lcase (string str); +string trim (string str); +string rtrim (string str); +string ltrim (string str); +string split (string& str); +string ntharg(string str, int n); +bool match(string what, string key); + +string IntToString(int i); + +string get_hostmask(string nick1); +string cut_nick (string nick1); + +struct ircmode_t +{ + string mode; + string param; +}; + +list parsemodes (string params); +int numchanperm (string m); + +#endif -- cgit v1.2.1