SyTen
string_replace.h File Reference

Implements a string-replacement utility. More...

#include <string>
#include <sstream>
#include "inc/util/macros.h"
+ Include dependency graph for string_replace.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  syten
 Syten namespace.
 

Functions

template<typename T >
std::string syten::replace (std::string const &input, std::string const &start_delim, std::string const &end_delim, T func)
 Replaces occurences of delimited substrings by function return values. More...
 
template<typename T >
void syten::streamed_replace (std::ostream &out, std::string const &input, std::string const &start_delim, std::string const &end_delim, T func)
 Replaces occurences of delimited substrings by function return values. More...
 

Detailed Description

Implements a string-replacement utility.