C# 클래스 Microsoft.SourceBrowser.HtmlGenerator.Paths

파일 보기 프로젝트 열기: KirillOsenkov/SourceBrowser 1 사용 예제들

공개 메소드들

메소드 설명
CalculateRelativePathToRoot ( string filePath, string rootFolder ) : string
EnsureTrailingSlash ( this path ) : string
GetCssPathFromFile ( string solutionDestinationPath, string fileName ) : string
GetDocumentDestinationPath ( Microsoft.CodeAnalysis.Document document, string projectDestinationFolder ) : string
GetFullPathInFolderCone ( string folder, string filePath ) : string

This makes sure that a filePath that can be outside the folder is replanted inside the folder. This is important when a project references a file outside the project cone and we want to display it as if it is inside the project.

GetMD5Hash ( string input, int digits ) : string
GetMD5HashULong ( string input, int digits ) : ulong
GetRelativeFilePathInProject ( Microsoft.CodeAnalysis.Document document ) : string
GetRelativePathInProject ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree, Microsoft.CodeAnalysis.Project project ) : string
LoadProcessedAssemblies ( ) : HashSet
MakeRelativeToFile ( string filePath, string relativeToPath ) : string

Returns a path to filePath if you start in a folder where the file relativeToPath is located.

MakeRelativeToFolder ( string filePath, string relativeToPath ) : string

Returns a path to filePath if you start in folder relativeToPath.

PrepareDestinationFolder ( bool forceOverwrite = false ) : void
SanitizeFileName ( string fileName ) : string
SanitizeFolder ( string folderName ) : string
StripExtension ( string fileName ) : string

비공개 메소드들

메소드 설명
GetFullPathInFolderConeForRootedFilePath ( string folder, string rootedFilePath ) : string
IsValidFolder ( string folderName ) : bool
ReplaceInvalidChars ( string fileName, char invalidChars ) : string

메소드 상세

CalculateRelativePathToRoot() 공개 정적인 메소드

public static CalculateRelativePathToRoot ( string filePath, string rootFolder ) : string
filePath string
rootFolder string
리턴 string

EnsureTrailingSlash() 공개 정적인 메소드

public static EnsureTrailingSlash ( this path ) : string
path this
리턴 string

GetCssPathFromFile() 공개 정적인 메소드

public static GetCssPathFromFile ( string solutionDestinationPath, string fileName ) : string
solutionDestinationPath string
fileName string
리턴 string

GetDocumentDestinationPath() 공개 정적인 메소드

public static GetDocumentDestinationPath ( Microsoft.CodeAnalysis.Document document, string projectDestinationFolder ) : string
document Microsoft.CodeAnalysis.Document
projectDestinationFolder string
리턴 string

GetFullPathInFolderCone() 공개 정적인 메소드

This makes sure that a filePath that can be outside the folder is replanted inside the folder. This is important when a project references a file outside the project cone and we want to display it as if it is inside the project.
public static GetFullPathInFolderCone ( string folder, string filePath ) : string
folder string
filePath string
리턴 string

GetMD5Hash() 공개 정적인 메소드

public static GetMD5Hash ( string input, int digits ) : string
input string
digits int
리턴 string

GetMD5HashULong() 공개 정적인 메소드

public static GetMD5HashULong ( string input, int digits ) : ulong
input string
digits int
리턴 ulong

GetRelativeFilePathInProject() 공개 정적인 메소드

public static GetRelativeFilePathInProject ( Microsoft.CodeAnalysis.Document document ) : string
document Microsoft.CodeAnalysis.Document
리턴 string

GetRelativePathInProject() 공개 정적인 메소드

public static GetRelativePathInProject ( Microsoft.CodeAnalysis.SyntaxTree syntaxTree, Microsoft.CodeAnalysis.Project project ) : string
syntaxTree Microsoft.CodeAnalysis.SyntaxTree
project Microsoft.CodeAnalysis.Project
리턴 string

LoadProcessedAssemblies() 공개 정적인 메소드

public static LoadProcessedAssemblies ( ) : HashSet
리턴 HashSet

MakeRelativeToFile() 공개 정적인 메소드

Returns a path to filePath if you start in a folder where the file relativeToPath is located.
public static MakeRelativeToFile ( string filePath, string relativeToPath ) : string
filePath string C:\A\B\1.txt
relativeToPath string C:\C\D\2.txt
리턴 string

MakeRelativeToFolder() 공개 정적인 메소드

Returns a path to filePath if you start in folder relativeToPath.
public static MakeRelativeToFolder ( string filePath, string relativeToPath ) : string
filePath string C:\A\B\1.txt
relativeToPath string C:\C\D
리턴 string

PrepareDestinationFolder() 공개 정적인 메소드

public static PrepareDestinationFolder ( bool forceOverwrite = false ) : void
forceOverwrite bool
리턴 void

SanitizeFileName() 공개 정적인 메소드

public static SanitizeFileName ( string fileName ) : string
fileName string
리턴 string

SanitizeFolder() 공개 정적인 메소드

public static SanitizeFolder ( string folderName ) : string
folderName string
리턴 string

StripExtension() 공개 정적인 메소드

public static StripExtension ( string fileName ) : string
fileName string
리턴 string