C# Class LibiadaWeb.Helpers.StringExtensions

Class containing extension methods for string class.
显示文件 Open project: intervals-mining-lab/libiada-web

Public Methods

Method Description
GetLargestRepeatingSubstring ( this source ) : string

Gets largest repeating substring or whole string if there is no repeating substrings.

TrimEnd ( this source, string value ) : string

Trims given substring from the end of current string if any.

Method Details

GetLargestRepeatingSubstring() public static method

Gets largest repeating substring or whole string if there is no repeating substrings.
public static GetLargestRepeatingSubstring ( this source ) : string
source this /// The source string. ///
return string

TrimEnd() public static method

Trims given substring from the end of current string if any.
public static TrimEnd ( this source, string value ) : string
source this /// Current string. ///
value string /// Substring to be removed. ///
return string