Lines Matching defs:cur
133 size_t cur = 0;
136 while (cur < fileName.size() && fileName[cur] == FILE_SEPARATOR_CHAR) {
137 cur++;
139 if (cur >= fileName.size()) {
142 auto next = fileName.find_first_of(FILE_SEPARATOR_CHAR, cur);
143 auto nodeName = fileName.substr(cur, next - cur);
152 cur = next;
153 } while (cur != std::string::npos);
242 size_t cur = 0;
245 while (cur < dir.size() && dir[cur] == FILE_SEPARATOR_CHAR) {
246 cur++;
248 if (cur >= dir.size()) {
251 auto next = dir.find_first_of(FILE_SEPARATOR_CHAR, cur);
252 auto nodeName = dir.substr(cur, next - cur);
258 cur = next;
259 } while (cur != std::string::npos);
286 size_t cur = 0;
289 while (cur < rootName.size() && rootName[cur] == FILE_SEPARATOR_CHAR) {
290 cur++;
292 if (cur >= rootName.size()) {
295 auto next = rootName.find_first_of(FILE_SEPARATOR_CHAR, cur);
296 auto nodeName = (next == std::string::npos) ? rootName.substr(cur) :
297 rootName.substr(cur, next - cur);
303 cur = next;
304 } while (cur != std::string::npos);
315 size_t cur = 0;
318 while (cur < srcPath.size() && srcPath[cur] == FILE_SEPARATOR_CHAR) {
319 cur++;
321 if (cur >= srcPath.size()) {
324 auto next = srcPath.find_first_of(FILE_SEPARATOR_CHAR, cur);
325 auto nodeName = srcPath.substr(cur, next - cur);
331 cur = next;
332 } while (cur != std::string::npos);