C# 클래스 Catel.StringExtensions

파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
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