#include <jkqtpcsstools.h>
|
| | Token () |
| | Token (const QString &str, TokenType type=NAME) |
| | Token (double num, const QString &unit_=QString()) |
| | Token (TokenType type) |
| QString | getNormString () const |
| | normlizes the StringValue (i.e. lower-case, trimmer, simmplified)
|
| bool | is (TokenType othertype) const |
| | checks whether the current token is of the given type (does not compare any other field)
|
| bool | isNormString (const QString &name) const |
| | checks whether the current token is of type TokenType::NAME and the String value equals name (case-insensitive commparison, trimmer, simplified)
|
| bool | isNormStringAnyOf (const QStringList &names) const |
| | checks whether the current token is of type TokenType::NAME and the String value equals any of the entries in names (case-insensitive commparison, trimmer, simplified)
|
| QString | toString () const |
| | converts the TOken information to a string
|
|
| double | NumberValue |
| | the string value of the current token (when applicable) during the parsing step
|
| QString | StringValue |
| | the string value of the current token (when applicable) during the parsing step
|
| TokenType | type |
◆ TokenType
the possible Token that can be recognized by the tokenizer in JKQTPCSSParser::getToken()
| Enumerator |
|---|
| END | end token
|
| NAME | a name (consisting of characters) of a variable or function
|
| NUMBER | a number, possibly with a unit(string)
|
| HEXSTRING | a string in HEX notation (i.e. 0-9a-fA-F)
|
| LBRACKET | left brackets '('
|
| RBRACKET | right brackets ')'
|
| COMMA | a comma ','
|
| SLASH | a slash '/'
|
◆ Token() [1/4]
| JKQTPCSSParser::Token::Token |
( |
| ) |
|
◆ Token() [2/4]
| JKQTPCSSParser::Token::Token |
( |
TokenType | type | ) |
|
◆ Token() [3/4]
| JKQTPCSSParser::Token::Token |
( |
double | num, |
|
|
const QString & | unit_ = QString() ) |
◆ Token() [4/4]
| JKQTPCSSParser::Token::Token |
( |
const QString & | str, |
|
|
TokenType | type = NAME ) |
◆ getNormString()
| QString JKQTPCSSParser::Token::getNormString |
( |
| ) |
const |
|
inline |
normlizes the StringValue (i.e. lower-case, trimmer, simmplified)
◆ is()
| bool JKQTPCSSParser::Token::is |
( |
TokenType | othertype | ) |
const |
|
inline |
checks whether the current token is of the given type (does not compare any other field)
◆ isNormString()
| bool JKQTPCSSParser::Token::isNormString |
( |
const QString & | name | ) |
const |
|
inline |
checks whether the current token is of type TokenType::NAME and the String value equals name (case-insensitive commparison, trimmer, simplified)
◆ isNormStringAnyOf()
| bool JKQTPCSSParser::Token::isNormStringAnyOf |
( |
const QStringList & | names | ) |
const |
|
inline |
checks whether the current token is of type TokenType::NAME and the String value equals any of the entries in names (case-insensitive commparison, trimmer, simplified)
◆ toString() [1/2]
| QString JKQTPCSSParser::Token::toString |
( |
| ) |
const |
converts the TOken information to a string
◆ toString() [2/2]
| QString JKQTPCSSParser::Token::toString |
( |
TokenType | type | ) |
|
|
static |
◆ NumberValue
| double JKQTPCSSParser::Token::NumberValue |
the string value of the current token (when applicable) during the parsing step
◆ StringValue
| QString JKQTPCSSParser::Token::StringValue |
the string value of the current token (when applicable) during the parsing step
◆ type
The documentation for this struct was generated from the following file: