C# Class Microsoft.DocAsCode.Common.StringExtension

Afficher le fichier Open project: dotnet/docfx Class Usage Examples

Méthodes publiques

Méthode Description
BackSlashToForwardSlash ( this input ) : string
ForwardSlashCombine ( this baseAddress, string relativeAddress ) : string
GetMd5String ( this content ) : string
GetNormalizedFullPathKey ( this list ) : string
GetNormalizedFullPathList ( this paths ) : IEnumerable
GetNormalizedPathList ( this paths ) : IEnumerable
ToDelimitedString ( this input, string delimiter = "," ) : string
ToDisplayPath ( this path ) : string
ToNormalizedFullPath ( this path ) : string

Should not convert path to lower case as under Linux/Unix, path is case sensitive Also, Website URL should be case sensitive consider the server might be running under Linux/Unix So we could even not lower the path under Windows as the generated YAML should be ideally OS irrelevant

ToNormalizedPath ( this path ) : string

Method Details

BackSlashToForwardSlash() public static méthode

public static BackSlashToForwardSlash ( this input ) : string
input this
Résultat string

ForwardSlashCombine() public static méthode

public static ForwardSlashCombine ( this baseAddress, string relativeAddress ) : string
baseAddress this
relativeAddress string
Résultat string

GetMd5String() public static méthode

public static GetMd5String ( this content ) : string
content this
Résultat string

GetNormalizedFullPathKey() public static méthode

public static GetNormalizedFullPathKey ( this list ) : string
list this
Résultat string

GetNormalizedFullPathList() public static méthode

public static GetNormalizedFullPathList ( this paths ) : IEnumerable
paths this
Résultat IEnumerable

GetNormalizedPathList() public static méthode

public static GetNormalizedPathList ( this paths ) : IEnumerable
paths this
Résultat IEnumerable

ToDelimitedString() public static méthode

public static ToDelimitedString ( this input, string delimiter = "," ) : string
input this
delimiter string
Résultat string

ToDisplayPath() public static méthode

public static ToDisplayPath ( this path ) : string
path this
Résultat string

ToNormalizedFullPath() public static méthode

Should not convert path to lower case as under Linux/Unix, path is case sensitive Also, Website URL should be case sensitive consider the server might be running under Linux/Unix So we could even not lower the path under Windows as the generated YAML should be ideally OS irrelevant
public static ToNormalizedFullPath ( this path ) : string
path this
Résultat string

ToNormalizedPath() public static méthode

public static ToNormalizedPath ( this path ) : string
path this
Résultat string