From 72416a6a1f75d56abfad0f486e57fd32579b3604 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Tue, 10 Sep 2019 15:11:26 +0200 Subject: Formspec: add hypertext element --- src/util/string.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/util/string.h') diff --git a/src/util/string.h b/src/util/string.h index ab9a4a6c8..3aa11080f 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #pragma once #include "irrlichttypes_bloated.h" +#include "irrString.h" #include #include #include @@ -723,3 +724,13 @@ inline std::string str_join(const std::vector &list, } return oss.str(); } + +/** + * Create a std::string from a irr::core::stringw. + */ +std::string strwtostr(const irr::core::stringw &str); + +/** + * Create a irr::core:stringw from a std::string. + */ +irr::core::stringw strtostrw(const std::string &str); -- cgit v1.2.3