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