]> jfr.im git - irc/quakenet/newserv.git/blame - helpmod2/hgen.h
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / helpmod2 / hgen.h
CommitLineData
c86edd1d
Q
1/* new H general functions and procedures */
2#ifndef HGEN_H
3#define HGEN_H
4
5#include "hdef.h"
6
7int ci_strcmp(const char*, const char*);
8
9/* matches string (const char*) to the regular expression (? and *) (const char*) */
10int strregexp(const char *, const char *);
11
e908ecfa 12/* prints the time in the common 1h 2m 3s format, has three internal buffers */
c86edd1d
Q
13const char *helpmod_strtime(int);
14/* reads a time string */
15int helpmod_read_strtime(const char *);
16
17int hword_count(const char*);
18
19int helpmod_is_lame_line(const char*);
20
21int strislower(const char*);
22int strisupper(const char*);
23
24int strisalpha(const char*);
25int strnumcount(const char*);
26
3a839281 27float helpmod_percentage(int, int);
28
9af95c3d 29/* A select for strings, case insensitive
30 * String to match, strings, corresponding int values (enums) and amount of both
31 * In case of no match, -1 is returned */
32int helpmod_select(const char*, const char**, int*, int);
33
c86edd1d 34#endif