aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r--e-util/e-util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 7a9f81d81b..bf4fe6292b 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -58,6 +58,19 @@ g_str_compare (const void *x, const void *y)
}
int
+g_str_case_compare (const void *x, const void *y)
+{
+ if (x == NULL || y == NULL) {
+ if (x == y)
+ return 0;
+ else
+ return x ? -1 : 1;
+ }
+
+ return g_utf8_collate (g_utf8_casefold (x, -1), g_utf8_casefold (y, -1));
+}
+
+int
g_collate_compare (const void *x, const void *y)
{
if (x == NULL || y == NULL) {