C# 클래스 SonarLint.VisualStudio.Integration.PathHelper

파일 보기 프로젝트 열기: SonarSource-VisualStudio/sonarlint-visualstudio

공개 메소드들

메소드 설명
CalculateRelativePath ( string fromFullPath, string toFullPath ) : string

Compute the path of toFullPath, relative to fromFullPath.

EscapeFileName ( string unescapedName ) : string

Replace all invalid file path characters with the underscore ("_").

ForceDirectoryEnding ( string str ) : string

Append a Path.DirectorySeparatorChar to the end of the string if one does not already exist.

IsPathRootedUnderRoot ( string path, string rootDirectory ) : bool

Gets whether or not the given path has exists under the given rootDirectory.

ResolveRelativePath ( string relativePath, string resolutionRootFullPath ) : string

Resolve a relative path against the given root path.

비공개 메소드들

메소드 설명
ToFilePathString ( Uri uri ) : string

메소드 상세

CalculateRelativePath() 공개 정적인 메소드

Compute the path of toFullPath, relative to fromFullPath.
public static CalculateRelativePath ( string fromFullPath, string toFullPath ) : string
fromFullPath string Path with which to make relative to
toFullPath string Absolute path
리턴 string

EscapeFileName() 공개 정적인 메소드

Replace all invalid file path characters with the underscore ("_").
public static EscapeFileName ( string unescapedName ) : string
unescapedName string
리턴 string

ForceDirectoryEnding() 공개 정적인 메소드

Append a Path.DirectorySeparatorChar to the end of the string if one does not already exist.
public static ForceDirectoryEnding ( string str ) : string
str string
리턴 string

IsPathRootedUnderRoot() 공개 정적인 메소드

Gets whether or not the given path has exists under the given rootDirectory.
public static IsPathRootedUnderRoot ( string path, string rootDirectory ) : bool
path string
rootDirectory string
리턴 bool

ResolveRelativePath() 공개 정적인 메소드

Resolve a relative path against the given root path.
public static ResolveRelativePath ( string relativePath, string resolutionRootFullPath ) : string
relativePath string Relative path to resolve
resolutionRootFullPath string Root full path for the resolution of
리턴 string