Mercurial > code
comparison cpp/options/options.hpp @ 661:a7ef5d868275
options: use token
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 16 Jul 2019 20:31:36 +0200 |
parents | 913c8ef054d3 |
children | c13e190b2a74 |
comparison
equal
deleted
inserted
replaced
660:913c8ef054d3 | 661:a7ef5d868275 |
---|---|
90 if (token.compare(0, 1, "-") != 0) { | 90 if (token.compare(0, 1, "-") != 0) { |
91 std::get<0>(result).push_back(std::string(token)); | 91 std::get<0>(result).push_back(std::string(token)); |
92 continue; | 92 continue; |
93 } | 93 } |
94 | 94 |
95 const auto sub = it->substr(1); | 95 const auto sub = token.substr(1); |
96 | 96 |
97 for (std::size_t i = 0U; i < sub.size(); ++i) { | 97 for (std::size_t i = 0U; i < sub.size(); ++i) { |
98 const auto idx = fmt.find(sub[i]); | 98 const auto idx = fmt.find(sub[i]); |
99 | 99 |
100 if (idx == std::string_view::npos) | 100 if (idx == std::string_view::npos) |