MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / intern_arghelper_integer_range

Function intern_arghelper_integer_range

src/ovpn3cli/arghelpers.cpp:206–214  ·  view source on GitHub ↗

* Generates a list of integers, based on the given start and end values * * @param start Start number of the range * @param end End number of the range * * @return std::string with all the numbers on a single line */

Source from the content-addressed store, hash-verified

204 * @return std::string with all the numbers on a single line
205 */
206static std::string intern_arghelper_integer_range(int start, int end)
207{
208 std::stringstream out;
209 for (int i = start; i <= end; i++)
210 {
211 out << std::to_string(i) << " ";
212 }
213 return out.str();
214}
215
216
217/**

Callers 1

arghelper_log_levelsFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected