]>
Commit | Line | Data |
---|---|---|
1 | /* new H general functions and procedures */ | |
2 | #ifndef HGEN_H | |
3 | #define HGEN_H | |
4 | ||
5 | #include "hdef.h" | |
6 | ||
7 | int ci_strcmp(const char*, const char*); | |
8 | ||
9 | /* matches string (const char*) to the regular expression (? and *) (const char*) */ | |
10 | int strregexp(const char *, const char *); | |
11 | ||
12 | /* prints the time in the common 1h 2m 3s format, has three internal buffers */ | |
13 | const char *helpmod_strtime(int); | |
14 | /* reads a time string */ | |
15 | int helpmod_read_strtime(const char *); | |
16 | ||
17 | int hword_count(const char*); | |
18 | ||
19 | int helpmod_is_lame_line(const char*); | |
20 | ||
21 | int strislower(const char*); | |
22 | int strisupper(const char*); | |
23 | ||
24 | int strisalpha(const char*); | |
25 | int strnumcount(const char*); | |
26 | ||
27 | float helpmod_percentage(int, int); | |
28 | ||
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 */ | |
32 | int helpmod_select(const char*, const char**, int*, int); | |
33 | ||
34 | #endif |