2009-03-04 23:19:55 +00:00
|
|
|
#ifndef _LIGHTTPD_ENCODING_H_
|
|
|
|
#define _LIGHTTPD_ENCODING_H_
|
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
#include <lighttpd/settings.h>
|
2009-03-04 23:19:55 +00:00
|
|
|
|
|
|
|
typedef enum {
|
2009-08-03 18:33:17 +00:00
|
|
|
LI_ENCODING_HEX, /* a => 61 */
|
|
|
|
LI_ENCODING_HTML, /* HTML special chars. & => & e.g. */
|
|
|
|
LI_ENCODING_URI /* relative URI */
|
|
|
|
} liEncoding;
|
2009-03-04 23:19:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* encodes special characters in a string and returns the new string */
|
2009-08-03 18:33:17 +00:00
|
|
|
LI_API GString *li_string_encode_append(const gchar *str, GString *dest, liEncoding encoding);
|
|
|
|
LI_API GString *li_string_encode(const gchar *str, GString *dest, liEncoding encoding);
|
2009-03-04 23:19:55 +00:00
|
|
|
|
2009-07-16 20:17:14 +00:00
|
|
|
#endif
|