Lines Matching refs:substr
104 fortran_order = (header.substr(loc1, 4) == "True" ? true : false); in parse_npy_header()
116 std::string str_shape = header.substr(loc1 + 1, loc2 - loc1 - 1); in parse_npy_header()
132 std::string str_ws = header.substr(loc1 + 2); in parse_npy_header()
134 word_size = atoi(str_ws.substr(0, loc2).c_str()); in parse_npy_header()
135 if (header.substr(loc1 + 1, 1) == "i") { in parse_npy_header()
137 } else if (header.substr(loc1 + 1, 1) == "u") { in parse_npy_header()
139 } else if (header.substr(loc1 + 1, 1) == "f") { in parse_npy_header()
162 fortran_order = (header.substr(loc1, 4) == "True" ? true : false); in parse_npy_header()
176 std::string str_shape = header.substr(loc1 + 1, loc2 - loc1 - 1); in parse_npy_header()
195 std::string str_ws = header.substr(loc1 + 2); in parse_npy_header()
197 word_size = atoi(str_ws.substr(0, loc2).c_str()); in parse_npy_header()
198 if (header.substr(loc1 + 1, 1) == "i") { in parse_npy_header()
200 } else if (header.substr(loc1 + 1, 1) == "u") { in parse_npy_header()
202 } else if (header.substr(loc1 + 1, 1) == "f") { in parse_npy_header()