dom.cssparser

Undocumented in source.

Members

Classes

ASTNode
class ASTNode
Undocumented in source.
ATRuleNode
class ATRuleNode
Undocumented in source.
CSSParser
class CSSParser
Undocumented in source.
ComponentValueNode
class ComponentValueNode
Undocumented in source.
FunctionNode
class FunctionNode
Undocumented in source.
PreservedTokenNode
class PreservedTokenNode
Undocumented in source.
QualifiedRuleNode
class QualifiedRuleNode
Undocumented in source.
SimpleBlockNode
class SimpleBlockNode
Undocumented in source.

Enums

ASTNodeType
enum ASTNodeType
Undocumented in source.
CSSTokenType
enum CSSTokenType
Undocumented in source.

Functions

applyCSSImportRules
string applyCSSImportRules(string src, CSSImportRule[] rules)

Replace source code import rules obtained by extractImportRules() with imported content.

decodeHexDigit
int decodeHexDigit(char ch)
Undocumented in source. Be warned that the author may not have intended to support it.
extractCSSImportRules
CSSImportRule[] extractCSSImportRules(string src)

Extract CSS vimport rules from source.

isCSSNameStart
bool isCSSNameStart(char ch)
Undocumented in source. Be warned that the author may not have intended to support it.
isCSSNonPrintable
bool isCSSNonPrintable(char ch)
Undocumented in source. Be warned that the author may not have intended to support it.
isCSSValidEscSequence
bool isCSSValidEscSequence(char ch, char ch2)
Undocumented in source. Be warned that the author may not have intended to support it.
isCSSWhiteSpaceChar
bool isCSSWhiteSpaceChar(char ch)
Undocumented in source. Be warned that the author may not have intended to support it.
preProcessCSS
char[] preProcessCSS(char[] src)

Before sending the input stream to the tokenizer, implementations must make the following code point substitutions: * Replace any U+000D CARRIAGE RETURN (CR) code point, U+000C FORM FEED (FF) code point, or pairs of U+000D CARRIAGE RETURN (CR) followed by U+000A LINE FEED (LF) by a single U+000A LINE FEED (LF) code point. * Replace any U+0000 NULL code point with U+FFFD REPLACEMENT CHARACTER.

Static functions

tokenizeCSS
CSSToken[] tokenizeCSS(string src)

Tokenizes css source, returns array of tokens (last token is EOF). Source must be preprocessed utf-8 string.

Structs

CSSImportRule
struct CSSImportRule
Undocumented in source.
CSSToken
struct CSSToken
Undocumented in source.
CSSTokenizer
struct CSSTokenizer
Undocumented in source.

Meta