Declaration of the Replace() functions, for replacing characters and strings in a string. More...
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | Helpers |
The namespace containing all the "helper" functions in the C++ code. | |
Macros | |
#define | __REPLACE_H__ |
Functions | |
std::string | Replace (const std::string &s, char c1, char c2, bool bCaseInsensitive=false) |
Replace all occurrences of narrow character c1 with narrow character c2 in s . If c2 is empty then all matches to str1 are effectively removed from the string. | |
std::string | Replace (const std::string &s, const char *str1, const char *str2, bool bCaseInsensitive=false) |
Replace all occurrences of narrow string str1 with narrow 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. | |
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. | |
Declaration of the Replace() functions, for replacing characters and strings in a string.
Definition in file lusplus/helpers/replace.h.
#define __REPLACE_H__ |
Definition at line 8 of file lusplus/helpers/replace.h.