| 18 | } |
| 19 | |
| 20 | StringList ShellParser::tokenizeToStringList(String const& command) { |
| 21 | StringList res; |
| 22 | for (auto token : tokenize(command)) { |
| 23 | if (token.type == TokenType::Word) { |
| 24 | res.append(std::move(token.token)); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | return res; |
| 29 | } |
| 30 | |
| 31 | void ShellParser::init(String const& string) { |
| 32 | m_begin = string.begin(); |
no test coverage detected