MCPcopy Index your code
hub / github.com/nodejs/node / Split

Method Split

tools/cpplint.py:1826–1838  ·  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

1824 return fullname
1825
1826 def Split(self):
1827 """Splits the file into the directory, basename, and extension.
1828
1829 For 'chrome/browser/browser.cc', Split() would
1830 return ('chrome/browser', 'browser', '.cc')
1831
1832 Returns:
1833 A tuple of (directory, basename, extension).
1834 """
1835
1836 googlename = self.RepositoryName()
1837 project, rest = os.path.split(googlename)
1838 return (project,) + os.path.splitext(rest)
1839
1840 def BaseName(self):
1841 """File base name - text after the final slash, before the final period."""

Callers 3

BaseNameMethod · 0.95
ExtensionMethod · 0.95
NoExtensionMethod · 0.95

Calls 2

RepositoryNameMethod · 0.95
splitMethod · 0.45

Tested by

no test coverage detected