qconststring.3qt
来自「Qt/Embedded是一个多平台的C++图形用户界面应用程序框架」· 3QT 代码 · 共 49 行
3QT
49 行
.TH QConstString 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQConstString \- A QString which uses constant Unicode data.SH SYNOPSIS.br.PP\fC#include <qstring.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "\fBQConstString\fR ( QChar * " "unicode" ", uint length ) ".br.ti -1c.BI "\fB~QConstString\fR () ".br.ti -1c.BI "const QString& \fBstring\fR () const".br.in -1c.SH DESCRIPTIONA QString which uses constant Unicode data..PPIn order to minimize copying, highly optimized applications can use QConstString to provide a QString-compatible object from existing Unicode data. It is then the user's responsibility to make sure that the Unicode data must exist for the entire lifetime of the QConstString object..SH MEMBER FUNCTION DOCUMENTATION.SH "QConstString::QConstString ( QChar * unicode, uint length )"Constructs a QConstString that uses the first \fIlength\fR Unicode characters in the array \fIunicode.\fR Any attempt to modify copies of the string will cause it to create a copy of the data, thus it remains forever unmodified..PPNote that \fIunicode\fR is \fInot copied.\fR The caller \fImust\fR be able to guarantee that \fIunicode\fR will not be deleted or modified. Since that is generally not the case with \fCconst\fR strings (they are references), this constructor demands a non-const pointer even though it never modifies \fIunicode.\fR.SH "QConstString::~QConstString ()"Destroys the QConstString, creating a copy of the data if other strings are still using it..SH "const QString& QConstString::string () const"Returns a constant string referencing the data passed duringconstruction..SH "SEE ALSO".BR http://doc.trolltech.com/qconststring.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?