9#include <QtCore/qregularexpression.h>
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
209
210
211
212
215
216
217
218
219
222
223
224
225
226
229
230
231
232
233
236
237
238
239
240
243
244
245
246
247
250
251
252
255
256
257
258
268
269
270
271
275 while (a && (a
->type() != t || a->string() != s))
281
282
283
286
287
288
295
296
297
304
305
306
309
310
311
314
315
316
317
318
319
320
323 static bool deja =
false;
327 while (atms[i]
.english !=
nullptr) {
329 Location::internalError(QStringLiteral(
"QDoc::Atom: atom %1 missing").arg(i));
335 int i =
static_cast<
int>(
type());
336 if (i < 0 || i >
static_cast<
int>(
Last))
337 return QLatin1String(
"Invalid");
338 return QLatin1String(atms[i]
.english);
342
343
344
345
346
347
350
351
352
361 result += atom->string();
371
372
373
374
375
376
377
390
391
392
393
398 const QStringList params = m_squareBracketParams.toLower().split(QLatin1Char(
' '));
399 for (
const auto ¶m : params) {
401 m_domain = QDocDatabase::qdocDB()->findTree(param);
407 if (param ==
"qml") {
411 if (param ==
"cpp") {
415 if (param ==
"doc") {
419 if (param ==
"api") {
429
430
443
444
445
446
#define ATOM_FORMATTING_LINK
The Atom class is the fundamental unit for representing documents internally.
AtomType type() const
Return the type of this atom.
AtomType
\value AnnotatedList \value AutoLink \value BaseName \value BriefLeft \value BriefRight \value C \val...
const Atom * next(AtomType t, const QString &s) const
Return the next Atom in the list if it is of AtomType t and its string part is s.
QString linkText() const
For a link atom, returns the string representing the link text if one exist in the list of atoms.
const Atom * next() const
Return the next atom in the atom list.
const Atom * next(AtomType t) const
Return the next Atom in the list if it is of AtomType t.
const Atom * find(AtomType t) const
Starting from this Atom, searches the linked list for the atom of specified type t and returns it.
const Atom * find(AtomType t, const QString &s) const
Starting from this Atom, searches the linked list for the atom of specified type t and string s,...
QString typeString() const
Return the type of this atom as a string.
LinkAtom(const QString &p1, const QString &p2, Location location=Location())
The only constructor for LinkAtom.
LinkAtom(const LinkAtom &t)
Standard copy constructor of LinkAtom t.
LinkAtom(Atom *previous, const LinkAtom &t)
Special copy constructor of LinkAtom t, where where the new LinkAtom will not be the first one in the...
void resolveSquareBracketParams() override
This function resolves the parameters that were enclosed in square brackets.
The Location class provides a way to mark a location in a file.
LinkType
An unsigned char value that probably should be moved out of the Node base class.
Combined button and popup list for selecting options.