* Determines whether `fileName` starts with the specified `directoryName` using the provided path canonicalization callback. * Comparison is case-sensitive between the canonical paths. * * Use `containsPath` if file names are not already reduced and absolute.
(fileName, directoryName, getCanonicalFileName)
| 8143 | * Use `containsPath` if file names are not already reduced and absolute. |
| 8144 | */ |
| 8145 | function startsWithDirectory(fileName, directoryName, getCanonicalFileName) { |
| 8146 | var canonicalFileName = getCanonicalFileName(fileName); |
| 8147 | var canonicalDirectoryName = getCanonicalFileName(directoryName); |
| 8148 | return ts.startsWith(canonicalFileName, canonicalDirectoryName + "/") || ts.startsWith(canonicalFileName, canonicalDirectoryName + "\\"); |
| 8149 | } |
| 8150 | ts.startsWithDirectory = startsWithDirectory; |
| 8151 | //// Relative Paths |
| 8152 | function getPathComponentsRelativeTo(from, to, stringEqualityComparer, getCanonicalFileName) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…