diff options
Diffstat (limited to 'protocols/Omegle/src/utils.cpp')
-rw-r--r-- | protocols/Omegle/src/utils.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/Omegle/src/utils.cpp b/protocols/Omegle/src/utils.cpp index fcc45aa502..bc7bac240a 100644 --- a/protocols/Omegle/src/utils.cpp +++ b/protocols/Omegle/src/utils.cpp @@ -49,6 +49,18 @@ void utils::text::replace_all( std::string* data, std::string from, std::string }
}
+void utils::text::treplace_all(std::tstring* data, std::tstring from, std::tstring to)
+{
+ std::tstring::size_type position = 0;
+
+ while ((position = data->find(from, position)) != std::tstring::npos)
+ {
+ data->replace(position, from.size(), to);
+ position++;
+ }
+}
+
+
std::string utils::text::special_expressions_decode( std::string data )
{
utils::text::replace_all( &data, "\\r", "\r" );
|