C# Класс sass.Extensions

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

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

Метод Описание
RemoveExcessWhitespace ( this value ) : string

Reduces all consecutive spaces and tabs to one space.

Replace ( this str, string oldValue, string newValue, System.StringComparison comparison ) : string
SafeContains ( this value, char needle ) : bool

Checks for value contained within a string, outside of '' and ""

SafeContains ( this value, string needle ) : bool

Checks for value contained within a string, outside of '' and ""

SafeIndexOf ( this value, char needle ) : int
SafeIndexOf ( this value, char needle, int index ) : int
SafeIndexOf ( this value, string needle ) : int
SafeSplit ( this value ) : string[]

Works the same as String.Split, but will not split if the requested characters are within a character or string literal.

TrimComments ( this value ) : string

Trims comments from the end of a line. Uses ';' as the comment delimiter.

Unescape ( this value ) : string

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

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

Reduces all consecutive spaces and tabs to one space.
public static RemoveExcessWhitespace ( this value ) : string
value this
Результат string

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

public static Replace ( this str, string oldValue, string newValue, System.StringComparison comparison ) : string
str this
oldValue string
newValue string
comparison System.StringComparison
Результат string

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

Checks for value contained within a string, outside of '' and ""
public static SafeContains ( this value, char needle ) : bool
value this
needle char
Результат bool

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

Checks for value contained within a string, outside of '' and ""
public static SafeContains ( this value, string needle ) : bool
value this
needle string
Результат bool

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

public static SafeIndexOf ( this value, char needle ) : int
value this
needle char
Результат int

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

public static SafeIndexOf ( this value, char needle, int index ) : int
value this
needle char
index int
Результат int

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

public static SafeIndexOf ( this value, string needle ) : int
value this
needle string
Результат int

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

Works the same as String.Split, but will not split if the requested characters are within a character or string literal.
public static SafeSplit ( this value ) : string[]
value this
Результат string[]

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

Trims comments from the end of a line. Uses ';' as the comment delimiter.
public static TrimComments ( this value ) : string
value this
Результат string

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

public static Unescape ( this value ) : string
value this
Результат string