From 57ec762adf7121283cd1ce964b190ebfe7adb0ff Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 17 Oct 2020 01:33:34 +0300 Subject: CommandLine: add MSDN test cases --- include/winapi/cmd_line.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/winapi') diff --git a/include/winapi/cmd_line.hpp b/include/winapi/cmd_line.hpp index 176cf3d..c6e8c65 100644 --- a/include/winapi/cmd_line.hpp +++ b/include/winapi/cmd_line.hpp @@ -29,6 +29,10 @@ public: CommandLine(std::string&& argv0, std::vector&& args = {}) : argv0(std::move(argv0)), args(std::move(args)) {} + CommandLine(const std::vector& argv); + + CommandLine(std::vector&& argv); + static std::string escape(const std::string&); static std::string escape_cmd(const std::string&); @@ -43,6 +47,8 @@ public: const std::vector& get_args() const { return args; } + std::vector get_argv() const; + private: static BOOST_CONSTEXPR char token_sep() { return ' '; } @@ -50,6 +56,8 @@ private: std::vector escape_args() const; + std::vector escape_argv() const; + std::string argv0; std::vector args; }; -- cgit v1.2.3