MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / unescape

Function unescape

core/stringconversion.cpp:108–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106
107}
108void unescape(std::string &str, char toUnescape)
109{
110
111 size_t pos;
112 std::string escaped = escapeCharacter(toUnescape);
113 while ((pos = str.find(escaped)) != std::string::npos)
114 {
115 str = str.replace(pos, escaped.size(), std::string(1, toUnescape));
116 }
117
118}
119}

Callers 1

escapeFunction · 0.85

Calls 2

escapeCharacterFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected