MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / parse_str

Function parse_str

include/libnpy/npy.hpp:288–293  ·  view source on GitHub ↗

Parses the string representation of a Python str */

Source from the content-addressed store, hash-verified

286 Parses the string representation of a Python str
287 */
288inline std::string parse_str(const std::string &in) {
289 if ((in.front() == '\'') && (in.back() == '\''))
290 return in.substr(1, in.length() - 2);
291
292 throw std::runtime_error("Invalid python string.");
293}
294
295/**
296 Parses the string represenatation of a Python tuple into a vector of its items

Callers 1

parse_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected