C# Class Catel.StringExtensions

Afficher le fichier Open project: Catel/Catel

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

EndsWithIgnoreCase() public static méthode

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.
Résultat bool

EqualsIgnoreCase() public static méthode

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.
Résultat bool

IndexOfIgnoreCase() public static méthode

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.
Résultat int

PrepareAsSearchFilter() public static méthode

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.
Résultat string

SplitCamelCase() public static méthode

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

StartsWithIgnoreCase() public static méthode

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.
Résultat bool