1QTextEncoder(3qt) QTextEncoder(3qt)
2
3
4
6 QTextEncoder - State-based encoder
7
9 All the functions in this class are reentrant when Qt is built with
10 thread support.</p>
11
12 #include <qtextcodec.h>
13
14 Public Members
15 virtual ~QTextEncoder ()
16 virtual QCString fromUnicode ( const QString & uc, int & lenInOut ) = 0
17
19 The QTextEncoder class provides a state-based encoder.
20
21 The encoder converts Unicode into another format, remembering any state
22 that is required between calls.
23
24 See also QTextCodec::makeEncoder() and Internationalization with Qt.
25
28 Destroys the encoder.
29
31 [pure virtual]
32 Converts lenInOut characters (not bytes) from uc, producing a QCString.
33 lenInOut will be set to the length of the result (in bytes).
34
35 The encoder is free to record state to use when subsequent calls are
36 made to this function (for example, it might change modes with escape
37 sequences if needed during the encoding of one string, then assume that
38 mode applies when a subsequent call begins).
39
40
42 http://doc.trolltech.com/qtextencoder.html
43 http://www.trolltech.com/faq/tech.html
44
46 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
47 license file included in the distribution for a complete license
48 statement.
49
51 Generated automatically from the source code.
52
54 If you find a bug in Qt, please report it as described in
55 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
56 help you. Thank you.
57
58 The definitive Qt documentation is provided in HTML format; it is
59 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
60 web browser. This man page is provided as a convenience for those users
61 who prefer man pages, although this format is not officially supported
62 by Trolltech.
63
64 If you find errors in this manual page, please report them to qt-
65 bugs@trolltech.com. Please include the name of the manual page
66 (qtextencoder.3qt) and the Qt version (3.3.8).
67
68
69
70Trolltech AS 2 February 2007 QTextEncoder(3qt)