C# Класс Catel.StringExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ContainsIgnoreCase() публичный статический Метод

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.
Результат bool

EndsWithIgnoreCase() публичный статический Метод

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.
Результат bool

EqualsIgnoreCase() публичный статический Метод

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.
Результат bool

IndexOfIgnoreCase() публичный статический Метод

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.
Результат int

PrepareAsSearchFilter() публичный статический Метод

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.
Результат string

SplitCamelCase() публичный статический Метод

Splits the string by camel case, e.g. 'HiThere' will result in 'Hi there'.
public static SplitCamelCase ( this value ) : string
value this The value.
Результат string

StartsWithIgnoreCase() публичный статический Метод

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.
Результат bool