20 lines
429 B
C++
20 lines
429 B
C++
#ifndef QUERY_STRING_HPP
|
|
#define QUERY_STRING_HPP
|
|
|
|
#include <string>
|
|
|
|
namespace matador::utils {
|
|
|
|
/**
|
|
* Replaces all occurrences of string from in given string
|
|
* with string to.
|
|
*
|
|
* @param in Source string where the replacement takes place
|
|
* @param from The string to be replaced
|
|
* @param to The new string
|
|
*/
|
|
void replace_all(std::string &in, const std::string &from, const std::string &to);
|
|
|
|
}
|
|
#endif //QUERY_STRING_HPP
|