Go to the source code of this file.
Defines | |
#define | ToUpper(c) (ToUpperTab[(unsigned)c]) |
#define | ToLower(c) (ToLowerTab[(unsigned)c]) |
Functions | |
int | irccmp (const char *, const char *) |
int | ircncmp (const char *, const char *, int) |
#define ToLower | ( | c | ) | (ToLowerTab[(unsigned)c]) |
#define ToUpper | ( | c | ) | (ToUpperTab[(unsigned)c]) |
int irccmp | ( | const char * | , | |
const char * | ||||
) |
Definition at line 105 of file irccmp.c.
References ToUpper.
Referenced by check_expired_bans(), check_expired_exempts(), check_expired_invites(), cmd_mns_chan(), cmd_mns_mask(), del_chanrec(), expired_mask(), get_chanrec(), got005(), got376(), on_putlog(), u_addmask(), u_delmask(), u_equals_mask(), u_setsticky_mask(), and u_sticky_mask().
00106 { 00107 const unsigned char *str1 = (const unsigned char *) s1, *str2 = (const unsigned char *) s2; 00108 int res; 00109 00110 while ((res = ToUpper(*str1) - ToUpper(*str2)) == 0) { 00111 if (*str1 == '\0') return(0); 00112 str1++; 00113 str2++; 00114 } 00115 return(res); 00116 }
int ircncmp | ( | const char * | , | |
const char * | , | |||
int | ||||
) |
Definition at line 124 of file irccmp.c.
References ToUpper.
00125 { 00126 const unsigned char *str1 = (const unsigned char *) s1, *str2 = (const unsigned char *) s2; 00127 int res; 00128 00129 while ((res = ToUpper(*str1) - ToUpper(*str2)) == 0) { 00130 str1++; 00131 str2++; 00132 n--; 00133 if (n == 0 || (*str1 == '\0' && *str2 == '\0')) return(0); 00134 } 00135 return(res); 00136 }