Lines Matching refs:loc1
100 size_t loc1, loc2; in parse_npy_header() local
103 loc1 = header.find("fortran_order") + 16; in parse_npy_header()
104 fortran_order = (header.substr(loc1, 4) == "True" ? true : false); in parse_npy_header()
109 loc1 = header.find("("); in parse_npy_header()
116 std::string str_shape = header.substr(loc1 + 1, loc2 - loc1 - 1); in parse_npy_header()
125 loc1 = header.find("descr") + 9; in parse_npy_header()
126 bool littleEndian = (header[loc1] == '<' || header[loc1] == '|' ? true : false); in parse_npy_header()
132 std::string str_ws = header.substr(loc1 + 2); 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()
155 size_t loc1, loc2; in parse_npy_header() local
158 loc1 = header.find("fortran_order"); in parse_npy_header()
159 if (loc1 == std::string::npos) in parse_npy_header()
161 loc1 += 16; in parse_npy_header()
162 fortran_order = (header.substr(loc1, 4) == "True" ? true : false); in parse_npy_header()
167 loc1 = header.find("("); in parse_npy_header()
169 if (loc1 == std::string::npos || loc2 == std::string::npos) in parse_npy_header()
176 std::string str_shape = header.substr(loc1 + 1, loc2 - loc1 - 1); in parse_npy_header()
185 loc1 = header.find("descr"); in parse_npy_header()
186 if (loc1 == std::string::npos) in parse_npy_header()
188 loc1 += 9; in parse_npy_header()
189 bool littleEndian = (header[loc1] == '<' || header[loc1] == '|' ? true : false); in parse_npy_header()
195 std::string str_ws = header.substr(loc1 + 2); 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()