MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / escape_string

Function escape_string

src/Chain/libraries/glua/glua_lutil.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 std::string escape_string(std::string &str)
85 {
86 std::string result(str);
87 glua::util::replace_all(result, "\\", "\\\\");
88 glua::util::replace_all(result, "\"", "\\\"");
89 return result;
90 }
91
92 std::vector<std::string> &string_split(const std::string &s, char delim, std::vector<std::string> &elems)
93 {

Callers 1

Calls 1

replace_allFunction · 0.70

Tested by

no test coverage detected