staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Classes | Namespaces | Functions
replacer_source.hpp File Reference
#include <cstring>
#include <functional>
#include <ios>
#include <map>
#include <string>
#include <vector>
#include "staticlib/config.hpp"
#include "staticlib/io/io_exception.hpp"
#include "staticlib/io/buffered_source.hpp"
#include "staticlib/io/reference_source.hpp"
#include "staticlib/io/span.hpp"

Go to the source code of this file.

Classes

class  staticlib::io::replacer_source< Source >
 Source wrapper that replaces specified substrings in the input. More...

Namespaces

namespace  staticlib
namespace  staticlib::io

Functions

template<typename Source , class = typename std::enable_if<!std::is_lvalue_reference<Source>::value>::type>
replacer_source< Source > staticlib::io::make_replacer_source (Source &&source, std::map< std::string, std::string > values, std::function< void(const std::string &)> on_error)
 Factory function for creating replacer sources, created source wrapper will own specified source.
template<typename Source >
replacer_source
< reference_source< Source > > 
staticlib::io::make_replacer_source (Source &source, std::map< std::string, std::string > values, std::function< void(const std::string &)> on_error)
 Factory function for creating replacer sources, created source wrapper will NOT own specified source.