1 /* $Id: charutil.h,v 1.12 2004/04/20 04:55:55 bluehal Exp $ */
2 /* Author: Mark Hurley (debian4tux@telocity.com)
4 * Character / string manipulation utilities.
19 void FullTrim(char *psValue
);
21 void Bin2Hex(unsigned char *src
, int length
, char *dst
);
23 void Encode_Base64(char *src
, char *dst
);
24 void Decode_Base64(char *src
, char *dst
);
26 /* helper function for the configuration line parser */
27 void copy_substring(char *destination
,
28 int startidx
, int endidx
, const char *source
);
30 /* common to Pop3 and Imap4 authentication list grabber. */
31 void grab_authList(const char *source
, char *destination
);
34 /* handles main regex work */
35 int compile_and_match_regex(const char *regex
, const char *str
,
36 /*@out@ */ struct re_registers
*regs
);
39 /* acts like perl's function of the same name */
42 /* same as xstrdup, just better named ;) */
43 char *strdup_ordie(const char *c
);
45 void StripComment(char *buf
);