Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
translator.cpp File Reference

(d9e43af7ece745ef0922db12351d44f5933a8d5d)

#include "translator.h"
#include "simtexth.h"
#include <iostream>
#include <stdio.h>
#include <QtCore/QDebug>
#include <QtCore/QDir>
#include <QtCore/QFile>
#include <QtCore/QFileInfo>
#include <QtCore/QLocale>
#include <QtCore/QTextStream>
#include <private/qtranslator_p.h>
Include dependency graph for translator.cpp:

Go to the source code of this file.

Classes

class  TranslatorMessagePtrBase
class  TranslatorMessageIdPtr
class  TranslatorMessageContentPtr

Functions

QString friendlyString (const QString &str)
static QString elidedId (const QString &id, int len)
static QString makeMsgId (const TranslatorMessage &msg)
static QString guessFormat (const QString &filename, const QString &format)
static QString getDependencyName (const QString &filename, const QString &format)
 Q_DECLARE_TYPEINFO (TranslatorMessageIdPtr, Q_RELOCATABLE_TYPE)
size_t qHash (TranslatorMessageIdPtr tmp)
bool operator== (TranslatorMessageIdPtr tmp1, TranslatorMessageIdPtr tmp2)
 Q_DECLARE_TYPEINFO (TranslatorMessageContentPtr, Q_RELOCATABLE_TYPE)
size_t qHash (TranslatorMessageContentPtr tmp)
bool operator== (TranslatorMessageContentPtr tmp1, TranslatorMessageContentPtr tmp2)

Function Documentation

◆ elidedId()

QString elidedId ( const QString & id,
int len )
static

Definition at line 105 of file translator.cpp.

◆ friendlyString()

QString friendlyString ( const QString & str)

Definition at line 30 of file translator.cpp.

◆ getDependencyName()

QString getDependencyName ( const QString & filename,
const QString & format )
static

Definition at line 253 of file translator.cpp.

◆ guessFormat()

QString guessFormat ( const QString & filename,
const QString & format )
static

Definition at line 238 of file translator.cpp.

◆ makeMsgId()

QString makeMsgId ( const TranslatorMessage & msg)
static

Definition at line 110 of file translator.cpp.

◆ operator==() [1/2]

bool operator== ( TranslatorMessageContentPtr tmp1,
TranslatorMessageContentPtr tmp2 )
inline

Definition at line 572 of file translator.cpp.

◆ operator==() [2/2]

bool operator== ( TranslatorMessageIdPtr tmp1,
TranslatorMessageIdPtr tmp2 )
inline

Definition at line 550 of file translator.cpp.

◆ Q_DECLARE_TYPEINFO() [1/2]

Q_DECLARE_TYPEINFO ( TranslatorMessageContentPtr ,
Q_RELOCATABLE_TYPE  )

◆ Q_DECLARE_TYPEINFO() [2/2]

Q_DECLARE_TYPEINFO ( TranslatorMessageIdPtr ,
Q_RELOCATABLE_TYPE  )

◆ qHash() [1/2]

size_t qHash ( TranslatorMessageContentPtr tmp)
inline

Definition at line 563 of file translator.cpp.

◆ qHash() [2/2]

size_t qHash ( TranslatorMessageIdPtr tmp)
inline

Definition at line 545 of file translator.cpp.