MCPcopy Index your code
hub / github.com/ycm-core/YouCompleteMe / ComparePaths

Function ComparePaths

python/ycm/vimsupport.py:611–619  ·  view source on GitHub ↗
( path1, path2 )

Source from the content-addressed store, hash-verified

609
610
611def ComparePaths( path1, path2 ):
612 # Assume that the file system is case-insensitive on Windows and macOS and
613 # case-sensitive on other platforms. While this is not necessarily true, being
614 # completely correct here is not worth the trouble as this assumption
615 # represents the overwhelming use case and detecting the case sensitivity of a
616 # file system is tricky.
617 if OnWindows() or OnMac():
618 return path1.lower() == path2.lower()
619 return path1 == path2
620
621
622# Both |line| and |column| need to be 1-based

Callers 1

TryJumpLocationInTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected