aboutsummaryrefslogtreecommitdiffstats
path: root/camel/string-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/string-utils.c')
-rw-r--r--camel/string-utils.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/camel/string-utils.c b/camel/string-utils.c
index 8fa82ed4ec..d87d50663d 100644
--- a/camel/string-utils.c
+++ b/camel/string-utils.c
@@ -72,7 +72,7 @@ string_list_free (GList *string_list)
}
char *
-strstrcase (const char *haystack, const char *needle)
+camel_strstrcase (const char *haystack, const char *needle)
{
/* find the needle in the haystack neglecting case */
const char *ptr;
@@ -94,3 +94,18 @@ strstrcase (const char *haystack, const char *needle)
return NULL;
}
+
+
+const char *
+camel_strdown (char *str)
+{
+ register char *s = str;
+
+ while (*s) {
+ if (*s >= 'A' && *s <= 'Z')
+ *s += 0x20;
+ s++;
+ }
+
+ return str;
+}