25 references to IsDirectorySeparator
Microsoft.CodeAnalysis.InteractiveHost (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)
53
while (lastSeparator > 0 &&
IsDirectorySeparator
(s[lastSeparator - 1]))
167
if (
IsDirectorySeparator
(path[i]))
169
if (i > 0 &&
IsDirectorySeparator
(path[i - 1]))
235
if (length >= 1 &&
IsDirectorySeparator
(path[0]))
237
if (length < 2 || !
IsDirectorySeparator
(path[1]))
262
if (!
IsDirectorySeparator
(path[i]))
285
return length >= 3 &&
IsDirectorySeparator
(path[2])
298
while (i < length &&
IsDirectorySeparator
(path[i]))
309
return path.Length > 0 &&
IsDirectorySeparator
(path[0])
338
if (path.Length == 1 ||
IsDirectorySeparator
(path[1]))
345
if (path.Length == 2 ||
IsDirectorySeparator
(path[2]))
356
if (path.Length >= 1 &&
IsDirectorySeparator
(path[0]))
363
if (path.Length >= 2 && path[1] == VolumeSeparatorChar && (path.Length <= 2 || !
IsDirectorySeparator
(path[2])))
398
IsDirectorySeparator
(path[0]) &&
399
IsDirectorySeparator
(path[1]);
408
return path.Length >= 3 && path[1] == VolumeSeparatorChar &&
IsDirectorySeparator
(path[2]);
463
if (!
IsDirectorySeparator
(c) && c != VolumeSeparatorChar)
501
if (path.Length > 0 &&
IsDirectorySeparator
(path[path.Length - 1]))
633
&& (
IsDirectorySeparator
(parentPath[parentPath.Length - 1]) ||
IsDirectorySeparator
(childPath[parentPath.Length]));
696
if (
IsDirectorySeparator
(x) &&
IsDirectorySeparator
(y))
714
if (!
IsDirectorySeparator
(ch))