Lines Matching refs:source_root
377 bool MakeAbsolutePathRelativeIfPossible(const base::StringPiece& source_root,
380 DCHECK(IsPathAbsolute(source_root));
385 if (source_root.size() > path.size())
392 DCHECK(source_root.size() > 2 && source_root[0] != '/' &&
393 source_root[1] == ':' && IsSlash(source_root[2]));
398 if (AreAbsoluteWindowsPathsEqual(source_root,
399 path.substr(0, source_root.size())))
400 after_common_index = source_root.size();
403 } else if (path[0] == '/' && source_root.size() <= path.size() - 1 &&
406 if (AreAbsoluteWindowsPathsEqual(source_root,
407 path.substr(1, source_root.size())))
408 after_common_index = source_root.size() + 1;
433 if (path.substr(0, source_root.size()) == source_root) {
436 size_t first_after_slash = source_root.size();
620 SourceDir SourceDirForPath(const base::FilePath& source_root,
623 GetPathComponents(source_root);
663 SourceDir SourceDirForCurrentDirectory(const base::FilePath& source_root) {
666 return SourceDirForPath(source_root, cd);