Strip off version numbers from dir name
[dockapps.git] / wmbiff / wmbiff / charutil.h
blobcbd687ecbf4d50ce7f441aec7febfa9e51a5c292
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.
6 */
8 #ifndef CHARUTIL
9 #define CHARUTIL
11 #ifdef HAVE_CONFIG_H
12 #include <config.h>
13 #endif
15 #ifdef HAVE_REGEX_H
16 #include <regex.h>
17 #endif
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);
33 #ifdef USE_GNU_REGEX
34 /* handles main regex work */
35 int compile_and_match_regex(const char *regex, const char *str,
36 /*@out@ */ struct re_registers *regs);
37 #endif
39 /* acts like perl's function of the same name */
40 void chomp(char *s);
42 /* same as xstrdup, just better named ;) */
43 char *strdup_ordie(const char *c);
45 void StripComment(char *buf);
46 #endif