summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2009-10-06 00:08:25 +0300
committerJared Adams <jaxad0127@gmail.com>2009-10-05 16:53:21 -0600
commitc1b93b0bfe2d7c4568de26af85523f83e72293d4 (patch)
treef446a5e256fc5e63f34c6a7b91a5e414b7c8ae2e /src/utils/stringutils.h
parent8a70da0e01e8cd6fd3b9b443bde45729b44a480b (diff)
downloadMana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.tar.gz
Mana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.tar.bz2
Mana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.tar.xz
Mana-c1b93b0bfe2d7c4568de26af85523f83e72293d4.zip
Hide color codes from speech text
Diffstat (limited to 'src/utils/stringutils.h')
-rw-r--r--src/utils/stringutils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index 89d3d7e9..ae105c6c 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -92,4 +92,12 @@ std::string strprintf(char const *, ...)
*/
std::string &removeBadChars(std::string &str);
+/**
+ * Removes colors from a string
+ *
+ * @param msg the string to remove the colors from
+ * @return string without colors
+ */
+std::string removeColors(std::string msg);
+
#endif // UTILS_STRINGUTILS_H