Lines Matching refs:cur
137 size_t cur = 0; in AddEntryToTree() local
140 while (cur < fileName.size() && fileName[cur] == FILE_SEPARATOR_CHAR) { in AddEntryToTree()
141 cur++; in AddEntryToTree()
143 if (cur >= fileName.size()) { in AddEntryToTree()
146 auto next = fileName.find_first_of(FILE_SEPARATOR_CHAR, cur); in AddEntryToTree()
147 auto nodeName = fileName.substr(cur, next - cur); in AddEntryToTree()
156 cur = next; in AddEntryToTree()
157 } while (cur != std::string::npos); in AddEntryToTree()
246 size_t cur = 0; in IsDirExist() local
249 while (cur < dir.size() && dir[cur] == FILE_SEPARATOR_CHAR) { in IsDirExist()
250 cur++; in IsDirExist()
252 if (cur >= dir.size()) { in IsDirExist()
255 auto next = dir.find_first_of(FILE_SEPARATOR_CHAR, cur); in IsDirExist()
256 auto nodeName = dir.substr(cur, next - cur); in IsDirExist()
262 cur = next; in IsDirExist()
263 } while (cur != std::string::npos); in IsDirExist()
290 size_t cur = 0; in GetAllFileList() local
293 while (cur < rootName.size() && rootName[cur] == FILE_SEPARATOR_CHAR) { in GetAllFileList()
294 cur++; in GetAllFileList()
296 if (cur >= rootName.size()) { in GetAllFileList()
299 auto next = rootName.find_first_of(FILE_SEPARATOR_CHAR, cur); in GetAllFileList()
300 auto nodeName = rootName.substr(cur, next - cur); in GetAllFileList()
306 cur = next; in GetAllFileList()
307 } while (cur != std::string::npos); in GetAllFileList()
318 size_t cur = 0; in GetChildNames() local
321 while (cur < srcPath.size() && srcPath[cur] == FILE_SEPARATOR_CHAR) { in GetChildNames()
322 cur++; in GetChildNames()
324 if (cur >= srcPath.size()) { in GetChildNames()
327 auto next = srcPath.find_first_of(FILE_SEPARATOR_CHAR, cur); in GetChildNames()
328 auto nodeName = srcPath.substr(cur, next - cur); in GetChildNames()
334 cur = next; in GetChildNames()
335 } while (cur != std::string::npos); in GetChildNames()