Home
last modified time | relevance | path

Searched refs:path_separator (Results 1 – 8 of 8) sorted by relevance

/external/v8/src/base/
Dfile-utils.cc17 int path_separator = static_cast<int>(strlen(exec_path)) - 1; in RelativePath() local
18 while (path_separator >= 0 && in RelativePath()
19 !OS::isDirectorySeparator(exec_path[path_separator])) { in RelativePath()
20 path_separator--; in RelativePath()
22 if (path_separator >= 0) { in RelativePath()
25 reinterpret_cast<char*>(calloc(path_separator + name_length + 2, 1)); in RelativePath()
27 strncat(*buffer, exec_path, path_separator + 1); in RelativePath()
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem.py342 def __init__(self, path_separator=os.path.sep): argument
348 self.path_separator = path_separator
349 self.root = FakeDirectory(self.path_separator)
436 is_absolute_path = path.startswith(self.path_separator)
437 path_components = path.split(self.path_separator)
452 collapsed_path = self.path_separator.join(collapsed_path_components)
454 collapsed_path = self.path_separator + collapsed_path
471 path = self.path_separator
472 elif not path.startswith(self.path_separator):
474 path = self.path_separator.join(
[all …]
Dfake_filesystem_glob_test.py33 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
Dfake_filesystem_test.py113 filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
124 filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
151 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
183 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
209 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
216 self.assertEqual('/', self.filesystem.path_separator)
492 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
1655 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
1765 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
1800 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
[all …]
Dfake_filesystem_shutil_test.py34 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
199 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
Dfake_tempfile_test.py66 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
/external/skia/gn/
Dgn_to_cmake.py194 path_separator = FindFirstOf(gn_target_name, (':', '('))
198 if not path_separator:
201 location = gn_target_name[2:path_separator]
202 toolchain_separator = gn_target_name.find('(', path_separator)
204 name = gn_target_name[path_separator + 1:]
206 if toolchain_separator > path_separator:
207 name = gn_target_name[path_separator + 1:toolchain_separator]
/external/protobuf/gtest/test/
Drun_tests_util_test.py63 self.path_separator = os.sep
74 path += self.path_separator
75 name_list = path.split(self.path_separator)
100 name_list = self.abspath(path).split(self.path_separator)