#include <kcharsets.h>
Public Methods | |
| virtual | ~KCharsets () |
| QTextCodec * | codecForName (const QString &name) const |
| QTextCodec * | codecForName (const QString &n, bool &ok) const |
| QStringList | availableEncodingNames () |
| QStringList | descriptiveEncodingNames () |
| QStringList | languages () |
| QStringList | encodingsForLanguage (const QString &language) |
| QString | languageForEncoding (const QString &encoding) |
| QString | encodingForName (const QString &descriptiveName) |
Static Public Methods | |
| QChar | fromEntity (const QString &str) |
| QChar | fromEntity (const QString &str, int &len) |
| QString | toEntity (const QChar &ch) |
| QString | resolveEntities (const QString &text) |
Protected Methods | |
| KCharsets () | |
This is needed, because Qt's font matching algorithm gives the font family a higher priority than the charset. For many applications this is not acceptable, since it can totally obscure the output, in languages which use non iso-8859-1 charsets.
Definition at line 44 of file kcharsets.h.
|
|
Protected constructor. If you need the kcharsets object, use KGlobal::charsets() instead. |
|
|
Destructor. |
|
|
Lists all available encodings as names.
|
|
||||||||||||
|
Tries to find a QTextCodec to convert the given encoding from and to Unicode. If no codec could be found the latin1 codec will be returned an
|
|
|
Provided for compatibility.
|
|
|
Lists the available encoding names together with a more descriptive language.
|
|
|
Returns the encoding for a string obtained with descriptiveEncodingNames().
|
|
|
Lists all available encodings for language name 'language'.
|
|
||||||||||||
|
Overloaded member function. Tries to find an entity in the QString str.
|
|
|
Converts an entity to a character. The string must contain only the entity without the trailing ';'.
|
|
|
Returns the language the encoding is used for.
|
|
|
Lists all languages.
|
|
|
Scans the given string for entities (like &) and resolves them using fromEntity.
|
|
|
Converts a QChar to an entity. The returned string does already contain the leading '&' and the trailing ';'.
|
1.2.18