diff options
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 059665388..a2669d1a0 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -447,6 +447,13 @@ rspamd_str_regexp_escape (const gchar *pattern, gsize slen, */ gchar * rspamd_str_make_utf_valid (const gchar *src, gsize slen, gsize *dstlen); +/** + * Strips characters in `strip_chars` from start and end of the GString + * @param s + * @param strip_chars + */ +gsize rspamd_gstring_strip (GString *s, const gchar *strip_chars); + #define IS_ZERO_WIDTH_SPACE(uc) ((uc) == 0x200b || (uc) == 0x200c) #endif /* SRC_LIBUTIL_STR_UTIL_H_ */ |