Table of Contents

Class CssStringSourceExtensions

Namespace
AngleSharp.Css.Parser
Assembly
AngleSharp.dll

Contains some useful extension methods for the StringSource from the perspective of the CSS micro parsers.

public static class CssStringSourceExtensions
Inheritance
CssStringSourceExtensions
Inherited Members

Methods

ConsumeEscape(StringSource)

Consumes the escape sequence if any. Assumes, the source currently being at a solidus (valid escape).

public static string ConsumeEscape(this StringSource source)

Parameters

source StringSource

Returns

string

IsValidEscape(StringSource)

Checks if the current position holds a valid escape.

public static bool IsValidEscape(this StringSource source)

Parameters

source StringSource

Returns

bool

SkipCssComment(StringSource)

Skips all characters to the end of a CSS comment. Assumes the start of a CSS comment has been seen.

public static char SkipCssComment(this StringSource source)

Parameters

source StringSource

Returns

char