2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
5 #ifndef _STRING_UTILS_H
6 #define _STRING_UTILS_H
8 /* converts a string to a format suitable for use in urls
9 * ex: "foo bar+" -> "foo+bar%2D"
10 * caller must free() result
12 extern char *urlify_string(const char *str
);
14 /* converts string with html entities to regular utf-8 string
15 * ex: "François" -> "François"
16 * caller must free() result
18 extern char *unentitify_string(const char *str
);
20 #endif /* _STRING_UTILS_H */