kcharsets.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KCHARSETS_H
00021 #define KCHARSETS_H
00022
00023 #include <qstring.h>
00024 #include <qfont.h>
00025 #include <qstringlist.h>
00026 #include <qptrlist.h>
00027
00028 class KGlobal;
00029 class KCharsetsPrivate;
00030
00031 class QTextCodec;
00032
00044 class KCharsets
00045 {
00046 friend class KGlobal;
00047
00048 protected:
00052 KCharsets();
00053
00054 public:
00055
00059 virtual ~KCharsets();
00060
00067 QTextCodec *codecForName(const QString &name) const;
00068
00076 QTextCodec *codecForName(const QString &n, bool &ok) const;
00077
00084 static QChar fromEntity(const QString &str);
00094 static QChar fromEntity(const QString &str, int &len);
00095
00102 static QString toEntity(const QChar &ch);
00103
00111 static QString resolveEntities( const QString &text );
00112
00117 QStringList availableEncodingNames();
00118
00123 QStringList descriptiveEncodingNames();
00124
00130 QString languageForEncoding( const QString &encoding );
00131
00137 QString encodingForName( const QString &descriptiveName );
00138
00139 private:
00140 KCharsetsPrivate *d;
00141 };
00142
00143 #endif
This file is part of the documentation for kdecore Library Version 3.3.0.