![]() |
Qt 6.x
The Qt SDK
|
#include <QtCore/qnamespace.h>
#include <string.h>
#include <stdarg.h>
Go to the source code of this file.
Classes | |
class | QtPrivate::ParsedNumber< T > |
Namespaces | |
namespace | QtPrivate |
\macro QT_NAMESPACE | |
Functions | |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | QtPrivate::startsWith (QByteArrayView haystack, QByteArrayView needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | QtPrivate::endsWith (QByteArrayView haystack, QByteArrayView needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | QtPrivate::findByteArray (QByteArrayView haystack, qsizetype from, QByteArrayView needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | QtPrivate::lastIndexOf (QByteArrayView haystack, qsizetype from, QByteArrayView needle) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION qsizetype | QtPrivate::count (QByteArrayView haystack, QByteArrayView needle) noexcept |
Q_CORE_EXPORT int | QtPrivate::compareMemory (QByteArrayView lhs, QByteArrayView rhs) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION QByteArrayView | QtPrivate::trimmed (QByteArrayView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool | QtPrivate::isValidUtf8 (QByteArrayView s) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< double > | QtPrivate::toDouble (QByteArrayView a) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< float > | QtPrivate::toFloat (QByteArrayView a) noexcept |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< qlonglong > | QtPrivate::toSignedInteger (QByteArrayView data, int base) |
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< qulonglong > | QtPrivate::toUnsignedInteger (QByteArrayView data, int base) |
template<typename T , typename ByteArrayView , typename = std::enable_if_t<std::is_same_v<ByteArrayView, QByteArrayView>>> | |
static T | QtPrivate::toIntegral (ByteArrayView data, bool *ok, int base) |
Q_CORE_EXPORT char * | qstrdup (const char *) |
size_t | qstrlen (const char *str) |
size_t | qstrnlen (const char *str, size_t maxlen) |
Q_CORE_EXPORT char * | qstrcpy (char *dst, const char *src) |
Q_CORE_EXPORT char * | qstrncpy (char *dst, const char *src, size_t len) |
Q_CORE_EXPORT int | qstrcmp (const char *str1, const char *str2) |
int | qstrncmp (const char *str1, const char *str2, size_t len) |
Q_CORE_EXPORT int | qstricmp (const char *, const char *) |
Q_CORE_EXPORT int | qstrnicmp (const char *, const char *, size_t len) |
Q_CORE_EXPORT int | qstrnicmp (const char *, qsizetype, const char *, qsizetype=-1) |
Q_CORE_EXPORT int | qvsnprintf (char *str, size_t n, const char *fmt, va_list ap) |
Q_CORE_EXPORT int | qsnprintf (char *str, size_t n, const char *fmt,...) |
Q_CORE_EXPORT quint16 | qChecksum (QByteArrayView data, Qt::ChecksumType standard=Qt::ChecksumIso3309) |
|
related |
Referenced by QPicturePrivate::checkFormat(), and QPicturePaintEngine::end().
|
related |
Referenced by QTest::_q_compareSequence(), QCsvBenchmarkLogger::addBenchmarkResult(), compareHelper(), compareHelper(), QD3D11GraphicsPipeline::create(), fileId(), formatFailMessage(), QTest::Internal::QCborValueFormatter::formatSimpleType(), QTest::Internal::QCborValueFormatter::formatTag(), QTest::handleFailOnWarning(), QThreadPipe::init(), QTest::Internal::QCborValueFormatter::innerFormat(), parseAttribute(), parseAttributeValues(), QTest::qCompare(), QTest::qCompare(), QTest::qPrintDataTags(), qt_asciiToDouble(), QTestResult::reportResult(), setupLightVariableNames(), setupShadowMapVariableNames(), QPlainTestLogger::startLogging(), QJUnitTestLogger::stopLogging(), QPlainTestLogger::stopLogging(), timeUnit(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::Internal::toString(), QTestResult::verify(), and write_xbm_image().
|
related |
Referenced by QAndroidAudioSource::QAndroidAudioSource(), QDBusAdaptorConnector::addAdaptor(), QFFmpegMetaData::addEntry(), QTeamCityLogger::addIncident(), QMimeBinaryProvider::addParents(), allSubObjects(), availableDevices(), QQmlPrivate::boolClassInfo(), QMetaObject::checkConnectArgs(), checkHandle(), QQmlPrivate::classElementName(), MyTestClass::cleanup(), QPSQLDriver::commitTransaction(), QCollatorSortKey::compare(), QTest::compare_string_helper(), createApplication(), createQQmlType(), QPpdPrintDevice::defaultColorMode(), QCocoaPrintDevice::defaultColorMode(), QPixmapStyle::drawControl(), QProxyStylePrivate::ensureBaseStyle(), QPixmapStyle::eventFilter(), QCUPSSupport::findPpdOption(), QEGLPlatformContext::getProcAddress(), importImp(), QQmlPrivate::indexOfOwnClassInfo(), QCoreApplicationPrivate::initLocale(), QMetaMethod::invokeOnGadget(), jump(), QOpenGLContext::makeCurrent(), myCategoryFilter(), operator<(), operator<(), operator<(), operator<(), parseArgs(), QPixmapStyle::polish(), QApplicationPrivate::process_cmdline(), QTest::qInit(), qmlConvertBoolConfigOption(), QQmlPrivate::qmlregister(), querySqlite(), QMimeBinaryProvider::resolveAlias(), retrieveLabel(), QDeviceDiscoveryUDev::scanConnectedDevices(), QWizard::setDefaultProperty(), QPixmapStyle::unpolish(), QQuick3DCustomMaterial::updateSpatialNode(), QQuick3DEffect::updateSpatialNode(), QXcbKeyboard::updateVModMapping(), and while().
|
related |
Referenced by QByteArray::qstrdup(), and QTest::toString().
|
related |
Referenced by QTest::Internal::QCborValueFormatter::format(), QTest::Internal::QCborValueFormatter::format(), QTest::Internal::QCborValueFormatter::format(), QTest::formatString(), QDirectFbIntegration::initializeDirectFB(), QTest::TestMethods::invokeTests(), QTest::qExpectFail(), QTest::qPrintDataTags(), qputenv(), set_text(), QTestElementAttribute::setPair(), QMessagePattern::setPattern(), QTest::toHexRepresentation(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::Internal::toString(), QTest::Internal::toString(), QTest::toString(), QTest::Internal::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::toString(), QTest::Internal::toString(), QTest::toString< QHostAddress >(), v4StackTrace(), and Jpeg2000JasperReader::write().
|
related |
Referenced by QPSQLResult::data(), QTextStreamPrivate::getReal(), QCoreApplicationPrivate::initLocale(), and operator==().
|
related |
Definition at line 98 of file qbytearrayalgorithms.h.
Referenced by QByteArrayMatcher::QByteArrayMatcher(), QByteArray::append(), QAuthenticatorPrivate::calculateResponse(), QMetaObject::checkConnectArgs(), QOpenGLShader::compileSourceCode(), QMetaObject::connectSlotsByName(), QWindowsMimeText::convertToMime(), QPSQLResult::data(), extract_location(), fileArchitecture(), QString::fromLatin1(), QString::fromLocal8Bit(), QString::fromUtf8(), getQtLibsFromElf(), QMetaMethod::invoke(), QMetaObject::invokeMethod(), QMetaMethod::invokeOnGadget(), QMetaEnum::keyToValue(), QDBusMessagePrivate::makeLocal(), QMetaObject::normalizedType(), QPSQLResult::numRowsAffected(), QDataStream::operator<<(), parseHtmlMetaForEncoding(), QIPAddressUtils::parseIp4Internal(), parseNumbersArray(), QByteArray::prepend(), printError(), printMethodNotFoundWarning(), qAppFileName(), qMetaTypeTypeInternal(), qmlTypeName(), qmlTypeName(), QTest::qPrintDataTags(), qsvg_get_hex_rgb(), qt_get_hex_rgb(), QFSFileEnginePrivate::readLineFdFh(), scanImports(), QNdefNfcUriRecord::setUri(), QConcatenable< const char * >::size(), QFont::stringToTag(), toByteView(), QAsn1Element::toString(), QString::vasprintf(), QIODevice::write(), and write_xbm_image().
|
related |
Definition at line 124 of file qbytearrayalgorithms.h.
Referenced by QTgaFile::QTgaFile(), QKtxHandler::canRead(), QBmpHandler::canRead(), QXpmHandler::canRead(), QGifHandler::canRead(), QPdfIOHandler::canRead(), QMacHeifHandler::canRead(), QMacJp2Handler::canRead(), QMetaObject::connectSlotsByName(), QWidgetPrivate::create(), QGIFFormat::decode(), QLocaleData::doubleToString(), QWidget::event(), QFontEngineFT::init(), QT_BEGIN_NAMESPACE::isDeadKeyEvent(), QOpenGLContext::makeCurrent(), QTest::qFindTestData(), read_dib_fileheader(), QGIFFormat::scan(), and QV4::ExecutableCompilationUnit::verifyHeader().
|
related |
Referenced by QNtlmPhase1Block::QNtlmPhase1Block(), QNtlmPhase3Block::QNtlmPhase3Block(), QFileSystemEngine::currentPath(), QRhiD3D11::debugMarkBegin(), QRhiD3D11::debugMarkMsg(), QTestCharBuffer::reset(), QT_BEGIN_NAMESPACE::textureCoordVariableName(), and QT_BEGIN_NAMESPACE::textureCoordVaryingName().
|
related |
Q_CORE_EXPORT int qstrnicmp | ( | const char * | str1, |
qsizetype | len1, | ||
const char * | str2, | ||
qsizetype | len2 | ||
) |
A helper for QByteArray::compare. Compares len1 bytes from str1 to len2 bytes from str2. If len2 is -1, then str2 is expected to be '\0'-terminated.
Definition at line 339 of file qbytearray.cpp.
References QtMiscUtils::caseCompareAscii(), i, Q_ASSERT, qMin(), and s2.
Referenced by QByteArray::compare(), QByteArrayView::compare(), parseHeaderName(), and parseHeaderName().
|
related |
Definition at line 110 of file qbytearrayalgorithms.h.
Referenced by QTestPrivate::appendCharBuffer(), QLocale::currencySymbol(), findSectionName(), parseAttributeValues(), and QString::vasprintf().
|
related |
Referenced by QTest::addRow(), QByteArray::qsnprintf(), and QTest::qt_asprintf().