Source wrapper that replaces specified substrings in the input. More...
#include <staticlib/io/replacer_source.hpp>
Public Member Functions | |
| replacer_source (Source &&src, std::map< std::string, std::string > values, std::function< void(const std::string &)> on_error, std::string prefix="{{", std::string postfix="}}", size_t max_placeholder_len=255) | |
| Constructor, created source wrapper will own specified source. | |
| replacer_source (const replacer_source &) | |
| Deleted copy constructor. | |
| replacer_source & | operator= (const replacer_source &) |
| Deleted copy assignment operator. | |
| replacer_source (replacer_source &&other) STATICLIB_NOEXCEPT | |
| Move constructor. | |
| replacer_source & | operator= (replacer_source &&other) STATICLIB_NOEXCEPT |
| Move assignment operator. | |
| std::streamsize | read (span< char > span) |
| Replacing read implementation. | |
| Source & | get_source () |
| Underlying source accessor. | |
| std::map< std::string, std::string > & | get_values () |
| Values mapping accessor. | |
Source wrapper that replaces specified substrings in the input.
|
inline |
Constructor, created source wrapper will own specified source.
| src | input source |
| staticlib::io::replacer_source< Source >::replacer_source | ( | const replacer_source< Source > & | ) |
Deleted copy constructor.
| other | instance |
|
inline |
Move constructor.
| other | other instance |
|
inline |
Underlying source accessor.
|
inline |
Values mapping accessor.
| replacer_source& staticlib::io::replacer_source< Source >::operator= | ( | const replacer_source< Source > & | ) |
Deleted copy assignment operator.
| other | instance |
|
inline |
Move assignment operator.
| other | other instance |
|
inline |
Replacing read implementation.
| span | buffer span |
1.8.1.2