| 1146 | } |
| 1147 | |
| 1148 | Param::ParamIterator Param::findFirst(const std::string& leaf) const |
| 1149 | { |
| 1150 | for (Param::ParamIterator it = this->begin(); it != this->end(); ++it) |
| 1151 | { |
| 1152 | std::string suffix = ":" + leaf; |
| 1153 | if (!(suffix.length() > it.getName().length()) && |
| 1154 | it.getName().compare(it.getName().length() - suffix.length(), suffix.length(), suffix) == 0) |
| 1155 | { |
| 1156 | return it; |
| 1157 | } |
| 1158 | } |
| 1159 | return this->end(); |
| 1160 | } |
| 1161 | |
| 1162 | Param::ParamIterator Param::findNext(const std::string& leaf, const ParamIterator& start_leaf) const |
| 1163 | { |
no test coverage detected