1QConstString(3qt) QConstString(3qt)
2
3
4
6 QConstString - String objects using constant Unicode data
7
9 All the functions in this class are reentrant when Qt is built with
10 thread support.</p>
11
12 #include <qstring.h>
13
14 Public Members
15 QConstString ( const QChar * unicode, uint length )
16 ~QConstString ()
17 const QString & string () const
18
20 The QConstString class provides string objects using constant Unicode
21 data.
22
23 In order to minimize copying, highly optimized applications can use
24 QConstString to provide a QString-compatible object from existing
25 Unicode data. It is then the programmer's responsibility to ensure that
26 the Unicode data exists for the entire lifetime of the QConstString
27 object.
28
29 A QConstString is created with the QConstString constructor. The string
30 held by the object can be obtained by calling string().
31
32 See also Text Related Classes.
33
36 Constructs a QConstString that uses the first length Unicode characters
37 in the array unicode. Any attempt to modify copies of the string will
38 cause it to create a copy of the data, thus it remains forever
39 unmodified.
40
41 The data in unicode is not copied. The caller must be able to guarantee
42 that unicode will not be deleted or modified.
43
45 Destroys the QConstString, creating a copy of the data if other strings
46 are still using it.
47
49 Returns a constant string referencing the data passed during
50 construction.
51
52
54 http://doc.trolltech.com/qconststring.html
55 http://www.trolltech.com/faq/tech.html
56
58 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
59 license file included in the distribution for a complete license
60 statement.
61
63 Generated automatically from the source code.
64
66 If you find a bug in Qt, please report it as described in
67 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
68 help you. Thank you.
69
70 The definitive Qt documentation is provided in HTML format; it is
71 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
72 web browser. This man page is provided as a convenience for those users
73 who prefer man pages, although this format is not officially supported
74 by Trolltech.
75
76 If you find errors in this manual page, please report them to qt-
77 bugs@trolltech.com. Please include the name of the manual page
78 (qconststring.3qt) and the Qt version (3.3.8).
79
80
81
82Trolltech AS 2 February 2007 QConstString(3qt)