* remove mu_query_xapian_combine; let Xapian handle it. add

mu_util_str_from_strv for combining strings
This commit is contained in:
Dirk-Jan C. Binnema
2010-02-03 21:06:31 +02:00
parent a2d1692dda
commit fa08d66380
5 changed files with 59 additions and 83 deletions

View File

@ -53,8 +53,7 @@ mu_util_dir_expand (const char *path)
}
gboolean
mu_util_check_dir (const gchar* path, gboolean readable,
gboolean writeable)
mu_util_check_dir (const gchar* path, gboolean readable, gboolean writeable)
{
mode_t mode;
struct stat statbuf;
@ -127,3 +126,26 @@ mu_util_create_dir_maybe (const gchar *path)
return TRUE;
}
gchar*
mu_util_str_from_strv (const gchar **params)
{
GString *str;
int i;
g_return_val_if_fail (params, NULL);
if (!params[0])
return g_strdup ("");
str = g_string_sized_new (64); /* just a guess */
for (i = 0; params[i]; ++i) {
if (i>0)
g_string_append_c (str, ' ');
g_string_append (str, params[i]);
}
return g_string_free (str, FALSE);
}