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

Function add_segment

crawl-ref/source/stringutil.cc:486–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486static void add_segment(vector<string> &segs, string s, bool trim,
487 bool accept_empty)
488{
489 if (trim && !s.empty())
490 trim_string(s);
491
492 if (accept_empty || !s.empty())
493 segs.push_back(s);
494}
495
496set<size_t> find_escapes(const string &s)
497{

Callers 1

split_stringFunction · 0.85

Calls 2

emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected