MCPcopy Index your code
hub / github.com/cpplint/cpplint / Split

Method Split

cpplint.py:1781–1793  ·  view source on GitHub ↗

Splits the file into the directory, basename, and extension. For 'chrome/browser/browser.cc', Split() would return ('chrome/browser', 'browser', '.cc') Returns: A tuple of (directory, basename, extension).

(self)

Source from the content-addressed store, hash-verified

1779 return fullname
1780
1781 def Split(self):
1782 """Splits the file into the directory, basename, and extension.
1783
1784 For 'chrome/browser/browser.cc', Split() would
1785 return ('chrome/browser', 'browser', '.cc')
1786
1787 Returns:
1788 A tuple of (directory, basename, extension).
1789 """
1790
1791 googlename = self.RepositoryName()
1792 project, rest = os.path.split(googlename)
1793 return (project,) + os.path.splitext(rest)
1794
1795 def BaseName(self):
1796 """File base name - text after the final slash, before the final period."""

Callers 3

BaseNameMethod · 0.95
ExtensionMethod · 0.95
NoExtensionMethod · 0.95

Calls 1

RepositoryNameMethod · 0.95

Tested by

no test coverage detected