Searched refs:path_separator (Results 1 – 8 of 8) sorted by relevance
17 int path_separator = static_cast<int>(strlen(exec_path)) - 1; in RelativePath() local18 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()
342 def __init__(self, path_separator=os.path.sep): argument348 self.path_separator = path_separator349 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_path471 path = self.path_separator472 elif not path.startswith(self.path_separator):474 path = self.path_separator.join([all …]
33 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
113 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 …]
34 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')199 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
66 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/')
194 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]
63 self.path_separator = os.sep74 path += self.path_separator75 name_list = path.split(self.path_separator)100 name_list = self.abspath(path).split(self.path_separator)