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()
264 size_t Pos = Offset; in ParseFileName() local
266 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName()
268 return Pos - Offset; in ParseFileName()
274 size_t Pos = Offset; in ParseDir() local
276 if (Pos >= End || IsSeparator(FileName[Pos])) in ParseDir()
278 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseDir()
280 if (Pos >= End) in ParseDir()
282 ++Pos; // Include separator. in ParseDir()
283 return Pos - Offset; in ParseDir()
290 size_t Pos = Offset, Res; in ParseServerAndShare() local
291 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
293 Pos += Res; in ParseServerAndShare()
294 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
296 Pos += Res; in ParseServerAndShare()
297 return Pos - Offset; in ParseServerAndShare()
315 size_t Pos = 0, Res; in ParseLocation() local
317 if ((Res = ParseCustomString(FileName, Pos, R"(\\?\)"))) { in ParseLocation()
318 Pos += Res; in ParseLocation()
319 if ((Res = ParseCustomString(FileName, Pos, R"(UNC\)"))) { in ParseLocation()
320 Pos += Res; in ParseLocation()
321 if ((Res = ParseServerAndShare(FileName, Pos))) in ParseLocation()
322 return Pos + Res; in ParseLocation()
325 if ((Res = ParseDrive(FileName, Pos, false))) in ParseLocation()
326 return Pos + Res; in ParseLocation()
330 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation()
331 ++Pos; in ParseLocation()
332 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation()
333 ++Pos; in ParseLocation()
334 if ((Res = ParseServerAndShare(FileName, Pos))) in ParseLocation()
335 return Pos + Res; in ParseLocation()
338 return Pos; in ParseLocation()
341 if ((Res = ParseDrive(FileName, Pos))) in ParseLocation()
342 return Pos + Res; in ParseLocation()
344 return Pos; in ParseLocation()