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

(a725b57da0ecb15cf360150caac4526dea2b7023)

#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)
constexpr bool QtPrivate::isAsciiUpper (char32_t c) noexcept
constexpr char QtPrivate::toAsciiLower (char ch) noexcept
constexpr int QtPrivate::caseCompareAscii (char lhs, char rhs) noexcept
constexpr int QtPrivate::qstrnicmp_impl (const char *s1, const char *s2, size_t len)
constexpr int QtPrivate::qstrnicmp_impl (const char *s1, qsizetype len1, const char *s2, qsizetype len2)
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 *)
int qstrnicmp (const char *s1, const char *s2, size_t len)
int qstrnicmp (const char *s1, qsizetype len1, const char *s2, qsizetype len2=-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 180 of file qbytearrayalgorithms.h.

◆ qstrncmp()

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

Definition at line 206 of file qbytearrayalgorithms.h.

◆ qstrncpy()

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

◆ qstrnicmp() [1/2]

int qstrnicmp ( const char * s1,
const char * s2,
size_t len )
related

◆ qstrnicmp() [2/2]

int qstrnicmp ( const char * s1,
qsizetype len1,
const char * s2,
qsizetype len2 = -1 )
Since
5.12

A helper for QByteArray::compare. Compares len1 bytes from s1 to len2 bytes from s2. If len2 is -1, then s2 is expected to be '\0'-terminated.

◆ qstrnlen()

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

Definition at line 192 of file qbytearrayalgorithms.h.