Parses the string representation of a Python str */
| 272 | Parses the string representation of a Python str |
| 273 | */ |
| 274 | inline std::string parse_str(const std::string& in) { |
| 275 | if ((in.front() == '\'') && (in.back() == '\'')) |
| 276 | return in.substr(1, in.length() - 2); |
| 277 | |
| 278 | fprintf(stderr, "Invalid python string."); |
| 279 | return ""; |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | Parses the string represenatation of a Python tuple into a vector of its items |
no test coverage detected