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

Function find_escapes

crawl-ref/source/stringutil.cc:496–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496set<size_t> find_escapes(const string &s)
497{
498 set<size_t> ret;
499 size_t i = 0;
500 while ((i = s.find("\\", i)) != string::npos)
501 if (i < s.size())
502 ret.insert(++i);
503 return ret;
504}
505
506string deescape(string s, const set<size_t> &escapes)
507{

Callers 2

deescapeFunction · 0.85
split_stringFunction · 0.85

Calls 3

findMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected