diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 12:26:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 12:26:38 +0100 |
commit | 3b9d4282aea747995442cbebcc6b4908c6b52049 (patch) | |
tree | 06d2eb896842111cabd1fea16516ba9d553ea09c /src/libutil/str_util.h | |
parent | 2567f0c4c7408fc3cd83794e7b12fed9bc33da83 (diff) | |
download | rspamd-3b9d4282aea747995442cbebcc6b4908c6b52049.tar.gz rspamd-3b9d4282aea747995442cbebcc6b4908c6b52049.zip |
Generalize lowercase comparision.
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 5 |
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); |