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)
163? IsSlash(fileSpec[fileSpec.Length - 1]) 186if (fileSpec.Length > 0 && !IsSlash(fileSpec[fileSpec.Length - 1])) 200if (path.Length > 0 && IsSlash(path[path.Length - 1])) 254if (IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 269if (string.IsNullOrEmpty(path.Value) || IsSlash(path.Value[path.Value.Length - 1])) 298if (!IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 466while (start < stop && IsSlash(path[start])) 470while (start < stop && IsSlash(path[stop - 1])) 484while (start < stop && IsSlash(path[start])) 489return 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)
2576&& (FileUtilities.IsSlash(possibleParent[^1]) 2577|| FileUtilities.IsSlash(possibleChild[possibleParent.Length])); 2985while (baseSpan.Length > 1 && FileUtilities.IsSlash(baseSpan[^1])) 2999|| !FileUtilities.IsSlash(directorySpan[baseSpan.Length])) 3006while (relativeStart < directorySpan.Length && FileUtilities.IsSlash(directorySpan[relativeStart])) 3289while (baseSpan.Length > 1 && FileUtilities.IsSlash(baseSpan[^1])) 3301|| (!FileUtilities.IsSlash(baseSpan[^1]) 3302&& (directory.Length <= baseSpan.Length || !FileUtilities.IsSlash(directory[baseSpan.Length])))) 3309while (relativeStart < directory.Length && FileUtilities.IsSlash(directory[relativeStart])) 3324while (projectDirectorySpan.Length > 1 && FileUtilities.IsSlash(projectDirectorySpan[^1])) 3342if (!FileUtilities.IsSlash(projectDirectorySpan[^1]) 3343&& !FileUtilities.IsSlash(lexicalEnumerationRoot[relativeStart])) 3349&& FileUtilities.IsSlash(lexicalEnumerationRoot[relativeStart])) 3365&& !FileUtilities.IsSlash(builder[builder.Length - 1]) 3366&& !FileUtilities.IsSlash(part[0]))