Home
last modified time | relevance | path

Searched refs:base_components (Results 1 – 2 of 2) sorted by relevance

/third_party/gn/src/gn/
Dfilesystem_utils.cc465 std::vector<base::FilePath::StringType> base_components; in MakeAbsoluteFilePathRelativeIfPossible() local
467 base.GetComponents(&base_components); in MakeAbsoluteFilePathRelativeIfPossible()
472 if (base_components[0] != target_components[0]) in MakeAbsoluteFilePathRelativeIfPossible()
478 target_components[1] = base_components[1]; in MakeAbsoluteFilePathRelativeIfPossible()
481 for (i = 0; i < base_components.size() && i < target_components.size(); i++) { in MakeAbsoluteFilePathRelativeIfPossible()
482 if (base_components[i] != target_components[i]) in MakeAbsoluteFilePathRelativeIfPossible()
486 for (size_t j = i; j < base_components.size(); j++) in MakeAbsoluteFilePathRelativeIfPossible()
/third_party/gn/src/base/files/
Dfile_util_posix.cc609 std::vector<FilePath::StringType> base_components; in VerifyPathControlledByUser() local
612 base.GetComponents(&base_components); in VerifyPathControlledByUser()
616 for (ib = base_components.begin(), ip = path_components.begin(); in VerifyPathControlledByUser()
617 ib != base_components.end(); ++ib, ++ip) { in VerifyPathControlledByUser()