Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qbytearrayalgorithms.h File Reference

(8e75e1c1852fee22982cebe1f02cfeff4699aafe)

#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
 

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
 
qsizetype QtPrivate::lastIndexOf (QByteArrayView haystack, qsizetype from, uchar 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_DECL_PURE_FUNCTION Q_CORE_EXPORT const voidqmemrchr (const void *s, int needle, size_t n) noexcept
 
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 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

◆ qmemrchr()

Q_DECL_PURE_FUNCTION Q_CORE_EXPORT const void * qmemrchr ( const void * s,
int needle,
size_t n )
related

◆ 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

◆ qstrdup()

Q_CORE_EXPORT char * qstrdup ( const char * )
related

◆ qstricmp()

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

◆ qstrlen()

size_t qstrlen ( const char * str)
related

Definition at line 106 of file qbytearrayalgorithms.h.

◆ qstrncmp()

int qstrncmp ( const char * str1,
const char * str2,
size_t len )
related

Definition at line 132 of file qbytearrayalgorithms.h.

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

◆ qstrnlen()

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

Definition at line 118 of file qbytearrayalgorithms.h.