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

Method c_unescape

core/string/ustring.cpp:4716–4730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4714}
4715
4716String String::c_unescape() const {
4717 String escaped = *this;
4718 escaped = escaped.replace("\\a", "\a");
4719 escaped = escaped.replace("\\b", "\b");
4720 escaped = escaped.replace("\\f", "\f");
4721 escaped = escaped.replace("\\n", "\n");
4722 escaped = escaped.replace("\\r", "\r");
4723 escaped = escaped.replace("\\t", "\t");
4724 escaped = escaped.replace("\\v", "\v");
4725 escaped = escaped.replace("\\'", "\'");
4726 escaped = escaped.replace("\\\"", "\"");
4727 escaped = escaped.replace("\\\\", "\\");
4728
4729 return escaped;
4730}
4731
4732String String::c_escape() const {
4733 String escaped = *this;

Callers 6

_shapeMethod · 0.80
load_translationMethod · 0.80
importMethod · 0.80
test_string.hFile · 0.80

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected