Lines Matching +defs:name +defs:pos
188 Path::FindLibrary(std::string& name) {
193 FullPath.appendComponent("lib" + name + LTDL_SHLIB_EXT);
259 signed pos = static_cast<signed>(path.size()) - 1;
261 while (pos >= 0 && path[pos] == Sep[0])
262 --pos;
264 if (pos < 0)
270 while (i < pos && path[i] != Sep[0])
273 if (i == pos) // No slashes? Return "."
277 while (pos >= 0 && path[pos] != Sep[0])
278 --pos;
281 while (pos >= 0 && path[pos] == Sep[0])
282 --pos;
284 if (pos < 0)
287 return path.substr(0, pos+1);