|
header_utils
|
interpolate("hello [world]!", func) -> "hello " + func("world") + "!" More...
Functions | |
| template<char open = '[', char close = ']', typename FUNC> | |
| std::string | ghassanpl::interpolate_simple (std::string_view str, FUNC &&func) |
| The simplest string interpolation function; calls func for every [group] in str. | |
| template<char open = '[', char close = ']', typename FUNC> | |
| std::string | ghassanpl::interpolate_recursive (std::string_view str, FUNC &&func) |
| Like interpolate_simple except [group]s can be recursive, that is, can contain other groups that will be interpolated before the outer group. | |
| template<bool SYNTAX> | |
| std::string | ghassanpl::interpolate_eval (std::string_view str, eval::environment< SYNTAX > &env) |
| Interpolation using the eval module functionality. | |
interpolate("hello [world]!", func) -> "hello " + func("world") + "!"
|
nodiscard |
Interpolation using the eval module functionality.
Definition at line 76 of file string_interpolate.h.
|
nodiscard |
Like interpolate_simple except [group]s can be recursive, that is, can contain other groups that will be interpolated before the outer group.
Definition at line 43 of file string_interpolate.h.
|
nodiscard |
The simplest string interpolation function; calls func for every [group] in str.
Definition at line 19 of file string_interpolate.h.