13std::map<std::string, std::string>
read_kv(std::string_view kv) {
14 std::map<std::string, std::string> m;
19 std::vector<std::string> parts;
23 }
catch(std::exception&) {
28 bool reading_key =
true;
33 if(c ==
'\\' && !escaped) {
35 }
else if(c ==
',' && !escaped) {
40 if(m.find(cur_key) != m.end()) {
47 }
else if(c ==
'=' && !escaped) {
48 if(reading_key ==
false) {
65 if(!cur_key.empty()) {
66 if(reading_key ==
false) {
67 if(m.find(cur_key) != m.end()) {