/* Copy if if it's a case-sensitive search; uppercase it if it's a case-insensitive search.  */
char* convert_string_case(const char *string, gboolean case_insensitive)
/* Copy if if it's a case-sensitive search; uppercase it if it's a case-insensitive search.  */
char* convert_string_case(const char *string, gboolean case_insensitive)
{
    if (case_insensitive) {
        return g_utf8_strup(string, -1);
    } else {
        return g_strdup(string);
    }
}