MCPcopy Create free account
hub / github.com/crosire/reshade / escape_string

Function escape_string

source/effect_preprocessor.cpp:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102template <char ESCAPE_CHAR = '\\'>
103static std::string escape_string(std::string s)
104{
105 for (size_t offset = 0; (offset = s.find(ESCAPE_CHAR, offset)) != std::string::npos; offset += 2)
106 s.insert(offset, "\\", 1);
107 return '\"' + s + '\"';
108}
109
110reshadefx::preprocessor::preprocessor()
111{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected