aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 1fdb1a857..2c9905e13 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -350,4 +350,13 @@ extern const guchar lc_map[256];
*/
const void *rspamd_memrchr (const void *m, gint c, gsize len);
+/**
+ * Return length of memory segment starting in `s` that contains no chars from `e`
+ * @param s any input
+ * @param e zero terminated string of exceptions
+ * @param len length of `s`
+ * @return segment size
+ */
+gsize rspamd_memcspn (const gchar *s, const gchar *e, gsize len);
+
#endif /* SRC_LIBUTIL_STR_UTIL_H_ */