19 #include <uuid/console.h>
29 bool string_escape_double =
false;
30 bool string_escape_single =
false;
31 bool char_escape =
false;
32 bool quoted_argument =
false;
41 if (string_escape_double || string_escape_single) {
47 }
else if (char_escape) {
53 if (quoted_argument || !
parameters_.back().empty()) {
56 quoted_argument =
false;
61 if (char_escape || string_escape_single) {
65 string_escape_double = !string_escape_double;
66 quoted_argument =
true;
71 if (char_escape || string_escape_double) {
75 string_escape_single = !string_escape_single;
76 quoted_argument =
true;
108 for (
auto &argument : arguments) {
117 line.reserve(reserve);
130 for (
char c : item) {