Qt 4.8
|
#include "qplatformdefs.h"
#include "qtranslator.h"
#include "qfileinfo.h"
#include "qstring.h"
#include "qstringlist.h"
#include "qcoreapplication.h"
#include "qcoreapplication_p.h"
#include "qdatastream.h"
#include "qdir.h"
#include "qfile.h"
#include "qmap.h"
#include "qalgorithms.h"
#include "qhash.h"
#include "qtranslator_p.h"
#include "qlocale.h"
#include "qresource.h"
#include "private/qcore_unix_p.h"
#include <sys/mman.h>
#include <errno.h>
#include <stdlib.h>
#include "qobject_p.h"
Go to the source code of this file.
Classes | |
class | QTranslatorPrivate |
Macros | |
#define | CHECK_RANGE |
#define | MAP_FAILED -1 |
#define | MAP_FILE 0 |
#define | QT_USE_MMAP |
Enumerations | |
enum | Tag { Tag_End = 1, Tag_SourceText16, Tag_Translation, Tag_Context16, Tag_Obsolete1, Tag_SourceText, Tag_Context, Tag_Comment, Tag_Obsolete2 } |
Functions | |
static uint | elfHash (const char *name) |
static QString | find_translation (const QLocale &locale, const QString &filename, const QString &prefix, const QString &directory, const QString &suffix) |
static QString | getMessage (const uchar *m, const uchar *end, const char *context, const char *sourceText, const char *comment, int numerus) |
static bool | match (const uchar *found, const char *target, uint len) |
static int | numerusHelper (int n, const uchar *rules, int rulesSize) |
static quint16 | read16 (const uchar *data) |
static quint32 | read32 (const uchar *data) |
static quint8 | read8 (const uchar *data) |
Variables | |
static const uchar | magic [MagicLength] |
static const int | MagicLength = 16 |
#define CHECK_RANGE |
Referenced by numerusHelper().
#define MAP_FAILED -1 |
Referenced by QTranslatorPrivate::do_load().
#define MAP_FILE 0 |
Referenced by QTranslatorPrivate::do_load().
#define QT_USE_MMAP |
Definition at line 64 of file qtranslator.cpp.
enum Tag |
Enumerator | |
---|---|
Tag_End | |
Tag_SourceText16 | |
Tag_Translation | |
Tag_Context16 | |
Tag_Obsolete1 | |
Tag_SourceText | |
Tag_Context | |
Tag_Comment | |
Tag_Obsolete2 |
Definition at line 86 of file qtranslator.cpp.
|
static |
|
static |
Definition at line 586 of file qtranslator.cpp.
Referenced by QTranslator::load().
|
static |
Definition at line 806 of file qtranslator.cpp.
Referenced by QTranslatorPrivate::do_translate().
Definition at line 101 of file qtranslator.cpp.
Referenced by QDBusAbstractInterface::callWithArgumentList(), QTranslatorPrivate::do_translate(), QRegExpMatchState::drain(), findEncoding(), QFontDatabase::findFont(), getFcPattern(), QGraphicsAnchorLayoutPrivate::getGraphParts(), getMessage(), QTreeView::keyboardSearch(), QAbstractItemView::keyboardSearch(), QFontEngineMultiFT::loadEngine(), loadFc(), loadWin(), QFontDatabase::loadXlfd(), QResourceRoot::mappingRoot(), QShortcutMap::matches(), QKeySequence::matches(), QRegExpAutomatonState::QRegExpAutomatonState(), registerFont(), QCss::StyleSelector::selectorMatches(), QEglContext::setApi(), QAbstractItemModel::sibling(), and QDir::temp().
|
static |
Definition at line 130 of file qtranslator.cpp.
Referenced by QTranslatorPrivate::do_translate().
Definition at line 757 of file qtranslator.cpp.
Referenced by QTranslatorPrivate::do_load(), QTranslatorPrivate::do_translate(), and getMessage().
Definition at line 747 of file qtranslator.cpp.
Referenced by QTranslatorPrivate::do_load(), QTranslatorPrivate::do_translate(), and getMessage().
|
static |
Definition at line 96 of file qtranslator.cpp.
Referenced by QTranslatorPrivate::do_load().
|
static |
Definition at line 95 of file qtranslator.cpp.
Referenced by QTranslatorPrivate::do_load().