28 references to IsSlash
Microsoft.Build (1)
Instance\TaskRegistry.UsingTaskInfo.cs (1)
237return fileNameStart == 0 || FileUtilities.IsSlash(path[fileNameStart - 1]);
Microsoft.Build.Framework (27)
FileUtilities.cs (10)
189? IsSlash(fileSpec[fileSpec.Length - 1]) 212if (fileSpec.Length > 0 && !IsSlash(fileSpec[fileSpec.Length - 1])) 226if (path.Length > 0 && IsSlash(path[path.Length - 1])) 280if (IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 295if (string.IsNullOrEmpty(path.Value) || IsSlash(path.Value[path.Value.Length - 1])) 324if (!IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 492while (start < stop && IsSlash(path[start])) 496while (start < stop && IsSlash(path[stop - 1])) 510while (start < stop && IsSlash(path[start])) 515return 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])) 3664while (baseSpan.Length > 1 && FileUtilities.IsSlash(baseSpan[^1])) 3676|| (!FileUtilities.IsSlash(baseSpan[^1]) 3677&& (directory.Length <= baseSpan.Length || !FileUtilities.IsSlash(directory[baseSpan.Length])))) 3684while (relativeStart < directory.Length && FileUtilities.IsSlash(directory[relativeStart])) 3699while (projectDirectorySpan.Length > 1 && FileUtilities.IsSlash(projectDirectorySpan[^1])) 3717if (!FileUtilities.IsSlash(projectDirectorySpan[^1]) 3718&& !FileUtilities.IsSlash(lexicalEnumerationRoot[relativeStart])) 3724&& FileUtilities.IsSlash(lexicalEnumerationRoot[relativeStart])) 3740&& !FileUtilities.IsSlash(builder[builder.Length - 1]) 3741&& !FileUtilities.IsSlash(part[0]))