11template <
typename ITERATOR_TYPE >
12inline ::collection::count const_string_range < ITERATOR_TYPE > ::_count_parts_from_beginning(::collection::count cPathPartCountToConsume, CHARACTER chSeparator)
15 ::collection::index i = 0;
17 for(; i < cPathPartCountToConsume; i++)
20 auto p = string_find_character(this->m_begin, chSeparator);
29 this->m_begin = p + 1;
38template <
typename ITERATOR_TYPE >
39inline ::collection::count const_string_range < ITERATOR_TYPE > ::count_parts_from_beginning(::collection::count cPathPartCountToConsume, CHARACTER chSeparator)
42 if(cPathPartCountToConsume <= 0)
45 return cPathPartCountToConsume;
49 return this->_count_parts_from_beginning(cPathPartCountToConsume, chSeparator);