KDECore
kuitsemantics.cpp File Reference
#include <kuitsemantics_p.h>
#include <config.h>
#include <QHash>
#include <QSet>
#include <QRegExp>
#include <QStack>
#include <QXmlStreamReader>
#include <QStringList>
#include <QPair>
#include <QDir>
#include <kdebug.h>
#include <kglobal.h>
#include <kcatalog_p.h>
#include <kuitformats_p.h>
#include <klocale.h>
Go to the source code of this file.
Namespaces | |
namespace | Kuit |
namespace | Kuit::Att |
namespace | Kuit::Cue |
namespace | Kuit::Fmt |
namespace | Kuit::Rol |
namespace | Kuit::Tag |
Macros | |
#define | ENTITY_SUBRX "[a-z]+|#[0-9]+|#x[0-9a-fA-F]+" |
#define | I18N_NOOP2(ctxt, msg) ctxt, msg |
#define | I18N_NOOP2(ctxt, msg) metaTr(ctxt, msg) |
#define | I18N_NOOP2(ctxt, msg) msg |
#define | INLINES |
#define | QL1S(x) QLatin1String(x) |
#define | SET_KEYNAME(rawname) |
#define | SET_PATTERN(tag, atts, fmt, ctxt_ptrn) |
#define | SETUP_ATT(att, name) |
#define | SETUP_CUE(cue, name) |
#define | SETUP_FMT(fmt, name) |
#define | SETUP_ROL(rol, name, fmt, cues) |
#define | SETUP_ROLCUEFMT(rol, cue, fmt) |
#define | SETUP_TAG(tag, name, atts, subs) |
#define | SETUP_TAG_NL(tag, nlead) |
#define | XXXX_NOOP2(ctxt, msg) ctxt, msg |
Typedefs | |
typedef Att::Var | Kuit::AttVar |
typedef Cue::Var | Kuit::CueVar |
typedef Fmt::Var | Kuit::FmtVar |
typedef Rol::Var | Kuit::RolVar |
typedef Tag::Var | Kuit::TagVar |
Functions | |
static QString | shorten (const QString &str) |
Macro Definition Documentation
◆ ENTITY_SUBRX
#define ENTITY_SUBRX "[a-z]+|#[0-9]+|#x[0-9a-fA-F]+" |
Definition at line 1110 of file kuitsemantics.cpp.
◆ I18N_NOOP2 [1/3]
#define I18N_NOOP2 | ( | ctxt, | |
msg | |||
) | ctxt, msg |
◆ I18N_NOOP2 [2/3]
#define I18N_NOOP2 | ( | ctxt, | |
msg | |||
) | metaTr(ctxt, msg) |
◆ I18N_NOOP2 [3/3]
#define I18N_NOOP2 | ( | ctxt, | |
msg | |||
) | msg |
◆ INLINES
#define INLINES |
Value:
Filename << Link << Application << Command << Resource << Icode << \
Shortcut << Interface << Emphasis << Placeholder << Email << \
Numid << Envar << Nl
◆ QL1S
#define QL1S | ( | x | ) | QLatin1String(x) |
Definition at line 39 of file kuitsemantics.cpp.
◆ SET_KEYNAME
#define SET_KEYNAME | ( | rawname | ) |
◆ SET_PATTERN
#define SET_PATTERN | ( | tag, | |
atts, | |||
fmt, | |||
ctxt_ptrn | |||
) |
Value:
do { \
QSet<AttVar> aset; \
aset << atts; \
int akey = attSetKey(aset); \
QString pattern = metaTr(ctxt_ptrn); \
m_patterns[tag][akey][fmt] = pattern; \
/* Make Term pattern same as Plain, unless explicitly given. */ \
if (fmt == Fmt::Plain && !m_patterns[tag][akey].contains(Fmt::Term)) { \
m_patterns[tag][akey][Fmt::Term] = pattern; \
} \
} while (0)
Definition: k3resolver.h:41
◆ SETUP_ATT
#define SETUP_ATT | ( | att, | |
name | |||
) |
Value:
do { \
knownAtts.insert(QString::fromLatin1(name), Kuit::Att::att); \
} while (0)
◆ SETUP_CUE
#define SETUP_CUE | ( | cue, | |
name | |||
) |
Value:
do { \
knownCues.insert(QString::fromLatin1(name), Kuit::Cue::cue); \
} while (0)
◆ SETUP_FMT
#define SETUP_FMT | ( | fmt, | |
name | |||
) |
Value:
do { \
knownFmts.insert(QString::fromLatin1(name), Kuit::Fmt::fmt); \
} while (0)
◆ SETUP_ROL
#define SETUP_ROL | ( | rol, | |
name, | |||
fmt, | |||
cues | |||
) |
Value:
do { \
knownRols.insert(QString::fromLatin1(name), Kuit::Rol::rol); \
defFmts[Kuit::Rol::rol][Kuit::Cue::None] = Kuit::Fmt::fmt; \
{ \
using namespace Kuit::Cue; \
rolCues[Kuit::Rol::rol] << cues; \
} \
} while (0)
Definition: kuitsemantics.cpp:106
◆ SETUP_ROLCUEFMT
#define SETUP_ROLCUEFMT | ( | rol, | |
cue, | |||
fmt | |||
) |
Value:
do { \
defFmts[Kuit::Rol::rol][Kuit::Cue::cue] = Kuit::Fmt::fmt; \
} while (0)
◆ SETUP_TAG
#define SETUP_TAG | ( | tag, | |
name, | |||
atts, | |||
subs | |||
) |
Value:
do { \
knownTags.insert(QString::fromLatin1(name), Kuit::Tag::tag); \
tagNames.insert(Kuit::Tag::tag, QString::fromLatin1(name)); \
{ \
using namespace Kuit::Att; \
tagAtts[Kuit::Tag::tag] << atts; \
} \
{ \
using namespace Kuit::Tag; \
tagSubs[Kuit::Tag::tag] << subs << NumIntg << NumReal; \
} \
} while (0)
Definition: kuitsemantics.cpp:91
Definition: kuitsemantics.cpp:80
◆ SETUP_TAG_NL
#define SETUP_TAG_NL | ( | tag, | |
nlead | |||
) |
Value:
do { \
leadingNewlines.insert(Kuit::Tag::tag, nlead); \
} while (0)
◆ XXXX_NOOP2
#define XXXX_NOOP2 | ( | ctxt, | |
msg | |||
) | ctxt, msg |
Function Documentation
◆ shorten()
Definition at line 44 of file kuitsemantics.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.