Lines Matching refs:Pos
92 size_t Pos = Path.find_last_of("/\\"); in Basename() local
93 if (Pos == std::string::npos) return Path; in Basename()
94 assert(Pos < Path.size()); in Basename()
95 return Path.substr(Pos + 1); in Basename()
263 size_t Pos = Offset; in ParseFileName() local
265 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName()
267 return Pos - Offset; in ParseFileName()
273 size_t Pos = Offset; in ParseDir() local
275 if (Pos >= End || IsSeparator(FileName[Pos])) in ParseDir()
277 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseDir()
279 if (Pos >= End) in ParseDir()
281 ++Pos; // Include separator. in ParseDir()
282 return Pos - Offset; in ParseDir()
289 size_t Pos = Offset, Res; in ParseServerAndShare() local
290 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
292 Pos += Res; in ParseServerAndShare()
293 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
295 Pos += Res; in ParseServerAndShare()
296 return Pos - Offset; in ParseServerAndShare()
313 size_t Pos = 0, Res; in ParseLocation() local
315 if ((Res = ParseCustomString(FileName, Pos, R"(\\?\)"))) { in ParseLocation()
316 Pos += Res; in ParseLocation()
317 if ((Res = ParseCustomString(FileName, Pos, R"(UNC\)"))) { in ParseLocation()
318 Pos += Res; in ParseLocation()
319 if ((Res = ParseServerAndShare(FileName, Pos))) in ParseLocation()
320 return Pos + Res; in ParseLocation()
323 if ((Res = ParseDrive(FileName, Pos, false))) in ParseLocation()
324 return Pos + Res; in ParseLocation()
328 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation()
329 ++Pos; in ParseLocation()
330 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation()
331 ++Pos; in ParseLocation()
332 if ((Res = ParseServerAndShare(FileName, Pos))) in ParseLocation()
333 return Pos + Res; in ParseLocation()
336 return Pos; in ParseLocation()
339 if ((Res = ParseDrive(FileName, Pos))) in ParseLocation()
340 return Pos + Res; in ParseLocation()
342 return Pos; in ParseLocation()