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

Function parse_typestring

lite/test/npy.h:161–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159};
160
161inline void parse_typestring(std::string typestring) {
162 std::regex re("'([<>|])([ifuc])(\\d+)'");
163 std::smatch sm;
164
165 std::regex_match(typestring, sm, re);
166
167 if (sm.size() != 4) {
168 fprintf(stderr, "invalid typestring");
169 }
170}
171
172namespace pyparse {
173

Callers 1

parse_headerFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected