30template<
typename StringType>
35 for (
auto pos = s.find(f);
36 pos != StringType::npos;
37 s.replace(pos, f.size(), t),
38 pos = s.find(f, pos + t.size()))
49template<
typename StringType>
50inline StringType
escape(StringType s)
64template<
typename StringType>
#define WPI_JSON_NAMESPACE_END
Definition: abi_macros.h:59
#define WPI_JSON_NAMESPACE_BEGIN
Definition: abi_macros.h:53
#define JSON_ASSERT(x)
Definition: macro_scope.h:192
detail namespace with internal helper functions
Definition: xchar.h:20
static void unescape(StringType &s)
string unescaping as described in RFC 6901 (Sect. 4)
Definition: string_escape.h:65
void replace_substring(StringType &s, const StringType &f, const StringType &t)
replace all occurrences of a substring by another string
Definition: string_escape.h:31
StringType escape(StringType s)
string escaping as described in RFC 6901 (Sect. 4)
Definition: string_escape.h:50