Lines Matching refs:end_index_
157 const T* array_, unsigned int start_index_, unsigned int end_index_,
161 // Ensure end_index_ >= start_index_ + 1
162 if(end_index_ <= start_index_)
164 throw("Invalid index range: start_index = " + (String)start_index_ + ", end_index = " + (String)end_index_);
168 for(unsigned int i = start_index_; i < (end_index_-1); ++i)
172 ret += (String)array_[end_index_-1] + "]";
181 template<class T> String arrayToString(const T* array_, unsigned int start_index_, unsigned int end_index_)
183 return arrayToString(array_, start_index_, end_index_);
187 const vector<T>& vector_, unsigned int start_index_, unsigned int end_index_,
191 // Ensure end_index_ >= start_index_ + 1, or if the vector is empty
192 if((end_index_ <= start_index_) || (end_index_ > vector_.size()))
198 throw("Invalid index range: start_index = " + (String)start_index_ + ", end_index = " + (String)end_index_);
202 for(unsigned int i = start_index_; i < (end_index_-1); ++i)
206 ret += (String)vector_[end_index_-1] + "]";
220 template<class T> String vectorToString(const vector<T>& vector_, unsigned int start_index_, unsigned int end_index_)
222 return vectorToString(vector_, start_index_, end_index_);