A string expression that generates a string replacing all occurrences of the given substring. More...
#include <sstring.h>
Public Member Functions | |
| constexpr | expr_replaced (simple_str< K > w, simple_str< K > p, simple_str< K > r) |
| Constructor. | |
A string expression that generates a string replacing all occurrences of the given substring.
| K | - string type. |
e_repl only allows replacement using string literals. In the case when the required substring or replacement string is not known at compilation, and is set at runtime, this type should be used, for example:
|
inlineconstexpr |
Constructor.
| w | - source string. |
| p | - the searched substring. |
| r | - replacement string. |