MCPcopy Create free account
hub / github.com/Kitware/CMake / sublist

Method sublist

Source/cmList.cxx:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28cm::string_view cmList::element_separator{ ";" };
29
30cmList cmList::sublist(size_type pos, size_type length) const
31{
32 if (pos >= this->Values.size()) {
33 throw std::out_of_range(cmStrCat(
34 "begin index: ", pos, " is out of range 0 - ", this->Values.size() - 1));
35 }
36
37 size_type count = (length == npos || pos + length > this->size())
38 ? this->size()
39 : pos + length;
40 return this->sublist(this->begin() + pos, this->begin() + count);
41}
42
43cmList::size_type cmList::find(cm::string_view value) const
44{

Callers 3

testAccessFunction · 0.45
HandleSublistCommandFunction · 0.45
EvaluateMethod · 0.45

Calls 3

sizeMethod · 0.95
beginMethod · 0.95
cmStrCatFunction · 0.70

Tested by 1

testAccessFunction · 0.36