19 references to IsAnySlash
Microsoft.Build (2)
Evaluation\ItemSpec.cs (2)
524
&& FileUtilities.
IsAnySlash
(TextFragment[0])
527
&& FileUtilities.
IsAnySlash
(TextFragment[3]);
Microsoft.Build.Framework (17)
FileUtilities.cs (3)
656
return c == null ||
IsAnySlash
(c.Value);
791
bool isCurSlash =
IsAnySlash
(str[i]);
792
bool isPrevSlash = i > 0 &&
IsAnySlash
(str[i - 1]);
Utilities\FileMatcher.cs (14)
1357
bool isSurroundedBySlashes = (i == 0 || FileUtilities.
IsAnySlash
(str[i - 1]))
1358
&& i < str.Length - 2 && FileUtilities.
IsAnySlash
(str[i + 2]);
1494
else if (FileUtilities.
IsAnySlash
(ch))
1539
if (startIndex >= str.Length || !FileUtilities.
IsAnySlash
(str[startIndex]))
1548
bool isSeparator = i < str.Length - 1 && FileUtilities.
IsAnySlash
(str[i + 1]);
1549
bool isRelativeSeparator = i < str.Length - 2 && str[i + 1] == '.' && FileUtilities.
IsAnySlash
(str[i + 2]);
2291
FileUtilities.
IsAnySlash
(wildcard[2]) &&
2292
FileUtilities.
IsAnySlash
(wildcard[wildcardLength - 3]) &&
2463
if (!FileUtilities.
IsAnySlash
(directoryPart[i]))
2493
while (index < aString.Length && FileUtilities.
IsAnySlash
(aString[index]))
2586
&& (FileUtilities.
IsAnySlash
(spec[0]) || Path.IsPathRooted(spec));
2592
|| (!FileUtilities.
IsAnySlash
(directory[^1])
2632
fileSpec.Length > 0 && FileUtilities.
IsAnySlash
(fileSpec[^1]);
2638
&& (fileSpec.Length == 2 || !FileUtilities.
IsAnySlash
(fileSpec[2]));