25 references to IsDirectorySeparator
Microsoft.CodeAnalysis.InteractiveHost (25)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (2)
173
Debug.Assert(PathUtilities.
IsDirectorySeparator
(path![0]));
174
Debug.Assert(path.Length == 1 || !PathUtilities.
IsDirectorySeparator
(path[1]));
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (23)
53
while (lastSeparator > 0 &&
IsDirectorySeparator
(s[lastSeparator - 1]))
145
if (
IsDirectorySeparator
(path[i]))
147
if (i > 0 &&
IsDirectorySeparator
(path[i - 1]))
213
if (length >= 1 &&
IsDirectorySeparator
(path[0]))
215
if (length < 2 || !
IsDirectorySeparator
(path[1]))
240
if (!
IsDirectorySeparator
(path[i]))
263
return length >= 3 &&
IsDirectorySeparator
(path[2])
276
while (i < length &&
IsDirectorySeparator
(path[i]))
287
return path.Length > 0 &&
IsDirectorySeparator
(path[0])
316
if (path.Length == 1 ||
IsDirectorySeparator
(path[1]))
323
if (path.Length == 2 ||
IsDirectorySeparator
(path[2]))
334
if (path.Length >= 1 &&
IsDirectorySeparator
(path[0]))
341
if (path.Length >= 2 && path[1] == VolumeSeparatorChar && (path.Length <= 2 || !
IsDirectorySeparator
(path[2])))
376
IsDirectorySeparator
(path[0]) &&
377
IsDirectorySeparator
(path[1]);
386
return path.Length >= 3 && path[1] == VolumeSeparatorChar &&
IsDirectorySeparator
(path[2]);
441
if (!
IsDirectorySeparator
(c) && c != VolumeSeparatorChar)
479
if (path.Length > 0 &&
IsDirectorySeparator
(path[path.Length - 1]))
611
&& (
IsDirectorySeparator
(parentPath[parentPath.Length - 1]) ||
IsDirectorySeparator
(childPath[parentPath.Length]));
674
if (
IsDirectorySeparator
(x) &&
IsDirectorySeparator
(y))
692
if (!
IsDirectorySeparator
(ch))