Lines Matching refs:Pos
76 size_t Pos = Path.find_last_of("/\\"); in Basename() local
77 if (Pos == std::string::npos) return Path; in Basename()
78 assert(Pos < Path.size()); in Basename()
79 return Path.substr(Pos + 1); in Basename()
198 size_t Pos = Offset; in ParseFileName() local
200 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseFileName()
202 return Pos - Offset; in ParseFileName()
208 size_t Pos = Offset; in ParseDir() local
210 if (Pos >= End || IsSeparator(FileName[Pos])) in ParseDir()
212 for(; Pos < End && !IsSeparator(FileName[Pos]); ++Pos) in ParseDir()
214 if (Pos >= End) in ParseDir()
216 ++Pos; // Include separator. in ParseDir()
217 return Pos - Offset; in ParseDir()
224 size_t Pos = Offset, Res; in ParseServerAndShare() local
225 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
227 Pos += Res; in ParseServerAndShare()
228 if (!(Res = ParseDir(FileName, Pos))) in ParseServerAndShare()
230 Pos += Res; in ParseServerAndShare()
231 return Pos - Offset; in ParseServerAndShare()
249 size_t Pos = 0, Res; in ParseLocation() local
251 if ((Res = ParseCustomString(FileName, Pos, R"(\\?\)"))) { in ParseLocation()
252 Pos += Res; in ParseLocation()
253 if ((Res = ParseCustomString(FileName, Pos, R"(UNC\)"))) { in ParseLocation()
254 Pos += Res; in ParseLocation()
255 if ((Res = ParseServerAndShare(FileName, Pos))) in ParseLocation()
256 return Pos + Res; in ParseLocation()
259 if ((Res = ParseDrive(FileName, Pos, false))) in ParseLocation()
260 return Pos + Res; in ParseLocation()
264 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation()
265 ++Pos; in ParseLocation()
266 if (Pos < FileName.size() && IsSeparator(FileName[Pos])) { in ParseLocation()
267 ++Pos; in ParseLocation()
268 if ((Res = ParseServerAndShare(FileName, Pos))) in ParseLocation()
269 return Pos + Res; in ParseLocation()
272 return Pos; in ParseLocation()
275 if ((Res = ParseDrive(FileName, Pos))) in ParseLocation()
276 return Pos + Res; in ParseLocation()
278 return Pos; in ParseLocation()