aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-17 01:33:34 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-17 01:48:25 +0300
commit57ec762adf7121283cd1ce964b190ebfe7adb0ff (patch)
tree7d371119a55ab45e64d8885b50955b3233aa76e5 /include
parentFile: refactoring (diff)
downloadwinapi-common-57ec762adf7121283cd1ce964b190ebfe7adb0ff.tar.gz
winapi-common-57ec762adf7121283cd1ce964b190ebfe7adb0ff.zip
CommandLine: add MSDN test cases
Diffstat (limited to 'include')
-rw-r--r--include/winapi/cmd_line.hpp8
1 files changed, 8 insertions, 0 deletions
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<std::string>&& args = {})
: argv0(std::move(argv0)), args(std::move(args)) {}
+ CommandLine(const std::vector<std::string>& argv);
+
+ CommandLine(std::vector<std::string>&& argv);
+
static std::string escape(const std::string&);
static std::string escape_cmd(const std::string&);
@@ -43,6 +47,8 @@ public:
const std::vector<std::string>& get_args() const { return args; }
+ std::vector<std::string> get_argv() const;
+
private:
static BOOST_CONSTEXPR char token_sep() { return ' '; }
@@ -50,6 +56,8 @@ private:
std::vector<std::string> escape_args() const;
+ std::vector<std::string> escape_argv() const;
+
std::string argv0;
std::vector<std::string> args;
};