aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/StringUtil.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/StringUtil.hxx')
-rw-r--r--src/util/StringUtil.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/StringUtil.hxx b/src/util/StringUtil.hxx
index 9f2dab935..4f44ab94a 100644
--- a/src/util/StringUtil.hxx
+++ b/src/util/StringUtil.hxx
@@ -91,6 +91,14 @@ bool
StringEndsWith(const char *haystack, const char *needle);
/**
+ * Check if the given string ends with the specified suffix. If yes,
+ * returns the position of the suffix, and nullptr otherwise.
+ */
+gcc_pure
+const char *
+FindStringSuffix(const char *p, const char *suffix);
+
+/**
* Copy a string. If the buffer is too small, then the string is
* truncated. This is a safer version of strncpy().
*