Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/strescape.h @ 903:fd8888f6f037 HEAD
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Jan 2003 15:09:51 +0200 |
parents | 0d5be52d7131 |
children | 3784730cfcd8 |
line wrap: on
line source
#ifndef __STRESCAPE_H #define __STRESCAPE_H #define IS_ESCAPED_CHAR(c) ((c) == '"' || (c) == '\\') /* escape all '\' and '"' characters */ const char *str_escape(const char *str); /* remove all '\' characters, append to given string */ void str_append_unescaped(string_t *dest, const void *src, size_t src_size); /* remove all '\' characters */ void str_unescape(char *str); #endif