MCPcopy Create free account
hub / github.com/crawl/crawl / deescape

Function deescape

crawl-ref/source/stringutil.cc:506–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506string deescape(string s, const set<size_t> &escapes)
507{
508 for (auto i = escapes.rbegin(); i != escapes.rend(); ++i)
509 s.erase(*i, 1);
510 return s;
511}
512
513/// simply remove backslashes protecting any escaped characters. Intended for
514/// use after moret interesting escape processing has happened.

Callers

nothing calls this directly

Calls 2

find_escapesFunction · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected