Qt 4.8
Public Functions | Public Variables | List of all members
QCss::Symbol Struct Reference

#include <qcssparser_p.h>

Public Functions

QString lexem () const
 
 Symbol ()
 

Public Variables

int len
 
int start
 
QString text
 
TokenType token
 

Detailed Description

Definition at line 733 of file qcssparser_p.h.

Constructors and Destructors

◆ Symbol()

QCss::Symbol::Symbol ( )
inline

Definition at line 735 of file qcssparser_p.h.

735 : token(NONE), start(0), len(-1) {}
TokenType token
Definition: qcssparser_p.h:736

Functions

◆ lexem()

QString Symbol::lexem ( ) const

Definition at line 2083 of file qcssparser.cpp.

2084 {
2085  QString result;
2086  if (len > 0)
2087  result.reserve(len);
2088  for (int i = 0; i < len; ++i) {
2089  if (text.at(start + i) == QLatin1Char('\\') && i < len - 1)
2090  ++i;
2091  result += text.at(start + i);
2092  }
2093  return result;
2094 }
QString text
Definition: qcssparser_p.h:737
const QChar at(int i) const
Returns the character at the given index position in the string.
Definition: qstring.h:698
The QString class provides a Unicode character string.
Definition: qstring.h:83
void reserve(int size)
Attempts to allocate memory for at least size characters.
Definition: qstring.h:881
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

Properties

◆ len

int QCss::Symbol::len

Definition at line 738 of file qcssparser_p.h.

Referenced by QSvgHandler::parseCSStoXMLAttrs(), and QCss::Scanner::scan().

◆ start

int QCss::Symbol::start

Definition at line 738 of file qcssparser_p.h.

Referenced by QSvgHandler::parseCSStoXMLAttrs(), and QCss::Scanner::scan().

◆ text

QString QCss::Symbol::text

Definition at line 737 of file qcssparser_p.h.

Referenced by QSvgHandler::parseCSStoXMLAttrs(), and QCss::Scanner::scan().

◆ token

TokenType QCss::Symbol::token

Definition at line 736 of file qcssparser_p.h.

Referenced by QCss::Scanner::scan().


The documentation for this struct was generated from the following files: