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>
Include dependency graph for kuitsemantics.cpp:
Go to the source code of this file.
Namespaces | |
Kuit | |
Kuit::Att | |
Kuit::Cue | |
Kuit::Fmt | |
Kuit::Rol | |
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
#define ENTITY_SUBRX "[a-z]+|#[0-9]+|#x[0-9a-fA-F]+" |
Definition at line 1110 of file kuitsemantics.cpp.
#define I18N_NOOP2 | ( | ctxt, | |
msg | |||
) | ctxt, msg |
#define I18N_NOOP2 | ( | ctxt, | |
msg | |||
) | metaTr(ctxt, msg) |
#define I18N_NOOP2 | ( | ctxt, | |
msg | |||
) | msg |
#define INLINES |
Value:
Definition: kuitsemantics.cpp:86
Definition: kuitsemantics.cpp:86
Definition: kuitsemantics.cpp:86
Definition: kuitsemantics.cpp:85
Definition: kuitsemantics.cpp:86
Definition: kuitsemantics.cpp:85
Definition: kuitsemantics.cpp:86
Definition: kuitsemantics.cpp:86
Definition: kuitsemantics.cpp:86
Definition: kuitsemantics.cpp:85
Definition: kuitsemantics.cpp:85
Definition: kuitsemantics.cpp:85
Definition: kuitsemantics.cpp:84
Definition: kuitsemantics.cpp:85
#define QL1S | ( | x | ) | QLatin1String(x) |
Definition at line 39 of file kuitsemantics.cpp.
#define SET_KEYNAME | ( | rawname | ) |
Value:
do { \
/* Normalize key, trim and all lower-case. */ \
m_keyNames[normname] = metaTr("keyboard-key-name", rawname); \
} while (0)
QString trimmed() const
QString toLower() const
QString fromLatin1(const char *str, int size)
#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: kuitsemantics.cpp:120
Definition: kuitsemantics.cpp:120
#define SETUP_ATT | ( | att, | |
name | |||
) |
Value:
do { \
knownAtts.insert(QString::fromLatin1(name), Kuit::Att::att); \
} while (0)
QString fromLatin1(const char *str, int size)
#define SETUP_CUE | ( | cue, | |
name | |||
) |
Value:
do { \
knownCues.insert(QString::fromLatin1(name), Kuit::Cue::cue); \
} while (0)
QString fromLatin1(const char *str, int size)
#define SETUP_FMT | ( | fmt, | |
name | |||
) |
Value:
do { \
knownFmts.insert(QString::fromLatin1(name), Kuit::Fmt::fmt); \
} while (0)
QString fromLatin1(const char *str, int size)
#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:108
QString fromLatin1(const char *str, int size)
#define SETUP_ROLCUEFMT | ( | rol, | |
cue, | |||
fmt | |||
) |
Value:
do { \
defFmts[Kuit::Rol::rol][Kuit::Cue::cue] = Kuit::Fmt::fmt; \
} while (0)
#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; \
} \
} while (0)
Definition: kuitsemantics.cpp:87
Definition: kuitsemantics.cpp:87
QString fromLatin1(const char *str, int size)
#define SETUP_TAG_NL | ( | tag, | |
nlead | |||
) |
Value:
do { \
leadingNewlines.insert(Kuit::Tag::tag, nlead); \
} while (0)
#define XXXX_NOOP2 | ( | ctxt, | |
msg | |||
) | ctxt, msg |
Function Documentation
Definition at line 44 of file kuitsemantics.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.