Implementation of the Replace(const std::wstring&, const wchar_t*, const wchar_t*, bool) and Replace(const std::wstring&, wchar_t, wchar_t, bool) functions, for replacing narrow character characters and strings in a string. More...
Go to the source code of this file.
Namespaces | |
namespace | Helpers |
The namespace containing all the "helper" functions in the C++ code. | |
Functions | |
std::wstring | Replace (const std::wstring &s, const wchar_t *str1, const wchar_t *str2, bool bCaseInsensitive=false) |
Replace all occurrences of wide string str1 with wide string str2 in s . If str2 is empty then all matches to str1 are effectively removed from the string. | |
std::wstring | Replace (const std::wstring &s, wchar_t c1, wchar_t c2, bool bCaseInsensitive=false) |
Replace all occurrences of wide character c1 with wide character c2 in s . If c2 is empty then all matches to str1 are effectively removed from the string. | |
Implementation of the Replace(const std::wstring&, const wchar_t*, const wchar_t*, bool) and Replace(const std::wstring&, wchar_t, wchar_t, bool) functions, for replacing narrow character characters and strings in a string.
Definition in file replacew.cpp.