25 references to IsDirectorySeparator
Microsoft.CodeAnalysis.BannedApiAnalyzers (25)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
174
Debug.Assert(PathUtilities.
IsDirectorySeparator
(path![0]));
175
Debug.Assert(path.Length == 1 || !PathUtilities.
IsDirectorySeparator
(path[1]));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (23)
56
while (lastSeparator > 0 &&
IsDirectorySeparator
(s[lastSeparator - 1]))
170
if (
IsDirectorySeparator
(path[i]))
172
if (i > 0 &&
IsDirectorySeparator
(path[i - 1]))
238
if (length >= 1 &&
IsDirectorySeparator
(path[0]))
240
if (length < 2 || !
IsDirectorySeparator
(path[1]))
265
if (!
IsDirectorySeparator
(path[i]))
288
return length >= 3 &&
IsDirectorySeparator
(path[2])
301
while (i < length &&
IsDirectorySeparator
(path[i]))
312
return path.Length > 0 &&
IsDirectorySeparator
(path[0])
341
if (path.Length == 1 ||
IsDirectorySeparator
(path[1]))
348
if (path.Length == 2 ||
IsDirectorySeparator
(path[2]))
359
if (path.Length >= 1 &&
IsDirectorySeparator
(path[0]))
366
if (path.Length >= 2 && path[1] == VolumeSeparatorChar && (path.Length <= 2 || !
IsDirectorySeparator
(path[2])))
401
IsDirectorySeparator
(path[0]) &&
402
IsDirectorySeparator
(path[1]);
411
return path.Length >= 3 && path[1] == VolumeSeparatorChar &&
IsDirectorySeparator
(path[2]);
466
if (!
IsDirectorySeparator
(c) && c != VolumeSeparatorChar)
504
if (path.Length > 0 &&
IsDirectorySeparator
(path[path.Length - 1]))
636
&& (
IsDirectorySeparator
(parentPath[parentPath.Length - 1]) ||
IsDirectorySeparator
(childPath[parentPath.Length]));
699
if (
IsDirectorySeparator
(x) &&
IsDirectorySeparator
(y))
717
if (!
IsDirectorySeparator
(ch))