QtCore: replace null and nullptr with \nullptr in documentation
Replace null and '\c nullptr' with \nullptr in the documentation. Change-Id: Ib9e0cfc2eb2830b213e6523773603d56180b0998 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
46278b77aa
commit
91deac4a65
@ -1636,14 +1636,15 @@ bool QCoreApplication::compressEvent(QEvent *event, QObject *receiver, QPostEven
|
||||
|
||||
/*!
|
||||
Immediately dispatches all events which have been previously queued
|
||||
with QCoreApplication::postEvent() and which are for the object \a receiver
|
||||
and have the event type \a event_type.
|
||||
with QCoreApplication::postEvent() and which are for the object \a
|
||||
receiver and have the event type \a event_type.
|
||||
|
||||
Events from the window system are \e not dispatched by this
|
||||
function, but by processEvents().
|
||||
|
||||
If \a receiver is null, the events of \a event_type are sent for all
|
||||
objects. If \a event_type is 0, all the events are sent for \a receiver.
|
||||
If \a receiver is \nullptr, the events of \a event_type are sent for
|
||||
all objects. If \a event_type is 0, all the events are sent for
|
||||
\a receiver.
|
||||
|
||||
\note This method must be called from the thread in which its QObject
|
||||
parameter, \a receiver, lives.
|
||||
@ -1824,10 +1825,10 @@ void QCoreApplicationPrivate::sendPostedEvents(QObject *receiver, int event_type
|
||||
call it, be aware that killing events may cause \a receiver to
|
||||
break one or more invariants.
|
||||
|
||||
If \a receiver is null, the events of \a eventType are removed for
|
||||
all objects. If \a eventType is 0, all the events are removed for
|
||||
\a receiver. You should never call this function with \a eventType
|
||||
of 0.
|
||||
If \a receiver is \nullptr, the events of \a eventType are removed
|
||||
for all objects. If \a eventType is 0, all the events are removed
|
||||
for \a receiver. You should never call this function with \a
|
||||
eventType of 0.
|
||||
|
||||
\threadsafe
|
||||
*/
|
||||
@ -2140,7 +2141,7 @@ static void replacePercentN(QString *result, int n)
|
||||
|
||||
\a disambiguation is an identifying string, for when the same \a
|
||||
sourceText is used in different roles within the same context. By
|
||||
default, it is null.
|
||||
default, it is \nullptr.
|
||||
|
||||
See the \l QTranslator and \l QObject::tr() documentation for
|
||||
more information about contexts, disambiguations and comments.
|
||||
|
@ -3522,7 +3522,7 @@ bool QMetaProperty::isStored(const QObject *object) const
|
||||
false. e.g., the \c text property is the \c USER editable property
|
||||
of a QLineEdit.
|
||||
|
||||
If \a object is null, the function returns \c false if the \c
|
||||
If \a object is \nullptr, the function returns \c false if the \c
|
||||
{Q_PROPERTY()}'s \c USER attribute is false. Otherwise it returns
|
||||
true.
|
||||
|
||||
|
@ -432,7 +432,7 @@ struct DefinedTypesFilter {
|
||||
\since 5.0
|
||||
|
||||
Returns a copy of \a copy, assuming it is of the type that this
|
||||
QMetaType instance was created for. If \a copy is null, creates
|
||||
QMetaType instance was created for. If \a copy is \nullptr, creates
|
||||
a default constructed instance.
|
||||
|
||||
\sa QMetaType::destroy()
|
||||
|
@ -3284,7 +3284,7 @@ QMetaObject::Connection QMetaObject::connect(const QObject *sender, int signal_i
|
||||
\internal
|
||||
Same as the QMetaObject::connect, but \a signal_index must be the result of QObjectPrivate::signalIndex
|
||||
|
||||
method_index is relative to the rmeta metaobject, if rmeta is null, then it is absolute index
|
||||
method_index is relative to the rmeta metaobject, if rmeta is \nullptr, then it is absolute index
|
||||
|
||||
the QObjectPrivate::Connection* has a refcount of 2, so it must be passed to a QMetaObject::Connection
|
||||
*/
|
||||
@ -3856,7 +3856,7 @@ void QMetaObject::activate(QObject *sender, int signal_index, void **argv)
|
||||
It is different from QMetaObject::indexOfSignal(): indexOfSignal is the same as indexOfMethod
|
||||
while QObjectPrivate::signalIndex is smaller because it doesn't give index to slots.
|
||||
|
||||
If \a meta is not 0, it is set to the meta-object where the signal was found.
|
||||
If \a meta is not \nullptr, it is set to the meta-object where the signal was found.
|
||||
*/
|
||||
int QObjectPrivate::signalIndex(const char *signalName,
|
||||
const QMetaObject **meta) const
|
||||
|
@ -1768,7 +1768,7 @@ Q_CORE_EXPORT void QVariantPrivate::registerHandler(const int /* Modules::Names
|
||||
\fn QVariant::QVariant(int typeId, const void *copy)
|
||||
|
||||
Constructs variant of type \a typeId, and initializes with
|
||||
\a copy if \a copy is not 0.
|
||||
\a copy if \a copy is not \nullptr.
|
||||
|
||||
Note that you have to pass the address of the variable you want stored.
|
||||
|
||||
@ -1797,7 +1797,7 @@ Q_CORE_EXPORT void QVariantPrivate::registerHandler(const int /* Modules::Names
|
||||
\internal
|
||||
|
||||
Constructs a variant private of type \a type, and initializes with \a copy if
|
||||
\a copy is not 0.
|
||||
\a copy is not \nullptr.
|
||||
*/
|
||||
|
||||
void QVariant::create(int type, const void *copy)
|
||||
|
@ -112,7 +112,7 @@ static char *_q_uuidToHex(const QUuid &uuid, char *dst, QUuid::StringFormat mode
|
||||
|
||||
Parses the string representation of a UUID (with optional surrounding "{}")
|
||||
by reading at most MaxStringUuidLength (38) characters from \a src, which
|
||||
may be \c nullptr. Stops at the first invalid character (which includes a
|
||||
may be \nullptr. Stops at the first invalid character (which includes a
|
||||
premature NUL).
|
||||
|
||||
Returns the successfully parsed QUuid, or a null QUuid in case of failure.
|
||||
|
@ -108,7 +108,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
QCborValue can contain a value of "null", which is not of any specific type.
|
||||
It resembles the C++ \c {std::nullptr_t} type, whose only possible value is
|
||||
\c nullptr. QCborValue has a constructor taking such a type and creates a
|
||||
\nullptr. QCborValue has a constructor taking such a type and creates a
|
||||
null QCborValue.
|
||||
|
||||
Null values are used to indicate that an optional value is not present. In
|
||||
@ -417,7 +417,7 @@ QT_BEGIN_NAMESPACE
|
||||
using toSimpleType() as well as isSimpleType(st).
|
||||
|
||||
CBOR simple types are types that do not have any associated value, like
|
||||
C++'s \c{std::nullptr_t} type, whose only possible value is \c nullptr.
|
||||
C++'s \c{std::nullptr_t} type, whose only possible value is \nullptr.
|
||||
|
||||
If \a st is \c{QCborSimpleType::Null}, the resulting QCborValue will be of
|
||||
the \l{Type}{Null} type and similarly for \c{QCborSimpleType::Undefined}.
|
||||
|
@ -606,7 +606,7 @@ bool QSemaphore::tryAcquire(int n, int timeout)
|
||||
\fn QSemaphoreReleaser::semaphore() const
|
||||
|
||||
Returns a pointer to the QSemaphore object provided to the constructor,
|
||||
or by the last move assignment, if any. Otherwise, returns \c nullptr.
|
||||
or by the last move assignment, if any. Otherwise, returns \nullptr.
|
||||
*/
|
||||
|
||||
/*!
|
||||
@ -614,7 +614,7 @@ bool QSemaphore::tryAcquire(int n, int timeout)
|
||||
|
||||
Cancels this QSemaphoreReleaser such that the destructor will no longer
|
||||
call \c{semaphore()->release()}. Returns the value of semaphore()
|
||||
before this call. After this call, semaphore() will return \c nullptr.
|
||||
before this call. After this call, semaphore() will return \nullptr.
|
||||
|
||||
To enable again, assign a new QSemaphoreReleaser:
|
||||
|
||||
|
@ -239,8 +239,8 @@ qCalculateGrowingBlockSize(size_t elementCount, size_t elementSize, size_t heade
|
||||
Returns a duplicate string.
|
||||
|
||||
Allocates space for a copy of \a src, copies it, and returns a
|
||||
pointer to the copy. If \a src is nullptr, it immediately returns
|
||||
nullptr.
|
||||
pointer to the copy. If \a src is \nullptr, it immediately returns
|
||||
\nullptr.
|
||||
|
||||
Ownership is passed to the caller, so the returned string must be
|
||||
deleted using \c delete[].
|
||||
@ -258,7 +258,7 @@ char *qstrdup(const char *src)
|
||||
|
||||
Copies all the characters up to and including the '\\0' from \a
|
||||
src into \a dst and returns a pointer to \a dst. If \a src is
|
||||
nullptr, it immediately returns nullptr.
|
||||
\nullptr, it immediately returns \nullptr.
|
||||
|
||||
This function assumes that \a dst is large enough to hold the
|
||||
contents of \a src.
|
||||
@ -291,7 +291,7 @@ char *qstrcpy(char *dst, const char *src)
|
||||
Copies at most \a len bytes from \a src (stopping at \a len or the
|
||||
terminating '\\0' whichever comes first) into \a dst and returns a
|
||||
pointer to \a dst. Guarantees that \a dst is '\\0'-terminated. If
|
||||
\a src or \a dst is nullptr, returns nullptr immediately.
|
||||
\a src or \a dst is \nullptr, returns \nullptr immediately.
|
||||
|
||||
This function assumes that \a dst is at least \a len characters
|
||||
long.
|
||||
@ -326,7 +326,7 @@ char *qstrncpy(char *dst, const char *src, uint len)
|
||||
A safe \c strlen() function.
|
||||
|
||||
Returns the number of characters that precede the terminating '\\0',
|
||||
or 0 if \a str is nullptr.
|
||||
or 0 if \a str is \nullptr.
|
||||
|
||||
\sa qstrnlen()
|
||||
*/
|
||||
@ -338,7 +338,7 @@ char *qstrncpy(char *dst, const char *src, uint len)
|
||||
A safe \c strnlen() function.
|
||||
|
||||
Returns the number of characters that precede the terminating '\\0', but
|
||||
at most \a maxlen. If \a str is nullptr, returns 0.
|
||||
at most \a maxlen. If \a str is \nullptr, returns 0.
|
||||
|
||||
\sa qstrlen()
|
||||
*/
|
||||
@ -352,10 +352,10 @@ char *qstrncpy(char *dst, const char *src, uint len)
|
||||
is less than \a str2, 0 if \a str1 is equal to \a str2 or a
|
||||
positive value if \a str1 is greater than \a str2.
|
||||
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both nullptr.
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both \nullptr.
|
||||
|
||||
Special case 2: Returns an arbitrary non-zero value if \a str1 is
|
||||
nullptr or \a str2 is nullptr (but not both).
|
||||
\nullptr or \a str2 is \nullptr (but not both).
|
||||
|
||||
\sa qstrncmp(), qstricmp(), qstrnicmp(), {8-bit Character Comparisons},
|
||||
QByteArray::compare()
|
||||
@ -378,10 +378,10 @@ int qstrcmp(const char *str1, const char *str2)
|
||||
str1 is equal to \a str2 or a positive value if \a str1 is greater
|
||||
than \a str2.
|
||||
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both nullptr.
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both \nullptr.
|
||||
|
||||
Special case 2: Returns a random non-zero value if \a str1 is nullptr
|
||||
or \a str2 is nullptr (but not both).
|
||||
Special case 2: Returns a random non-zero value if \a str1 is \nullptr
|
||||
or \a str2 is \nullptr (but not both).
|
||||
|
||||
\sa qstrcmp(), qstricmp(), qstrnicmp(), {8-bit Character Comparisons},
|
||||
QByteArray::compare()
|
||||
@ -398,10 +398,10 @@ int qstrcmp(const char *str1, const char *str2)
|
||||
str1 is equal to \a str2 or a positive value if \a str1 is greater
|
||||
than \a str2.
|
||||
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both nullptr.
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both \nullptr.
|
||||
|
||||
Special case 2: Returns a random non-zero value if \a str1 is nullptr
|
||||
or \a str2 is nullptr (but not both).
|
||||
Special case 2: Returns a random non-zero value if \a str1 is \nullptr
|
||||
or \a str2 is \nullptr (but not both).
|
||||
|
||||
\sa qstrcmp(), qstrncmp(), qstrnicmp(), {8-bit Character Comparisons},
|
||||
QByteArray::compare()
|
||||
@ -491,10 +491,10 @@ int qstricmp(const char *str1, const char *str2)
|
||||
is equal to \a str2 or a positive value if \a str1 is greater than \a
|
||||
str2.
|
||||
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both nullptr.
|
||||
Special case 1: Returns 0 if \a str1 and \a str2 are both \nullptr.
|
||||
|
||||
Special case 2: Returns a random non-zero value if \a str1 is nullptr
|
||||
or \a str2 is nullptr (but not both).
|
||||
Special case 2: Returns a random non-zero value if \a str1 is \nullptr
|
||||
or \a str2 is \nullptr (but not both).
|
||||
|
||||
\sa qstrcmp(), qstrncmp(), qstricmp(), {8-bit Character Comparisons},
|
||||
QByteArray::compare()
|
||||
@ -3912,7 +3912,7 @@ T toIntegral_helper(const char *data, bool *ok, int base)
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\note The conversion of the number is performed in the default C locale,
|
||||
@ -3938,7 +3938,7 @@ qlonglong QByteArray::toLongLong(bool *ok, int base) const
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\note The conversion of the number is performed in the default C locale,
|
||||
@ -3963,7 +3963,7 @@ qulonglong QByteArray::toULongLong(bool *ok, int base) const
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\snippet code/src_corelib_tools_qbytearray.cpp 36
|
||||
@ -3990,7 +3990,7 @@ int QByteArray::toInt(bool *ok, int base) const
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\note The conversion of the number is performed in the default C locale,
|
||||
@ -4017,7 +4017,7 @@ uint QByteArray::toUInt(bool *ok, int base) const
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\snippet code/src_corelib_tools_qbytearray.cpp 37
|
||||
@ -4045,7 +4045,7 @@ long QByteArray::toLong(bool *ok, int base) const
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\note The conversion of the number is performed in the default C locale,
|
||||
@ -4069,7 +4069,7 @@ ulong QByteArray::toULong(bool *ok, int base) const
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\note The conversion of the number is performed in the default C locale,
|
||||
@ -4094,7 +4094,7 @@ short QByteArray::toShort(bool *ok, int base) const
|
||||
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\note The conversion of the number is performed in the default C locale,
|
||||
@ -4115,7 +4115,7 @@ ushort QByteArray::toUShort(bool *ok, int base) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for other reasons (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\snippet code/src_corelib_tools_qbytearray.cpp 38
|
||||
@ -4151,7 +4151,7 @@ double QByteArray::toDouble(bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for other reasons (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\snippet code/src_corelib_tools_qbytearray.cpp 38float
|
||||
|
@ -1265,7 +1265,7 @@ QString QLocale::scriptToString(QLocale::Script script)
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1283,7 +1283,7 @@ short QLocale::toShort(const QString &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1301,7 +1301,7 @@ ushort QLocale::toUShort(const QString &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1319,7 +1319,7 @@ int QLocale::toInt(const QString &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1337,7 +1337,7 @@ uint QLocale::toUInt(const QString &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1357,7 +1357,7 @@ qlonglong QLocale::toLongLong(const QString &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1376,7 +1376,7 @@ qulonglong QLocale::toULongLong(const QString &s, bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for any other reason (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function does not fall back to the 'C' locale if the string
|
||||
@ -1398,7 +1398,7 @@ float QLocale::toFloat(const QString &s, bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for any other reason (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function does not fall back to the 'C' locale if the string
|
||||
@ -1424,7 +1424,7 @@ double QLocale::toDouble(const QString &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1444,7 +1444,7 @@ short QLocale::toShort(const QStringRef &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1464,7 +1464,7 @@ ushort QLocale::toUShort(const QStringRef &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1484,7 +1484,7 @@ int QLocale::toInt(const QStringRef &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1504,7 +1504,7 @@ uint QLocale::toUInt(const QStringRef &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1526,7 +1526,7 @@ qlonglong QLocale::toLongLong(const QStringRef &s, bool *ok) const
|
||||
|
||||
If the conversion fails the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1547,7 +1547,7 @@ qulonglong QLocale::toULongLong(const QStringRef &s, bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for any other reason (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function does not fall back to the 'C' locale if the string
|
||||
@ -1571,7 +1571,7 @@ float QLocale::toFloat(const QStringRef &s, bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for any other reason (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function does not fall back to the 'C' locale if the string
|
||||
@ -1600,7 +1600,7 @@ double QLocale::toDouble(const QStringRef &s, bool *ok) const
|
||||
|
||||
If the conversion fails, the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1620,7 +1620,7 @@ short QLocale::toShort(QStringView s, bool *ok) const
|
||||
|
||||
If the conversion fails, the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1640,7 +1640,7 @@ ushort QLocale::toUShort(QStringView s, bool *ok) const
|
||||
|
||||
If the conversion fails, the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1660,7 +1660,7 @@ int QLocale::toInt(QStringView s, bool *ok) const
|
||||
|
||||
If the conversion fails, the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1680,7 +1680,7 @@ uint QLocale::toUInt(QStringView s, bool *ok) const
|
||||
|
||||
If the conversion fails, the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1702,7 +1702,7 @@ qlonglong QLocale::toLongLong(QStringView s, bool *ok) const
|
||||
|
||||
If the conversion fails, the function returns 0.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1723,7 +1723,7 @@ qulonglong QLocale::toULongLong(QStringView s, bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for any other reason (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
This function ignores leading and trailing whitespace.
|
||||
@ -1744,7 +1744,7 @@ float QLocale::toFloat(QStringView s, bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for any other reason (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
Unlike QString::toDouble(), this function does not fall back to
|
||||
|
@ -368,7 +368,7 @@ QT_BEGIN_NAMESPACE
|
||||
*/
|
||||
|
||||
/*! \fn template <class T> bool QSharedDataPointer<T>::operator!() const
|
||||
Returns \c true if the \e{d pointer} of \e this is null.
|
||||
Returns \c true if the \e{d pointer} of \e this is \nullptr.
|
||||
*/
|
||||
|
||||
/*! \fn template <class T> void QSharedDataPointer<T>::detach()
|
||||
@ -583,7 +583,7 @@ QT_BEGIN_NAMESPACE
|
||||
\since 5.12
|
||||
|
||||
Returns a pointer to the shared object, and resets \e this to be null.
|
||||
That is, this function sets the \e{d pointer} of \e this to \c nullptr.
|
||||
That is, this function sets the \e{d pointer} of \e this to \nullptr.
|
||||
*/
|
||||
|
||||
/*! \fn template <class T> QExplicitlySharedDataPointer<T>::operator bool () const
|
||||
@ -591,7 +591,7 @@ QT_BEGIN_NAMESPACE
|
||||
*/
|
||||
|
||||
/*! \fn template <class T> bool QExplicitlySharedDataPointer<T>::operator!() const
|
||||
Returns \c true if the \e{d pointer} of \e this is null.
|
||||
Returns \c true if the \e{d pointer} of \e this is \nullptr.
|
||||
*/
|
||||
|
||||
/*! \fn template <class T> void QExplicitlySharedDataPointer<T>::detach()
|
||||
|
@ -579,8 +579,8 @@
|
||||
/*!
|
||||
\fn template <class T> bool QSharedPointer<T>::operator !() const
|
||||
|
||||
Returns \c true if this object is null. This function is suitable
|
||||
for use in \tt if-constructs, like:
|
||||
Returns \c true if this object is \nullptr. This function is
|
||||
suitable for use in \tt if-constructs, like:
|
||||
|
||||
\snippet code/src_corelib_tools_qsharedpointer.cpp 5
|
||||
|
||||
@ -854,8 +854,8 @@
|
||||
/*!
|
||||
\fn template <class T> bool QWeakPointer<T>::operator !() const
|
||||
|
||||
Returns \c true if this object is null. This function is suitable
|
||||
for use in \tt if-constructs, like:
|
||||
Returns \c true if this object is \nullptr. This function is
|
||||
suitable for use in \tt if-constructs, like:
|
||||
|
||||
\snippet code/src_corelib_tools_qsharedpointer.cpp 9
|
||||
|
||||
|
@ -7231,7 +7231,7 @@ QString QString::vasprintf(const char *cformat, va_list ap)
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7273,7 +7273,7 @@ qlonglong QString::toIntegral_helper(const QChar *data, int len, bool *ok, int b
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7317,7 +7317,7 @@ qulonglong QString::toIntegral_helper(const QChar *data, uint len, bool *ok, int
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7348,7 +7348,7 @@ long QString::toLong(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7378,7 +7378,7 @@ ulong QString::toULong(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7407,7 +7407,7 @@ int QString::toInt(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7436,7 +7436,7 @@ uint QString::toUInt(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7465,7 +7465,7 @@ short QString::toShort(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -7496,7 +7496,7 @@ ushort QString::toUShort(bool *ok, int base) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for other reasons (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\snippet qstring/main.cpp 66
|
||||
@ -7535,7 +7535,7 @@ double QString::toDouble(bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for other reasons (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
\warning The QString content may only contain valid numerical characters
|
||||
@ -9440,11 +9440,11 @@ QString &QString::setRawData(const QChar *unicode, int size)
|
||||
The range \c{[first,last)} must remain valid for the lifetime of
|
||||
this Latin-1 string object.
|
||||
|
||||
Passing \c nullptr as \a first is safe if \a last is \c nullptr,
|
||||
Passing \nullptr as \a first is safe if \a last is \nullptr,
|
||||
too, and results in a null Latin-1 string.
|
||||
|
||||
The behavior is undefined if \a last precedes \a first, \a first
|
||||
is \c nullptr and \a last is not, or if \c{last - first >
|
||||
is \nullptr and \a last is not, or if \c{last - first >
|
||||
INT_MAX}.
|
||||
*/
|
||||
|
||||
@ -11933,7 +11933,7 @@ QStringRef QStringRef::trimmed() const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -11958,7 +11958,7 @@ qint64 QStringRef::toLongLong(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -11985,7 +11985,7 @@ quint64 QStringRef::toULongLong(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -12012,7 +12012,7 @@ long QStringRef::toLong(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -12038,7 +12038,7 @@ ulong QStringRef::toULong(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -12063,7 +12063,7 @@ int QStringRef::toInt(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -12088,7 +12088,7 @@ uint QStringRef::toUInt(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -12113,7 +12113,7 @@ short QStringRef::toShort(bool *ok, int base) const
|
||||
base, which is 10 by default and must be between 2 and 36, or 0.
|
||||
Returns 0 if the conversion fails.
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
If \a base is 0, the C language convention is used: If the string
|
||||
@ -12140,7 +12140,7 @@ ushort QStringRef::toUShort(bool *ok, int base) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for other reasons (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
The string conversion will always happen in the 'C' locale. For locale
|
||||
@ -12166,7 +12166,7 @@ double QStringRef::toDouble(bool *ok) const
|
||||
Returns an infinity if the conversion overflows or 0.0 if the
|
||||
conversion fails for other reasons (e.g. underflow).
|
||||
|
||||
If \a ok is not \c nullptr, failure is reported by setting *\a{ok}
|
||||
If \a ok is not \nullptr, failure is reported by setting *\a{ok}
|
||||
to \c false, and success by setting *\a{ok} to \c true.
|
||||
|
||||
The string conversion will always happen in the 'C' locale. For locale
|
||||
|
@ -232,9 +232,9 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
The range \c{[str,len)} must remain valid for the lifetime of this string view object.
|
||||
|
||||
Passing \c nullptr as \a str is safe if \a len is 0, too, and results in a null string view.
|
||||
Passing \nullptr as \a str is safe if \a len is 0, too, and results in a null string view.
|
||||
|
||||
The behavior is undefined if \a len is negative or, when positive, if \a str is \c nullptr.
|
||||
The behavior is undefined if \a len is negative or, when positive, if \a str is \nullptr.
|
||||
|
||||
This constructor only participates in overload resolution if \c Char is a compatible
|
||||
character type. The compatible character types are: \c QChar, \c ushort, \c char16_t and
|
||||
@ -249,11 +249,11 @@ QT_BEGIN_NAMESPACE
|
||||
The range \c{[first,last)} must remain valid for the lifetime of
|
||||
this string view object.
|
||||
|
||||
Passing \c nullptr as \a first is safe if \a last is nullptr, too,
|
||||
Passing \c \nullptr as \a first is safe if \a last is \nullptr, too,
|
||||
and results in a null string view.
|
||||
|
||||
The behavior is undefined if \a last precedes \a first, or \a first
|
||||
is \c nullptr and \a last is not.
|
||||
is \nullptr and \a last is not.
|
||||
|
||||
This constructor only participates in overload resolution if \c Char
|
||||
is a compatible character type. The compatible character types
|
||||
@ -269,7 +269,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
\a str must remain valid for the lifetime of this string view object.
|
||||
|
||||
Passing \c nullptr as \a str is safe and results in a null string view.
|
||||
Passing \nullptr as \a str is safe and results in a null string view.
|
||||
|
||||
This constructor only participates in overload resolution if \a
|
||||
str is not an array and if \c Char is a compatible character
|
||||
@ -332,7 +332,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
The string view will be empty if and only if \c{str.empty()}. It is unspecified
|
||||
whether this constructor can result in a null string view (\c{str.data()} would
|
||||
have to return \c nullptr for this).
|
||||
have to return \nullptr for this).
|
||||
|
||||
\sa isNull(), isEmpty()
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user