26 references to IsSlash
Microsoft.Build.Framework (26)
FileUtilities.cs (9)
189? IsSlash(fileSpec[fileSpec.Length - 1]) 211if (fileSpec.Length > 0 && !IsSlash(fileSpec[fileSpec.Length - 1])) 225if (path.Length > 0 && IsSlash(path[path.Length - 1])) 279if (IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 307if (!IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 475while (start < stop && IsSlash(path[start])) 479while (start < stop && IsSlash(path[stop - 1])) 493while (start < stop && IsSlash(path[start])) 498return FixFilePath(start < stop && IsSlash(path[stop - 1]) ?
ItemSpecModifiers.cs (2)
581(directory.Length > length) && FileUtilities.IsSlash(directory[length]), 591!string.IsNullOrEmpty(directory) && FileUtilities.IsSlash(directory[0]),
Utilities\FileMatcher.cs (15)
2976&& (FileUtilities.IsSlash(possibleParent[^1]) 2977|| FileUtilities.IsSlash(possibleChild[possibleParent.Length])); 3385while (baseSpan.Length > 1 && FileUtilities.IsSlash(baseSpan[^1])) 3399|| !FileUtilities.IsSlash(directorySpan[baseSpan.Length])) 3406while (relativeStart < directorySpan.Length && FileUtilities.IsSlash(directorySpan[relativeStart])) 3651while (baseSpan.Length > 1 && FileUtilities.IsSlash(baseSpan[^1])) 3663|| (!FileUtilities.IsSlash(baseSpan[^1]) 3664&& (directory.Length <= baseSpan.Length || !FileUtilities.IsSlash(directory[baseSpan.Length])))) 3671while (relativeStart < directory.Length && FileUtilities.IsSlash(directory[relativeStart])) 3686while (projectDirectorySpan.Length > 1 && FileUtilities.IsSlash(projectDirectorySpan[^1])) 3704if (!FileUtilities.IsSlash(projectDirectorySpan[^1]) 3705&& !FileUtilities.IsSlash(lexicalEnumerationRoot[relativeStart])) 3711&& FileUtilities.IsSlash(lexicalEnumerationRoot[relativeStart])) 3727&& !FileUtilities.IsSlash(builder[builder.Length - 1]) 3728&& !FileUtilities.IsSlash(part[0]))