Lines Matching defs:iterator
113 // Parse a potential multi-token flag. Moves the iterator to the last flag's
115 // The iterator is moved to the last parsed token.
117 bool parse_flag(Flag<T>& flag, bool is_short_flag, const char*** iterator) {
118 const std::string raw_flag(**iterator);
123 if ((*iterator)[1] == nullptr) {
127 // This is a bi-token flag. Moving iterator to the last parsed token.
128 raw_value = (*iterator)[1];
129 *iterator += 1;
131 // This is a mono-token flag, no need to move the iterator.
141 bool FlagList::parse_flag_info(FlagInfo& info, token_iterator_t* iterator) {
148 success = parse_bool_flag(item.get(), info.is_short, **iterator);
150 success = parse_flag(item.get(), info.is_short, iterator);
152 success = parse_flag(item.get(), info.is_short, iterator);