| Top |  |  |  |  | 
| void | xfce_g_string_append_quoted () | 
| gchar * | xfce_str_replace () | 
| #define | xfce_str_is_empty() | 
| #define | I_() | 
void xfce_g_string_append_quoted (GString *string,const gchar *unquoted);
Quotes a string unquoted
 and appends to an existing
GString string
. The shell will interpret the quoted string
to mean unquoted
. The quoting style used is undefined
(check g_shell_quote()).
Since: 4.17
gchar * xfce_str_replace (const gchar *str,const gchar *pattern,const gchar *replacement);
Searches str
 for occurances of pattern
 and replaces each
such occurance with replacement
. Returns a newly allocated
copy of str
 on which the given replacement were performed.
The caller is responsible to free the returned string using
g_free() when no longer needed.
Note that pattern
 and replacement
 don't need to be of the
same size. If replacement
 is NULL, the pattern will be
removed from the string.
Note for future Xfce developers: Deprecate this function when
g_string_replace() is available. (Added since Glib >= 2.68)
| str | the input string. | |
| pattern | a search pattern in  | |
| replacement | replacement string for  | 
a newly allocated copy of str
where all occurrences of
pattern
are replaced with replacement
. Or NULL if
str
is NULL. 
[nullable][transfer full]
Since: 4.17
#define xfce_str_is_empty(string) ((string) == NULL || *(string) == '\0')
Macro to check if a string is NULL or empty. You should prefer
this function over strlen (str) == 0.