C# 클래스 WebMarkupMin.Core.Utilities.StringExtensions

Extensions for String
파일 보기 프로젝트 열기: Taritsyn/WebMarkupMin

공개 메소드들

메소드 설명
CustomStartsWith ( this source, string value, int startIndex, System.StringComparison comparisonType ) : bool

Determines whether the beginning of this string instance matches the specified string when compared using the specified comparison option

IgnoreCaseEquals ( this source, string value ) : bool

Determines a equality of two strings with ignoring case

TabsToSpaces ( this source, int tabSize ) : string

Replaces tabs by specified number of spaces

TryGetChar ( this source, int index, char &result ) : bool

Gets a character at the specified index from the string. A return value indicates whether the receiving succeeded.

메소드 상세

CustomStartsWith() 공개 정적인 메소드

Determines whether the beginning of this string instance matches the specified string when compared using the specified comparison option
public static CustomStartsWith ( this source, string value, int startIndex, System.StringComparison comparisonType ) : bool
source this The source string
value string The string to compare
startIndex int The search starting position
comparisonType System.StringComparison One of the enumeration values that determines how /// this string and value are compared
리턴 bool

IgnoreCaseEquals() 공개 정적인 메소드

Determines a equality of two strings with ignoring case
public static IgnoreCaseEquals ( this source, string value ) : bool
source this The source string
value string The string to compare
리턴 bool

TabsToSpaces() 공개 정적인 메소드

Replaces tabs by specified number of spaces
public static TabsToSpaces ( this source, int tabSize ) : string
source this String value
tabSize int Number of spaces in tab
리턴 string

TryGetChar() 공개 정적인 메소드

Gets a character at the specified index from the string. A return value indicates whether the receiving succeeded.
public static TryGetChar ( this source, int index, char &result ) : bool
source this The source string
index int The zero-based index of the character
result char When this method returns, contains the character from the string, /// if the receiving succeeded, or null character if the receiving failed. /// The receiving fails if the index out of bounds.
리턴 bool