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

Function get_value_from_map

include/libnpy/npy.hpp:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206
207inline 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

Callers 1

parse_dictFunction · 0.85

Calls 1

trimFunction · 0.70

Tested by

no test coverage detected