C# Class StringUtil

StringUtil 的摘要说明
Mostrar archivo Open project: imann24/cs327-bestmobilegameever Class Usage Examples

Public Methods

Method Description
AddSquareBrackets ( string source ) : string
ContainsPartialSubstring ( string text, string stringToFind ) : bool
ContainsPartialSubstring ( string text, string stringToFind, string &subStringFound ) : bool
CountWords ( string s ) : int

Count words with Regex.

LastChar ( string source ) : char
RemoveSquareBrackets ( string source ) : string
RepeatString ( string stringToRepeat, int repeatCount ) : string

Method Details

AddSquareBrackets() public static method

public static AddSquareBrackets ( string source ) : string
source string
return string

ContainsPartialSubstring() public static method

public static ContainsPartialSubstring ( string text, string stringToFind ) : bool
text string
stringToFind string
return bool

ContainsPartialSubstring() public static method

public static ContainsPartialSubstring ( string text, string stringToFind, string &subStringFound ) : bool
text string
stringToFind string
subStringFound string
return bool

CountWords() public static method

Count words with Regex.
public static CountWords ( string s ) : int
s string
return int

LastChar() public static method

public static LastChar ( string source ) : char
source string
return char

RemoveSquareBrackets() public static method

public static RemoveSquareBrackets ( string source ) : string
source string
return string

RepeatString() public static method

public static RepeatString ( string stringToRepeat, int repeatCount ) : string
stringToRepeat string
repeatCount int
return string