libtdepim

TQStrictUtf7Codec Class Reference

#include <qutf7codec.h>

Inheritance diagram for TQStrictUtf7Codec:
TQUtf7Codec

Public Member Functions

const char * name () const
int mibEnum () const
TQTextEncoder * makeEncoder () const
Public Member Functions inherited from TQUtf7Codec
int mibEnum () const
const char * name () const
const char * mimeName () const
TQTextDecoder * makeDecoder () const
TQTextEncoder * makeEncoder () const
bool canEncode (TQChar) const
bool canEncode (const TQString &) const
int heuristicContentMatch (const char *chars, int len) const

Detailed Description

This is a version of TQUtf7Codec, which should only be used in MIME transfer.

It differs from TQUtf7Codec only in that the encoder escapes additional characters (the RFC2152 "optional direct set"), which might not be allowed in RFC822/RFC2047 header fields.

You should only use this codec for encoding, since it's output is pure UTF-7 and can equally well be decoded by TQUtf7Codec's decoder.

To distinguish between the two variants, this class has MIB enum -1012 (the nagative of UTF-7) and the somewhat awkward name "X-QT-UTF-7-STRICT". The MIME preferred charset name is still "UTF-7", though.

A variant of TQUtf7Codec, which protectes certain characters in MIME transport

Author
Marc Mutz mutz@.nosp@m.kde..nosp@m.org

Definition at line 84 of file qutf7codec.h.

Constructor & Destructor Documentation

◆ TQStrictUtf7Codec()

TQStrictUtf7Codec::TQStrictUtf7Codec ( )
inline

Definition at line 86 of file qutf7codec.h.

Member Function Documentation

◆ makeEncoder()

TQTextEncoder * TQStrictUtf7Codec::makeEncoder ( ) const

Definition at line 546 of file qutf7codec.cpp.

◆ mibEnum()

int TQStrictUtf7Codec::mibEnum ( ) const

Definition at line 34 of file qutf7codec.cpp.

◆ name()

const char * TQStrictUtf7Codec::name ( ) const

Definition at line 42 of file qutf7codec.cpp.


The documentation for this class was generated from the following files: