MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / c_escape_multiline

Method c_escape_multiline

core/string/ustring.cpp:4748–4754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4746}
4747
4748String String::c_escape_multiline() const {
4749 String escaped = *this;
4750 escaped = escaped.replace("\\", "\\\\");
4751 escaped = escaped.replace("\"", "\\\"");
4752
4753 return escaped;
4754}
4755
4756String String::json_escape() const {
4757 String escaped = *this;

Callers 3

import_sceneMethod · 0.80
writeMethod · 0.80

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected