libsrsirc
0.0.14
Lightweight, cross-platform IRC library
|
Go to the source code of this file.
Functions | |
void | lsi_ut_ident2nick (char *dest, size_t dest_sz, const char *ident) |
Extract the nick from a nick[!user][@host]-style identity. More... | |
void | lsi_ut_ident2uname (char *dest, size_t dest_sz, const char *ident) |
does the same as lsi_ut_ident2nick, just for the user part More... | |
void | lsi_ut_ident2host (char *dest, size_t dest_sz, const char *ident) |
does the same as lsi_ut_ident2nick, just for the host part More... | |
int | lsi_ut_istrcmp (const char *n1, const char *n2, int casemap) |
case-insensitively compare strings, taking case mapping into account. More... | |
int | lsi_ut_istrncmp (const char *n1, const char *n2, size_t len, int casemap) |
like lsi_ut_istrcmp, but compare only a maximum of len chars | |
char | lsi_ut_tolower (char c, int casemap) |
casemap-aware translate a char to lowercase, if uppercase | |
void | lsi_ut_strtolower (char *dest, size_t destsz, const char *str, int casemap) |
casemap-aware translate a string to lowercase More... | |
void | lsi_ut_parse_hostspec (char *hoststr, size_t hoststr_sz, uint16_t *port, bool *ssl, const char *hostspec) |
parse a "host spec" (i.e. something "host:port"-ish) More... | |
bool | lsi_ut_parse_pxspec (int *ptype, char *hoststr, size_t hoststr_sz, uint16_t *port, const char *pxspec) |
parse a "proxy specifier". More... | |
char * | lsi_ut_sndumpmsg (char *dest, size_t dest_sz, void *tag, tokarr *msg) |
glue a tokenized message back together into a single line More... | |
void | lsi_ut_dumpmsg (void *tag, tokarr *msg) |
Like lsi_ut_sndumpmsg(), but print the result to stderr. | |
bool | lsi_ut_conread (tokarr *msg, void *tag) |
dump-to-stderr conread handler (see irc_regcb_conread()) More... | |
void | lsi_ut_mut_nick (char *nick, size_t nick_sz) |
Default alternative nickname generator. More... | |
char ** | lsi_ut_parse_MODE (irc *ctx, tokarr *msg, size_t *num, bool is324) |
Dissect a MODE message, correlating mode chars with their arguments. More... | |
int | lsi_ut_classify_chanmode (irc *ctx, char c) |
Determine class of a channel mode. More... | |
tokarr * | lsi_ut_clonearr (tokarr *arr) |
deep-copy a tokarr (usually containing a tokenized irc msg) More... | |
void | lsi_ut_freearr (tokarr *arr) |
free a tokarr (as obtained by lsi_ut_clonearr()) More... | |
char * | lsi_ut_snrcmsg (char *dest, size_t destsz, tokarr *msg, bool coltr) |
Reconstruct a valid protocol message from a tokarr. More... | |
bool | lsi_ut_tokenize (char *buf, tokarr *tok) |
In-place field-split an IRC protocol message and populate a tokarr. More... | |
const char * | lsi_ut_casemap_nam (int cm) |
Determine the name of a given case mapping. More... | |
bool | lsi_ut_ischan (irc *ctx, const char *str) |
Determine whether a given string is a channel. More... | |