2
0
Fork 0
lighttpd2/include/lighttpd/encoding.h

17 lines
489 B
C
Raw Normal View History

2009-03-04 23:19:55 +00:00
#ifndef _LIGHTTPD_ENCODING_H_
#define _LIGHTTPD_ENCODING_H_
#include <lighttpd/settings.h>
2009-03-04 23:19:55 +00:00
typedef enum {
ENCODING_HEX, /* a => 61 */
2009-03-06 16:25:46 +00:00
ENCODING_HTML, /* HTML special chars. & => &amp; e.g. */
ENCODING_URI /* relative URI */
2009-03-04 23:19:55 +00:00
} encoding_t;
/* encodes special characters in a string and returns the new string */
GString *string_encode_append(const gchar *str, GString *dest, encoding_t encoding);
2009-03-06 16:25:46 +00:00
GString *string_encode(const gchar *str, GString *dest, encoding_t encoding);
2009-03-04 23:19:55 +00:00
#endif