C# Class AvalonStudio.Extensibility.Ext

Show file Open project: VitalElement/AvalonStudio

Public Methods

Method Description
Center ( this stringToCenter, int totalLength ) : string
Chunkify ( this str, int maxChunkLength ) : IEnumerable
Chunkify ( this str, int maxChunkLength, char removedSplitters, char keptSplitters ) : IEnumerable
LevenshteinDistance ( this str, string compare, bool caseSensitive = true ) : int
StripHTML ( this HTMLText ) : string
Truncate ( this value, int maxLength, string endString = "" ) : string

Method Details

Center() public static method

public static Center ( this stringToCenter, int totalLength ) : string
stringToCenter this
totalLength int
return string

Chunkify() public static method

public static Chunkify ( this str, int maxChunkLength ) : IEnumerable
str this
maxChunkLength int
return IEnumerable

Chunkify() public static method

public static Chunkify ( this str, int maxChunkLength, char removedSplitters, char keptSplitters ) : IEnumerable
str this
maxChunkLength int
removedSplitters char
keptSplitters char
return IEnumerable

LevenshteinDistance() public static method

public static LevenshteinDistance ( this str, string compare, bool caseSensitive = true ) : int
str this
compare string
caseSensitive bool
return int

StripHTML() public static method

public static StripHTML ( this HTMLText ) : string
HTMLText this
return string

Truncate() public static method

public static Truncate ( this value, int maxLength, string endString = "" ) : string
value this
maxLength int
endString string
return string