diff options
Diffstat (limited to 'src/util/string.h')
-rw-r--r-- | src/util/string.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/string.h b/src/util/string.h index cf94b7f5f..9e59ab20a 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -386,6 +386,13 @@ inline void str_replace(std::string &str, const std::string &pattern, } } +/** + * Remove all chat escape sequences in \p s. + * + * @param s The string in which to remove escape sequences. + * @return \p s, with escape sequences removed. + */ +std::wstring removeChatEscapes(const std::wstring &s); /** * Replace all occurrences of the character \p from in \p str with \p to. |