| 187 | } |
| 188 | |
| 189 | inline std::string get_value_from_map(const std::string& mapstr) { |
| 190 | size_t sep_pos = mapstr.find_first_of(":"); |
| 191 | if (sep_pos == std::string::npos) |
| 192 | return ""; |
| 193 | |
| 194 | std::string tmp = mapstr.substr(sep_pos + 1); |
| 195 | return trim(tmp); |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | Parses the string representation of a Python dict |