summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/codecs/tqisciicodec_p.h
blob: be3c063db0450f19ce852cffe589193e06a8aa2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef TQISCIICODEC_H
#define TQISCIICODEC_H

#ifndef TQT_H
#include "tqtextcodec.h"
#endif // TQT_H

#ifndef TQT_NO_CODECS

class TQIsciiCodec : public TQTextCodec {
public:
    TQIsciiCodec(int i);

    virtual int         mibEnum() const;
    virtual const char* mimeName () const;
    const   char*       name() const;

#if !defined(TQ_NO_USING_KEYWORD)
    using TQTextCodec::fromUnicode;
#endif

    TQCString fromUnicode(const TQString& uc, int& len_in_out) const;
    TQString  toUnicode(const char* chars, int len) const;

    int heuristicContentMatch(const char* chars, int len) const;
    int heuristicNameMatch(const char* hint) const;

private:
    int idx;
};

#endif // TQT_NO_CODECS
#endif // TQISCIIDEVCODEC_H