summaryrefslogtreecommitdiff
path: root/myfuncs.h
blob: fbd3985d46a1d91ed3fca6ed917e7ad791e77795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _MYFUNCS_H_
#define _MYFUNCS_H_

#include <string>
#include <list>

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<ircmode_t> parsemodes (string params);
int numchanperm (string m);

void panic();
#endif