|
libzypp 17.37.0
|
A map of (key,value) strings. More...
#include <zypp-core/kvmap.h>
Public Member Functions | |
| KVMap () | |
| KVMap (const char *str_r) | |
| KVMap (const std::string &str_r) | |
| KVMap (const map_type &map_r) | |
| ~KVMap () | |
| std::string | asString () const |
Public Member Functions inherited from zypp::kvmap::KVMapBase | |
| KVMapBase () | |
| KVMapBase (const map_type &kvmap_r) | |
| bool | has (const std::string &key_r) const |
| Test whether key is set. | |
Additional Inherited Members | |
Public Types inherited from zypp::kvmap::KVMapBase | |
| using | map_type = std::map<std::string, std::string> |
| (key,value) map type | |
Static Public Member Functions inherited from zypp::kvmap::KVMapBase | |
| static map_type | split (const std::string &str_r, const KVMapPolicy &opts_r) |
| Split str_r into (key,value) map, using the separators defined by opts_r. | |
| static std::string | join (const map_type &kvmap_r, const KVMapPolicy &opts_r) |
| Join (key,value) map into string, using the separators defined by opts_r. | |
A map of (key,value) strings.
The template argument defines the kvmap::Options for split and join.
E.g. mount options (a comma separated list of key[=value] pairs) could be handled by KVMap<kvmap::KVMapBase::Comma>.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |