* mu-str.h make mu_str_escape_c_literal optionionally quote "" its result

This commit is contained in:
Dirk-Jan C. Binnema
2011-07-31 12:14:22 +03:00
parent 0a6161a71c
commit 424d012085
3 changed files with 214 additions and 2 deletions

View File

@ -198,10 +198,11 @@ const char* mu_str_fullpath_s (const char* path, const char* name);
* and " with \"
*
* @param str a non-NULL str
* @param in_quotes whether the result should be enclosed in ""
*
* @return the escaped string, newly allocated (free with g_free)
*/
char* mu_str_escape_c_literal (const gchar* str)
char* mu_str_escape_c_literal (const gchar* str, gboolean in_quotes)
G_GNUC_WARN_UNUSED_RESULT;