KDECore
kcharsets.cpp
Go to the documentation of this file.
325 * - using ISO-8859-1 for ASCII is only an approximation (as you cannot test if a character is part of the set)
430 * - KDE had always "CP 1251" as best fallback to PT 154. As Qt does not offer this encoding anymore, the codepage 1251 is used as fallback.
657 const QString description = i18nc( "@item Text character set", language_for_encoding_string + p[1] );
672 const QString description = i18nc("@item Text character set", language_for_encoding_string + p[1] );
747 // We have had no luck with QTextCodec::codecForName, so we must now process the name, so that QTextCodec::codecForName could work with it.
789 // ### TODO: while emergency conversions might be useful at read, it is not sure if they should be done if the application plans to write.
QString languageForEncoding(const QString &encoding) const
Returns the language the encoding is used for.
Definition: kcharsets.cpp:611
QTextCodec * codecForName(const QString &name) const
Provided for compatibility.
Definition: kcharsets.cpp:689
QStringList descriptiveEncodingNames() const
Lists the available encoding names together with a more descriptive language.
Definition: kcharsets.cpp:652
#define I18N_NOOP2(comment, x)
If the string is too ambiguous to be translated well to a non-english language, use this instead of I...
Definition: klocalizedstring.h:72
static const int language_for_encoding_indices[]
Definition: kcharsets.cpp:219
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
QList< QStringList > encodingsByScript() const
Lists the available encoding names grouped by script (or language that uses them).
Definition: kcharsets.cpp:665
QStringList availableEncodingNames() const
Lists all available encodings as names.
Definition: kcharsets.cpp:601
QString descriptionForEncoding(const QString &encoding) const
Returns a long description for an encoding name.
Definition: kcharsets.cpp:623
QTextCodec * codecForEncoding() const
Returns the user's preferred encoding.
Definition: klocale.cpp:650
static QString toEntity(const QChar &ch)
Converts a QChar to an entity.
Definition: kcharsets.cpp:548
QString encodingForName(const QString &descriptiveName) const
Returns the encoding for a string obtained with descriptiveEncodingNames().
Definition: kcharsets.cpp:635
static QString resolveEntities(const QString &text)
Scans the given string for entities (like &) and resolves them using fromEntity.
Definition: kcharsets.cpp:555
static QChar fromEntity(const QString &str)
Converts an entity to a character.
Definition: kcharsets.cpp:489
static const char * kcharsets_array_search(const char *start, const int *indices, const char *entry)
Definition: kcharsets.cpp:452
static const char language_for_encoding_string[]
Definition: kcharsets.cpp:153
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.