rcpputils  master
C++ API providing common utilities and data structures.
Namespaces | Functions
find_and_replace.hpp File Reference

Find and replace functionality for std::strings. More...

#include <memory>
#include <string>
Include dependency graph for find_and_replace.hpp:

Go to the source code of this file.

Namespaces

 rcpputils
 

Functions

template<class CharT , class Traits = std::char_traits<CharT>, class Allocator = std::allocator<CharT>>
std::basic_string< CharT, Traits, Allocator > rcpputils::find_and_replace (const std::basic_string< CharT, Traits, Allocator > &input, const std::basic_string< CharT, Traits, Allocator > &find, const std::basic_string< CharT, Traits, Allocator > &replace)
 Find and replace all instances of a string with another string. More...
 
template<typename InputT , typename FindT , typename ReplaceT >
auto rcpputils::find_and_replace (InputT &&input, FindT &&find, ReplaceT &&replace)
 Find and replace all instances of a string with another string. More...
 

Detailed Description

Find and replace functionality for std::strings.