Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

strutils.h

Go to the documentation of this file.
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * Various little string functions...
00006  *
00007  */
00008 
00009 #ifndef __STRUTILS_H
00010 #define __STRUTILS_H
00011 
00012 #ifdef ISBSD
00013 #include <time.h>
00014 #endif
00015 
00016 #include "wvstring.h"
00017 #include "wvstringlist.h"
00018 
00026 extern char *terminate_string(char *string, char c);
00027 
00036 extern char *trim_string(char *string);
00037 
00042 extern char *trim_string(char *string, char c);
00043 
00048 extern void replace_char(void *string, char c1, char c2, int length);
00049 
00054 extern char *strlwr(char *string);
00055 
00060 extern char *strupr(char *string);
00061 
00065 extern bool is_word(const char *string);
00066 
00075 extern WvString hexdump_buffer(const void *buf, size_t len);
00076 
00081 extern bool isnewline(char c);
00082 
00096 extern void hexify(char *obuf, const void *ibuf, size_t len);
00097 
00103 extern void unhexify(void *obuf, const char *ibuf);
00104 
00109 extern WvString web_unescape(const char *str);
00110 
00111 WvString rfc822_date(time_t _when = -1);
00112 WvString passwd_crypt(const char *str);
00113 WvString backslash_escape(const WvString &s1);
00114 
00115 extern int strcount(const WvString &s, const char c);
00116 
00117 WvString encode_hostname_as_DN(WvString &hostname);
00118 
00119 #endif // __STRUTILS_H

Generated on Sat Aug 24 21:36:59 2002 for WvStreams by doxygen1.2.15