aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 12:26:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-07 12:26:38 +0100
commit3b9d4282aea747995442cbebcc6b4908c6b52049 (patch)
tree06d2eb896842111cabd1fea16516ba9d553ea09c /src/libutil/str_util.h
parent2567f0c4c7408fc3cd83794e7b12fed9bc33da83 (diff)
downloadrspamd-3b9d4282aea747995442cbebcc6b4908c6b52049.tar.gz
rspamd-3b9d4282aea747995442cbebcc6b4908c6b52049.zip
Generalize lowercase comparision.
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index fdadc4811..801bcc109 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -29,6 +29,11 @@
#include "config.h"
/**
+ * Compare two memory regions of size `l` using case insensitive matching
+ */
+gint rspamd_lc_cmp (const gchar *s, const gchar *d, gsize l);
+
+/**
* Convert string to lowercase in-place using ASCII conversion
*/
void rspamd_str_lc (gchar *str, guint size);