- consumeBadUrl
void consumeBadUrl()
Undocumented in source. Be warned that the author may not have intended to support it.
- consumeIdent
bool consumeIdent(char[] tokenText)
Consume identifier at current position, append it to tokenText
- emitDelimToken
CSSTokenType emitDelimToken()
Undocumented in source. Be warned that the author may not have intended to support it.
- emitDoubleCharToken
CSSTokenType emitDoubleCharToken(CSSTokenType type)
emit double char token like $= *=
- emitSingleCharToken
CSSTokenType emitSingleCharToken(CSSTokenType type)
emit single char token like () {} [] : ;
- eof
bool eof()
Undocumented in source. Be warned that the author may not have intended to support it.
- isIdentStart
bool isIdentStart(size_t p)
returns true if current tokenEnd position is identifier start
- next
CSSTokenType next()
Undocumented in source. Be warned that the author may not have intended to support it.
- nextToken
CSSToken nextToken()
same as next() but returns filled CSSToken struct
- parseComment
CSSTokenType parseComment()
- parseHashToken
CSSTokenType parseHashToken()
Undocumented in source. Be warned that the author may not have intended to support it.
- parseIdent
bool parseIdent()
Parse identifier.
Returns true if identifier is parsed. tokenText will contain identifier text.
- parseNumber
bool parseNumber()
Parse identifier.
Returns true if identifier is parsed. tokenText will contain identifier text.
- parseString
bool parseString(char quotationChar)
Undocumented in source. Be warned that the author may not have intended to support it.
- parseUnicodeRangeToken
CSSTokenType parseUnicodeRangeToken()
current chars are U+ or u+ followed by hex digit or ?
- parseUrlToken
void parseUrlToken()
Undocumented in source. Be warned that the author may not have intended to support it.
- skipWhiteSpace
bool skipWhiteSpace()
Skip whitespace; return true if at least one whitespace char is skipped; move tokenEnd position
tokenType will be set to newline if any newline character found, otherwise - to whitespace
- start
void start(string _src)
Undocumented in source. Be warned that the author may not have intended to support it.