37 #ifndef GNC_GLIB_UTILS_H
38 #define GNC_GLIB_UTILS_H
144 typedef gpointer (*GncGMapFunc)(gpointer data, gpointer user_data);
149 GList*
gnc_g_list_map(GList* list, GncGMapFunc fn, gpointer user_data);
163 void gnc_scm_log_warn(
const gchar *msg);
164 void gnc_scm_log_error(
const gchar *msg);
165 void gnc_scm_log_msg(
const gchar *msg);
166 void gnc_scm_log_debug(
const gchar *msg);
GList * gnc_g_list_map(GList *list, GncGMapFunc fn, gpointer user_data)
int safe_utf8_collate(const char *str1, const char *str2)
gchar * gnc_locale_from_utf8(const gchar *str)
Converts a string from UTF-8 to the encoding used for strings in the current locale.
gboolean gnc_utf8_validate(const gchar *str, gssize max_len, const gchar **end)
Validates UTF-8 encoded text for use in GnuCash.
void gnc_g_list_cut(GList **list, GList *cut_point)
void gnc_utf8_strip_invalid(gchar *str)
gchar * gnc_locale_to_utf8(const gchar *str)
Converts a string to UTF-8 from the encoding used for strings in the current locale.
void gnc_gpid_kill(GPid pid)
gchar * gnc_utf8_strip_invalid_strdup(const gchar *str)