| 205 | |
| 206 | |
| 207 | inline std::string get_value_from_map(const std::string &mapstr) { |
| 208 | size_t sep_pos = mapstr.find_first_of(":"); |
| 209 | if (sep_pos == std::string::npos) |
| 210 | return ""; |
| 211 | |
| 212 | std::string tmp = mapstr.substr(sep_pos + 1); |
| 213 | return trim(tmp); |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | Parses the string representation of a Python dict |