aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-16 14:39:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-16 14:39:06 +0100
commitfb55acaa1aa930df113936aef303345932168997 (patch)
treed2d6efc7107554afbc39aced341156a666caa536 /src/libutil/str_util.h
parent451295abe4dc7604f64fdbd12a18884b2e8af400 (diff)
downloadrspamd-fb55acaa1aa930df113936aef303345932168997.tar.gz
rspamd-fb55acaa1aa930df113936aef303345932168997.zip
[Minor] Add sse2 accelerated function for lowercasing and copying a string
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index cfa37848f..e5e4cfb76 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -44,6 +44,14 @@ gint rspamd_lc_cmp (const gchar *s, const gchar *d, gsize l);
guint rspamd_str_lc (gchar *str, guint size);
/**
+ * Performs ascii copy & lowercase
+ * @param src
+ * @param size
+ * @return
+ */
+gsize rspamd_str_copy_lc (const gchar *src, gchar *dst, gsize size);
+
+/**
* Convert string to lowercase in-place using utf (limited) conversion
*/
guint rspamd_str_lc_utf8 (gchar *str, guint size);