btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / src / add-ons / kernel / file_systems / googlefs / string_utils.h
blobeb56869d846c6547faedfac127815667b9dd3d68
1 /*
2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
4 */
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&ccedil;ois" -> "François"
16 * caller must free() result
18 extern char *unentitify_string(const char *str);
20 #endif /* _STRING_UTILS_H */