#include <qcssparser_p.h>
Definition at line 742 of file qcssparser_p.h.
◆ preprocess()
QString Scanner::preprocess |
( |
const QString & |
input, |
|
|
bool * |
hasEscapeSequences = 0 |
|
) |
| |
|
static |
Definition at line 2012 of file qcssparser.cpp.
Referenced by QCss::Parser::init().
2016 if (hasEscapeSequences)
2017 *hasEscapeSequences =
false;
2020 while (i < output.
size()) {
2026 const int hexStart = i;
2027 while (i < output.
size()
2033 if (hexCount == 0) {
2034 if (hasEscapeSequences)
2035 *hasEscapeSequences =
true;
2039 hexCount =
qMin(hexCount, 6);
2043 output.
replace(hexStart - 1, hexCount + 1,
QChar(code));
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
const QChar at(int i) const
Returns the character at the given index position in the string.
ushort toUShort(bool *ok=0, int base=10) const
Returns the string converted to an unsigned short using base base, which is 10 by default and must be...
QString & replace(int i, int len, QChar after)
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
int size() const
Returns the number of characters in this string.
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
static bool isHexDigit(const char c)
char toLatin1() const
Returns the Latin-1 character equivalent to the QChar, or 0.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
◆ scan()
Definition at line 2068 of file qcssparser.cpp.
Referenced by QCss::Parser::init().
2072 int tok = scanner.lex();
2075 sym.
text = scanner.input;
2076 sym.
start = scanner.lexemStart;
2077 sym.
len = scanner.lexemLength;
2079 tok = scanner.lex();
void append(const T &t)
Inserts value at the end of the vector.
The documentation for this class was generated from the following files: