Template Function detail::replace_substring
Defined in File json.hpp
Function Documentation
-
template<typename StringType>
inline void detail::replace_substring(StringType &s, const StringType &f, const StringType &t) replace all occurrences of a substring by another string
- Since
version 2.0.0
- Parameters:
s – [inout] the string to manipulate; changed so that all occurrences of f are replaced with t
f – [in] the substring to replace with t
t – [in] the string to replace f
- Pre:
The search string f must not be empty. This precondition is enforced with an assertion.