MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / parse

Method parse

src/common/classes/ParsedList.cpp:39–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void ParsedList::parse(PathName list, const char* sep)
40{
41 list.alltrim(" \t");
42
43 for (;;)
44 {
45 PathName::size_type p = list.find_first_of(sep);
46 if (p == PathName::npos)
47 {
48 if (list.hasData())
49 {
50 this->push(list);
51 }
52 break;
53 }
54
55 this->push(list.substr(0, p));
56 list = list.substr(p + 1);
57 list.ltrim(sep);
58 }
59}
60
61ParsedList::ParsedList(const PathName& list, const char* delimiters)
62{

Callers

nothing calls this directly

Calls 6

alltrimMethod · 0.80
ltrimMethod · 0.80
find_first_ofMethod · 0.45
hasDataMethod · 0.45
pushMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected