|
Pakman
|
#include <string>#include <vector>#include <map>

Go to the source code of this file.
Functions | |
| bool | is_whitespace (const char letter) |
| std::vector< std::string > | parse_command_tokens (const std::string &raw_command) |
| std::vector< std::string > | parse_tokens (const std::string &str, const std::string &delimiters=" ") |
| std::map< std::string, std::string > | parse_key_value_pairs (const std::string &str) |
Utility functions.
Definition in file utils.h.
| bool is_whitespace | ( | const char | letter | ) |
| std::vector<std::string> parse_command_tokens | ( | const std::string & | raw_command | ) |
| std::map<std::string, std::string> parse_key_value_pairs | ( | const std::string & | str | ) |
Splits string into key value pairs.
The raw string must contain key value pairs in the format key1=value1; key2=value2; ...; keyn=valuen. The characters = and ; may be escaped with the backslash (\) if it appears in the key or the value string.
| str | raw string. |