A string expression that generates a string replacing all occurrences of the given substring to string expression. More...
#include <strexpr.h>
Public Member Functions | |
| constexpr | expr_replaced_e (str_src< K > w, str_src< K > p, const E &e) |
| Constructor. | |
A string expression that generates a string replacing all occurrences of the given substring to string expression.
| K | - string type. |
If the search substring is not found, the string expression is not even evaluated. Then, when performing a replacement, the string expression is evaluated only once at the first replacement location, and characters from the first location are simply copied to subsequent replacement locations. This saves memory and time if you need to replace with some kind of "composite" string.
|
inlineconstexpr |
Constructor.
| w | - source string. |
| p | - the searched substring. |
| e | - string expression to replace. |