Pakman
utils.h
Go to the documentation of this file.
1 #ifndef UTILS_H
2 #define UTILS_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
19 bool is_whitespace(const char letter);
20 
27 std::vector<std::string> parse_command_tokens(const std::string& raw_command);
28 
36 std::vector<std::string> parse_tokens(const std::string& str,
37  const std::string& delimiters = " ");
38 
50 std::map<std::string, std::string> parse_key_value_pairs(const std::string& str);
51 
52 #endif // UTILS_H
std::map< std::string, std::string > parse_key_value_pairs(const std::string &str)
Definition: utils.cc:209
bool is_whitespace(const char letter)
Definition: utils.cc:11
std::vector< std::string > parse_tokens(const std::string &str, const std::string &delimiters=" ")
Definition: utils.cc:190
std::vector< std::string > parse_command_tokens(const std::string &raw_command)
Definition: utils.cc:18