Home | History | Annotate | Download | only in gn

Lines Matching refs:source_root

351 bool MakeAbsolutePathRelativeIfPossible(const base::StringPiece& source_root,
354 DCHECK(IsPathAbsolute(source_root));
359 if (source_root.size() > path.size())
366 DCHECK(source_root.size() > 2 && source_root[0] != '/' &&
367 source_root[1] == ':' && IsSlash(source_root[2]));
372 if (AreAbsoluteWindowsPathsEqual(source_root,
373 path.substr(0, source_root.size())))
374 after_common_index = source_root.size();
377 } else if (path[0] == '/' && source_root.size() <= path.size() - 1 &&
380 if (AreAbsoluteWindowsPathsEqual(source_root,
381 path.substr(1, source_root.size())))
382 after_common_index = source_root.size() + 1;
407 if (path.substr(0, source_root.size()) == source_root) {
410 size_t first_after_slash = source_root.size();
594 SourceDir SourceDirForPath(const base::FilePath& source_root,
597 GetPathComponents(source_root);
637 SourceDir SourceDirForCurrentDirectory(const base::FilePath& source_root) {
640 return SourceDirForPath(source_root, cd);