Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
cetlib
cetlib
replace_all.h
Go to the documentation of this file.
1
#ifndef cetlib_replace_all_h
2
#define cetlib_replace_all_h
3
4
#include <string>
5
6
namespace
cet
{
7
///
8
/// \brief Replace all occurrences of from in string with to.
9
///
10
/// \returns true if anything has been done to in.
11
///
12
/// \param[in,out] in The string to be manipulated.
13
/// \param[in] from The string to be replaced.
14
/// \param[in] to The replacement of from.
15
bool
replace_all
(
std::string
& in,
16
std::string
const
& from,
17
std::string
const
& to);
18
}
19
20
#endif
/* cetlib_replace_all_h */
21
22
// Local variables:
23
// mode:c++
24
// End:
string
std::string string
Definition:
nybbler.cc:12
cet::replace_all
bool replace_all(std::string &in, std::string const &from, std::string const &to)
Replace all occurrences of from in string with to.
Definition:
replace_all.cc:4
cet
Definition:
PluginSymbolResolvers.h:8
Generated by
1.8.11