/third_party/python/Lib/test/ |
D | test_pathlib.py | 623 self.assertRaises(TypeError, p.relative_to) 624 self.assertRaises(TypeError, p.relative_to, b'a') 625 self.assertEqual(p.relative_to(P()), P('a/b')) 626 self.assertEqual(p.relative_to(''), P('a/b')) 627 self.assertEqual(p.relative_to(P('a')), P('b')) 628 self.assertEqual(p.relative_to('a'), P('b')) 629 self.assertEqual(p.relative_to('a/'), P('b')) 630 self.assertEqual(p.relative_to(P('a/b')), P()) 631 self.assertEqual(p.relative_to('a/b'), P()) 633 self.assertEqual(p.relative_to('a', 'b'), P()) [all …]
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
D | common.py | 139 def RelativePath(path, relative_to, follow_path_symlink=True): argument 153 relative_to = os.path.realpath(relative_to) 159 os.path.splitdrive(relative_to)[0].lower()): 164 relative_to_split = relative_to.split(os.path.sep) 196 def FixIfRelativePath(path, relative_to): argument 200 return RelativePath(path, relative_to) 203 def UnrelativePath(path, relative_to): argument 207 rel_dir = os.path.dirname(relative_to)
|
/third_party/node/tools/gyp/pylib/gyp/ |
D | common.py | 142 def RelativePath(path, relative_to, follow_path_symlink=True): argument 156 relative_to = os.path.realpath(relative_to) 163 != os.path.splitdrive(relative_to)[0].lower() 169 relative_to_split = relative_to.split(os.path.sep) 202 def FixIfRelativePath(path, relative_to): argument 206 return RelativePath(path, relative_to) 209 def UnrelativePath(path, relative_to): argument 213 rel_dir = os.path.dirname(relative_to)
|
/third_party/python/Lib/test/test_importlib/ |
D | update-zips.py | 34 root = pathlib.Path(__file__).parent.relative_to(os.getcwd()) 49 rel = res.relative_to(datapath)
|
/third_party/benchmark/ |
D | .ycm_extra_conf.py | 109 relative_to = DirectoryOfThisScript() 110 final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
|
/third_party/ninja/src/ |
D | includes_normalize_test.cc | 43 const string& relative_to) { in NormalizeRelativeAndCheckNoError() argument 45 IncludesNormalize normalizer(relative_to); in NormalizeRelativeAndCheckNoError()
|
D | includes_normalize-win32.cc | 127 IncludesNormalize::IncludesNormalize(const string& relative_to) { in IncludesNormalize() argument 129 relative_to_ = AbsPath(relative_to, &err); in IncludesNormalize()
|
D | includes_normalize.h | 25 IncludesNormalize(const string& relative_to);
|
/third_party/boost/tools/inspect/ |
D | inspector.hpp | 92 inline string relative_to( const path & src_arg, const path & base_arg ) in relative_to() function
|
D | path_name_check.cpp | 85 path const relative_path( relative_to( full_path, search_root_path() ) ); in inspect()
|
D | apple_macro_check.cpp | 67 path relative( relative_to( full_path, search_root_path() ) ); in inspect()
|
D | link_check.cpp | 126 m_paths[ relative_to( full_path, search_root_path() ) ] |= m_present; in inspect() 137 m_paths[ relative_to( full_path, search_root_path() ) ] |= m_nounlinked_errors; in inspect() 441 relative_to( target_path, search_root_path() ), 0 ); in do_url()
|
D | assert_macro_check.cpp | 73 path relative( relative_to( full_path, search_root_path() ) ); in inspect()
|
D | inspect.cpp | 139 string local( boost::inspect::relative_to( pth, search_root_path() ) ); in visit_predicate() 628 err_msg.rel_path = relative_to( full_path, search_root_path() ); in error() 699 path relative( relative_to( full_dir_path, search_root_path() ) ); in impute_library()
|
/third_party/protobuf/python/docs/ |
D | generate_docs.py | 135 package_path = module_path.parent.relative_to(PYTHON_DIR)
|
/third_party/python/PC/layout/support/ |
D | filesets.py | 85 (f.relative_to(root), f)
|
/third_party/glib/glib/ |
D | gfileutils.h | 217 const gchar *relative_to) G_GNUC_MALLOC;
|
D | gfileutils.c | 2744 const gchar *relative_to) in g_canonicalize_filename() argument 2749 g_return_val_if_fail (relative_to == NULL || g_path_is_absolute (relative_to), NULL); in g_canonicalize_filename() 2756 if (relative_to != NULL) in g_canonicalize_filename() 2757 cwd = relative_to; in g_canonicalize_filename()
|
/third_party/gn/src/gn/ |
D | substitution_writer.h | 173 const SourceDir& relative_to);
|
D | substitution_writer.cc | 350 const SourceDir& relative_to) { in GetSourceSubstitution() argument 397 return RebasePath(to_rebase, relative_to, in GetSourceSubstitution()
|
/third_party/python/Lib/ |
D | zipapp.py | 140 arcname = child.relative_to(source)
|
D | pathlib.py | 789 def relative_to(self, *other): member in PurePath 826 self.relative_to(*other)
|
/third_party/python/Doc/library/ |
D | pathlib.rst | 541 .. method:: PurePath.relative_to(*other) 547 >>> p.relative_to('/') 549 >>> p.relative_to('/etc') 551 >>> p.relative_to('/usr') 554 File "pathlib.py", line 694, in relative_to 1243 :func:`os.path.relpath` and :meth:`PurePath.relative_to`. 1267 :func:`os.path.relpath` :meth:`Path.relative_to` [#]_ 1282 .. [#] :meth:`Path.relative_to` requires ``self`` to be the subpath of the argument, but :func:`os.…
|
/third_party/skia/third_party/externals/angle2/tools/android/modularization/convenience/ |
D | lookup_dep.py | 266 cache_path = (abs_build_output_dir / 'gen' / cache_path.relative_to(_SRC_DIR))
|
/third_party/python/PC/layout/ |
D | main.py | 461 cdest = Path(dest).parent / Path(c).relative_to(src.parent)
|