• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdecore
 

kdecore

  • kdecore
kcharsets.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 #ifndef KCHARSETS_H
20 #define KCHARSETS_H
21 
22 #include <tqstring.h>
23 #include <tqfont.h>
24 #include <tqstringlist.h>
25 #include <tqptrlist.h>
26 #include "kdelibs_export.h"
27 
28 class KGlobal;
29 class KCharsetsPrivate;
30 
31 class TQTextCodec;
32 
43 class KDECORE_EXPORT KCharsets
44 {
45  friend class KGlobal;
46 
47 protected:
51  KCharsets();
52 
53 public:
54 
58  virtual ~KCharsets();
59 
66  TQTextCodec *codecForName(const TQString &name) const;
67 
75  TQTextCodec *codecForName(const TQString &n, bool &ok) const;
76 
83  static TQChar fromEntity(const TQString &str);
93  static TQChar fromEntity(const TQString &str, int &len);
94 
101  static TQString toEntity(const TQChar &ch);
102 
110  static TQString resolveEntities( const TQString &text );
111 
116  TQStringList availableEncodingNames();
117 
122  TQStringList descriptiveEncodingNames();
123 
129  TQString languageForEncoding( const TQString &encoding );
130 
136  TQString encodingForName( const TQString &descriptiveName );
137 
138 private:
139  KCharsetsPrivate *d;
140 };
141 
142 #endif
KCharsets
Charset font and encoder/decoder handling.
Definition: kcharsets.h:44
KGlobal
Access to the KDE global objects.
Definition: kglobal.h:45

kdecore

Skip menu "kdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |