lokalize
#include "jobs.h"
#include "catalog.h"
#include "project.h"
#include "diff.h"
#include "prefs_lokalize.h"
#include "version.h"
#include "stemming.h"
#include <kdebug.h>
#include <kstandarddirs.h>
#include <threadweaver/ThreadWeaver.h>
#include <threadweaver/Thread.h>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QStringBuilder>
#include <QRegExp>
#include <QMap>
#include <iostream>
#include <math.h>
#include <QXmlDefaultHandler>
#include <QXmlSimpleReader>
#include <QXmlStreamWriter>
#include "jobs.moc"
Go to the source code of this file.
|
static void | addToIndex (qlonglong sourceId, QString sourceString, QRegExp &rxClean1, const QString &accel, QSqlDatabase &db) |
|
static bool | doInsertEntry (CatalogString source, CatalogString target, const QString &ctxt, bool approved, qlonglong fileId, QSqlDatabase &db, QRegExp &rxClean1, const QString &accel, qlonglong priorId, qlonglong &mainId) |
|
static bool | doRemoveEntry (qlonglong mainId, QRegExp &rxClean1, const QString &accel, QSqlDatabase &db) |
|
static void | doSplit (QString &cleanEn, QStringList &words, QRegExp &rxClean1, const QString &accel) |
|
static QString | escape (QString str) |
|
static TMConfig | getConfig (QSqlDatabase &db, bool useCache=true) |
|
static qlonglong | getFileId (const QString &path, QSqlDatabase &db) |
|
static void | getStats (const QSqlDatabase &db, int &pairsCount, int &uniqueSourcesCount, int &uniqueTranslationsCount) |
|
static void | initPgDb (QSqlDatabase &db) |
|
static bool | initSqliteDb (QSqlDatabase &db) |
|
QMap< uint, qlonglong > | invertMap (const QMap< qlonglong, uint > &source) |
|
static QString | makeAcceledString (QString source, const QString &accel, const QVariant &accelPos) |
|
static void | removeFromIndex (qlonglong mainId, qlonglong sourceId, QString sourceString, QRegExp &rxClean1, const QString &accel, QSqlDatabase &db) |
|
static void | setConfig (QSqlDatabase &db, const TMConfig &c) |
|
#define TM_DELIMITER '\v' |
#define TM_NOTAPPROVED 0x04 |
#define TM_SEPARATOR '\b' |
splits string into words, removing any markup
TODO segmentation by sentences...
Definition at line 65 of file jobs.cpp.
static void getStats |
( |
const QSqlDatabase & |
db, |
|
|
int & |
pairsCount, |
|
|
int & |
uniqueSourcesCount, |
|
|
int & |
uniqueTranslationsCount |
|
) |
| |
|
static |
QMap<uint,qlonglong> invertMap |
( |
const QMap< qlonglong, uint > & |
source | ) |
|
|
inline |
remove source string from index if there are no other 'good' entries using it but the entry specified with mainId
Definition at line 232 of file jobs.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.