| 28 | cm::string_view cmList::element_separator{ ";" }; |
| 29 | |
| 30 | cmList 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 | |
| 43 | cmList::size_type cmList::find(cm::string_view value) const |
| 44 | { |