MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_value_from_map

Function get_value_from_map

lite/example/cpp_example/npy.h:189–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189inline 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

Callers 1

parse_dictFunction · 0.70

Calls 1

trimFunction · 0.70

Tested by

no test coverage detected