aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/WStringUtil.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/WStringUtil.hxx')
-rw-r--r--src/util/WStringUtil.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/WStringUtil.hxx b/src/util/WStringUtil.hxx
index bfbfb5d1f..3dde0162e 100644
--- a/src/util/WStringUtil.hxx
+++ b/src/util/WStringUtil.hxx
@@ -33,6 +33,15 @@ bool
StringEndsWith(const wchar_t *haystack, const wchar_t *needle);
/**
+ * Returns the portion of the string after a prefix. If the string
+ * does not begin with the specified prefix, this function returns
+ * nullptr.
+ */
+gcc_nonnull_all
+const wchar_t *
+StringAfterPrefix(const wchar_t *string, const wchar_t *prefix);
+
+/**
* Check if the given string ends with the specified suffix. If yes,
* returns the position of the suffix, and nullptr otherwise.
*/