C# Class Catel.StringExtensions

Datei anzeigen Open project: Catel/Catel

Public Methods

Method Description
ContainsIgnoreCase ( this str, string valueToCheck ) : bool

Determines whether the specified string contains the value to check.

EndsWithIgnoreCase ( this str, string valueToCheck ) : bool

Determines whether the string ends with the value to check.

EqualsIgnoreCase ( this str, string valueToCheck ) : bool

Executes a string comparison that is case insensitive.

IndexOfIgnoreCase ( this str, string valueToCheck ) : int

Determines the index of the value to check inside the specified string.

PrepareAsSearchFilter ( this filter ) : string

Prepares a string value as search filter by trimming it and making it lower-case.

SplitCamelCase ( this value ) : string

Splits the string by camel case, e.g. 'HiThere' will result in 'Hi there'.

StartsWithIgnoreCase ( this str, string valueToCheck ) : bool

Determines whether the string starts with the value to check.

Method Details

ContainsIgnoreCase() public static method

Determines whether the specified string contains the value to check.
public static ContainsIgnoreCase ( this str, string valueToCheck ) : bool
str this The string.
valueToCheck string The value to check.
return bool

EndsWithIgnoreCase() public static method

Determines whether the string ends with the value to check.
public static EndsWithIgnoreCase ( this str, string valueToCheck ) : bool
str this The string.
valueToCheck string The value to check.
return bool

EqualsIgnoreCase() public static method

Executes a string comparison that is case insensitive.
public static EqualsIgnoreCase ( this str, string valueToCheck ) : bool
str this The string.
valueToCheck string The value to check.
return bool

IndexOfIgnoreCase() public static method

Determines the index of the value to check inside the specified string.
public static IndexOfIgnoreCase ( this str, string valueToCheck ) : int
str this The string.
valueToCheck string The value to check.
return int

PrepareAsSearchFilter() public static method

Prepares a string value as search filter by trimming it and making it lower-case.
public static PrepareAsSearchFilter ( this filter ) : string
filter this The filter.
return string

SplitCamelCase() public static method

Splits the string by camel case, e.g. 'HiThere' will result in 'Hi there'.
public static SplitCamelCase ( this value ) : string
value this The value.
return string

StartsWithIgnoreCase() public static method

Determines whether the string starts with the value to check.
public static StartsWithIgnoreCase ( this str, string valueToCheck ) : bool
str this The string.
valueToCheck string The value to check.
return bool