C# Class Microsoft.DocAsCode.Common.StringExtension

Mostrar archivo Open project: dotnet/docfx Class Usage Examples

Public Methods

Method 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 method

public static BackSlashToForwardSlash ( this input ) : string
input this
return string

ForwardSlashCombine() public static method

public static ForwardSlashCombine ( this baseAddress, string relativeAddress ) : string
baseAddress this
relativeAddress string
return string

GetMd5String() public static method

public static GetMd5String ( this content ) : string
content this
return string

GetNormalizedFullPathKey() public static method

public static GetNormalizedFullPathKey ( this list ) : string
list this
return string

GetNormalizedFullPathList() public static method

public static GetNormalizedFullPathList ( this paths ) : IEnumerable
paths this
return IEnumerable

GetNormalizedPathList() public static method

public static GetNormalizedPathList ( this paths ) : IEnumerable
paths this
return IEnumerable

ToDelimitedString() public static method

public static ToDelimitedString ( this input, string delimiter = "," ) : string
input this
delimiter string
return string

ToDisplayPath() public static method

public static ToDisplayPath ( this path ) : string
path this
return string

ToNormalizedFullPath() public static method

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
return string

ToNormalizedPath() public static method

public static ToNormalizedPath ( this path ) : string
path this
return string