Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qbytearrayalgorithms.h File Reference

(b347d487048cf36d609dd31952dbef1813b5b0e5)

#include <QtCore/qnamespace.h>
#include <string.h>
#include <stdarg.h>
+ Include dependency graph for qbytearrayalgorithms.h:

Go to the source code of this file.

Classes

class  QtPrivate::ParsedNumber< T >
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

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
 
qsizetype QtPrivate::findByteArray (QByteArrayView haystack, qsizetype from, char 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, char 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< qlonglongQtPrivate::toSignedInteger (QByteArrayView data, int base)
 
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< qulonglongQtPrivate::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)
 

Function Documentation

◆ qChecksum()

Q_CORE_EXPORT quint16 qChecksum ( QByteArrayView data,
Qt::ChecksumType standard = Qt::ChecksumIso3309 )
related

Referenced by QPicturePrivate::checkFormat(), and QPicturePaintEngine::end().

+ Here is the caller graph for this function:

◆ qsnprintf()

◆ qstrcmp()

Q_CORE_EXPORT int qstrcmp ( const char * str1,
const char * str2 )
related

◆ qstrcpy()

Q_CORE_EXPORT char * qstrcpy ( char * dst,
const char * src )
related

Referenced by QByteArray::qstrdup(), and QTest::toString().

+ Here is the caller graph for this function:

◆ qstrdup()

◆ qstricmp()

Q_CORE_EXPORT int qstricmp ( const char * ,
const char *  )
related

Referenced by QPSQLResult::data(), QTextStreamPrivate::getReal(), QCoreApplicationPrivate::initLocale(), and operator==().

+ Here is the caller graph for this function:

◆ qstrlen()

◆ qstrncmp()

◆ qstrncpy()

Q_CORE_EXPORT char * qstrncpy ( char * dst,
const char * src,
size_t len )
related

◆ qstrnicmp() [1/2]

Q_CORE_EXPORT int qstrnicmp ( const char * ,
const char * ,
size_t len )
related

◆ qstrnicmp() [2/2]

Q_CORE_EXPORT int qstrnicmp ( const char * str1,
qsizetype len1,
const char * str2,
qsizetype len2 )
Since
5.12

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 346 of file qbytearray.cpp.

References QtMiscUtils::caseCompareAscii(), i, Q_ASSERT, qMin(), and s2.

Referenced by QByteArray::compare(), QByteArrayView::compare(), and parseHeaderName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qstrnlen()

size_t qstrnlen ( const char * str,
size_t maxlen )
related

Definition at line 116 of file qbytearrayalgorithms.h.

Referenced by QTestPrivate::appendCharBuffer(), QLocale::currencySymbol(), findSectionName(), parseAttributeValues(), QtPrivate::qstrnlen_helper(), and QString::vasprintf().

+ Here is the caller graph for this function:

◆ qvsnprintf()

Q_CORE_EXPORT int qvsnprintf ( char * str,
size_t n,
const char * fmt,
va_list ap )
related

Referenced by QTest::addRow(), QByteArray::qsnprintf(), and QTest::qt_asprintf().

+ Here is the caller graph for this function: