Design Pattern Examples
Overview of object-oriented design patterns
lusplus/helpers/replace.h
Go to the documentation of this file.
1
5
6
#pragma once
7
#ifndef __REPLACE_H__
8
#define __REPLACE_H__
9
10
#include <string>
11
12
namespace
Helpers
13
{
25
std::string
Replace
(
26
const
std::string& s,
27
char
c1,
28
char
c2,
29
bool
bCaseInsensitive =
false
);
30
42
std::string
Replace
(
43
const
std::string& s,
44
const
char
* str1,
45
const
char
* str2,
46
bool
bCaseInsensitive =
false
);
47
59
std::wstring
Replace
(
60
const
std::wstring& s,
61
wchar_t
c1,
62
wchar_t
c2,
63
bool
bCaseInsensitive =
false
);
64
76
std::wstring
Replace
(
77
const
std::wstring& s,
78
const
wchar_t
* str1,
79
const
wchar_t
* str2,
80
bool
bCaseInsensitive =
false
);
81
82
};
// end namespace Helpers
83
84
#endif
// __REPLACE_H__
Helpers
The namespace containing all the "helper" functions in the C++ code.
Definition:
argumentinvalid_error.h:14
Helpers::Replace
std::string Replace(const std::string &s, const char *str1, const char *str2, bool bCaseInsensitive)
Replace all occurrences of narrow string str1 with narrow string str2 in s. If str2 is empty then all...
Definition:
replace.cpp:47
cplusplus
helpers
replace.h
Generated on Tue Aug 29 2023 19:47:44 for Design Pattern Examples by
1.9.6