![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qstringlist.h"#include "qunicodetables_p.h"#include <private/qstringconverter_p.h>#include <private/qtools_p.h>#include "qlocale_tools_p.h"#include "private/qsimd_p.h"#include <qnumeric.h>#include <qdatastream.h>#include <qlist.h>#include "qlocale.h"#include "qlocale_p.h"#include "qspan.h"#include "qstringbuilder.h"#include "qstringmatcher.h"#include "qvarlengtharray.h"#include "qdebug.h"#include "qendian.h"#include "qcollator.h"#include "qttypetraits.h"#include <private/qfunctions_p.h>#include <limits.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include <wchar.h>#include "qchar.cpp"#include "qlatin1stringmatcher.h"#include "qstringmatcher.cpp"#include "qstringiterator_p.h"#include "qstringalgorithms_p.h"#include <QtCore/private/qnumeric_p.h>#include <algorithm>#include <functional>#include <limits>Go to the source code of this file.
Classes | |
| struct | ArgEscapeData |
Namespaces | |
| namespace | QUnicodeTables |
Macros | |
| #define | REHASH(a) |
| #define | ATTRIBUTE_NO_SANITIZE |
| #define | CSTR_LESS_THAN 1 |
| #define | CSTR_EQUAL 2 |
| #define | CSTR_GREATER_THAN 3 |
| #define | CASE(mod, type) |
Typedefs | |
| using | CaseInsensitiveL1 = QtPrivate::QCaseInsensitiveLatin1Hash |
Enumerations | |
| enum | LengthMod { lm_none , lm_hh , lm_h , lm_l , lm_ll , lm_L , lm_j , lm_z , lm_t , lm_none , lm_hh , lm_h , lm_l , lm_ll , lm_L , lm_j , lm_z , lm_t } |
| enum | LengthMod { lm_none , lm_hh , lm_h , lm_l , lm_ll , lm_L , lm_j , lm_z , lm_t , lm_none , lm_hh , lm_h , lm_l , lm_ll , lm_L , lm_j , lm_z , lm_t } |
Functions | |
| qsizetype | qFindStringBoyerMoore (QStringView haystack, qsizetype from, QStringView needle, Qt::CaseSensitivity cs) |
| static qptrdiff | isAscii_helper (const char16_t *ptr, qsizetype lenlen) |
| Q_CORE_EXPORT void | qt_from_latin1 (char16_t *dstdst, const char *str, size_t sizesize) noexcept |
| static QVarLengthArray< char16_t > | qt_from_latin1_to_qvla (QLatin1StringView str) |
| template<bool Checked> | |
| static void | qt_to_latin1_internal (uchar *dstdst, const char16_t *srcsrc, qsizetype lengthlength) |
| void | qt_to_latin1 (uchar *dstdst, const char16_t *srcsrc, qsizetype lengthlength) |
| void | qt_to_latin1_unchecked (uchar *dstdst, const char16_t *srcsrc, qsizetype lengthlength) |
| static QVarLengthArray< char > | qt_to_latin1_unchecked_to_qvla (QStringView str) |
| static Q_NEVER_INLINE int | ucstricmp (qsizetype alen, const char16_t *aa, qsizetype blen, const char16_t *bb) |
| static Q_NEVER_INLINE int | ucstricmp (qsizetype alen, const char16_t *aa, qsizetype blen, const char *bb) |
| static Q_NEVER_INLINE int | ucstricmp8 (const char *utf8, const char *utf8end, const QChar *utf16, const QChar *utf16end) |
| template<StringComparisonMode Mode> | |
| static int | ucstrncmp (const char16_t *aa, const char16_t *bb, size_t l) |
| template<StringComparisonMode Mode> | |
| static int | ucstrncmp (const char16_t *aa, const char *bb, size_t l) |
| template<typename Char2> | |
| static bool | ucstreq (const char16_t *aa, size_t alen, const Char2 *bb) |
| template<typename Char2> | |
| static int | ucstrcmp (const char16_t *aa, size_t alen, const Char2 *bb, size_t blen) |
| static int | latin1nicmp (const char *lhsChar, qsizetype lSize, const char *rhsChar, qsizetype rSize) |
| static int | qArgDigitValue (QChar ch) noexcept |
| static bool | needsReallocate (const QString &str, qsizetype newSize) |
| template<typename T> | |
| static void | insert_helper (QString &str, qsizetype i, const T &toInsert) |
| template<typename T> | |
| static void | removeStringImpl (QString &ss, const T &needle, Qt::CaseSensitivity cs) |
| static void | replace_helper (QString &str, QSpan< qsizetype > indicesindices, qsizetype blen, QStringView after) |
| static bool | checkCase (QStringView ss, QUnicodeTables::Case cc) noexcept |
| static QByteArray | qt_convert_to_latin1 (QStringView stringstring) |
| static QByteArray | qt_convert_to_local_8bit (QStringView stringstring) |
| static QByteArray | qt_convert_to_utf8 (QStringView str) |
| static QList< uint > | qt_convert_to_ucs4 (QStringView stringstring) |
| bool | comparesEqual (const QByteArrayView &lhs, const QChar &rhs) |
| Qt::strong_ordering | compareThreeWay (const QByteArrayView &lhs, const QChar &rhs) |
| bool | comparesEqual (const QByteArrayView &lhs, char16_t rhs) |
| Qt::strong_ordering | compareThreeWay (const QByteArrayView &lhs, char16_t rhs) |
| bool | comparesEqual (const QByteArray &lhs, const QChar &rhs) |
| Qt::strong_ordering | compareThreeWay (const QByteArray &lhs, const QChar &rhs) |
| bool | comparesEqual (const QByteArray &lhs, char16_t rhs) |
| Qt::strong_ordering | compareThreeWay (const QByteArray &lhs, char16_t rhs) |
| template<typename T> | |
| static Q_NEVER_INLINE QString | QUnicodeTables::detachAndConvertCase (T &str, QStringIterator it, QUnicodeTables::Case which) |
| template<typename T> | |
| static QString | QUnicodeTables::convertCase (T &str, QUnicodeTables::Case which) |
| static uint | parse_flag_characters (const char *&cc) noexcept |
| static int | parse_field_width (const char *&cc, qsizetype sizesize) |
| static bool | can_consume (const char *&cc, char ch) noexcept |
| static LengthMod | parse_length_modifier (const char *&cc) noexcept |
| template<typename Int> | |
| static Int | toIntegral (QStringView stringstring, bool *ok, int base) |
| static void | normalize (QString *datadata, QString::NormalizationForm modemode, QChar::UnicodeVersion version, qsizetype from) |
| static ArgEscapeData | findArgEscapes (QStringView ss) |
| static QString | replaceArgEscapes (QStringView ss, const ArgEscapeData &d, qsizetype field_width, QStringView arg, QStringView larg, QChar fillChar) |
| static char16_t | to_unicode (const QChar cc) |
| static char16_t | to_unicode (const char cc) |
| template<typename Char> | |
| static int | getEscape (const Char *uc, qsizetype *pos, qsizetype lenlen) |
| Q_DECLARE_TYPEINFO (Part, Q_PRIMITIVE_TYPE) | |
| QDataStream & | operator<< (QDataStream &out, const QString &str) |
| QDataStream & | operator>> (QDataStream &inin, QString &str) |
| template<typename Haystack, typename Needle> | |
| qsizetype | qt_count_with_matcher (Haystack haystack, Needle needle, Qt::CaseSensitivity cs) noexcept |
| template<typename String> | |
| qsizetype | qt_count_with_findstring (String haystack, String needle, Qt::CaseSensitivity cs) noexcept |
| template<typename Haystack, typename Needle> | |
| qsizetype | qt_count_impl (Haystack haystack, Needle needle, Qt::CaseSensitivity cs) |
| #define ATTRIBUTE_NO_SANITIZE |
Definition at line 368 of file qstring.cpp.
| #define CASE | ( | mod, | |
| type ) |
| #define CSTR_EQUAL 2 |
Definition at line 6880 of file qstring.cpp.
| #define CSTR_GREATER_THAN 3 |
Definition at line 6881 of file qstring.cpp.
| #define CSTR_LESS_THAN 1 |
Definition at line 6879 of file qstring.cpp.
| #define REHASH | ( | a | ) |
Definition at line 67 of file qstring.cpp.
Definition at line 1338 of file qstring.cpp.
| enum LengthMod |
| Enumerator | |
|---|---|
| lm_none | |
| lm_hh | |
| lm_h | |
| lm_l | |
| lm_ll | |
| lm_L | |
| lm_j | |
| lm_z | |
| lm_t | |
| lm_none | |
| lm_hh | |
| lm_h | |
| lm_l | |
| lm_ll | |
| lm_L | |
| lm_j | |
| lm_z | |
| lm_t | |
Definition at line 7324 of file qstring.cpp.
| enum LengthMod |
| Enumerator | |
|---|---|
| lm_none | |
| lm_hh | |
| lm_h | |
| lm_l | |
| lm_ll | |
| lm_L | |
| lm_j | |
| lm_z | |
| lm_t | |
| lm_none | |
| lm_hh | |
| lm_h | |
| lm_l | |
| lm_ll | |
| lm_L | |
| lm_j | |
| lm_z | |
| lm_t | |
Definition at line 7324 of file qstring.cpp.
|
inlinestaticnoexcept |
Definition at line 7326 of file qstring.cpp.
Referenced by parse_length_modifier().
|
staticnoexcept |
Definition at line 5470 of file qstring.cpp.
References QStringIterator::hasNext(), and QStringIterator::next().
|
noexcept |
Definition at line 6746 of file qstring.cpp.
|
noexcept |
Definition at line 6735 of file qstring.cpp.
|
noexcept |
Definition at line 6724 of file qstring.cpp.
|
noexcept |
Definition at line 6713 of file qstring.cpp.
|
noexcept |
Definition at line 6751 of file qstring.cpp.
|
noexcept |
Definition at line 6740 of file qstring.cpp.
|
noexcept |
Definition at line 6729 of file qstring.cpp.
|
noexcept |
Definition at line 6718 of file qstring.cpp.
|
static |
Definition at line 8554 of file qstring.cpp.
References ArgEscapeData::min_escape.
Definition at line 8971 of file qstring.cpp.
T is a view or a container on/of QChar, char16_t, or char
Definition at line 2956 of file qstring.cpp.
Definition at line 842 of file qstring.cpp.
|
static |
Definition at line 1340 of file qstring.cpp.
References QtPrivate::QCaseInsensitiveLatin1Hash::difference().
Definition at line 2623 of file qstring.cpp.
|
static |
Definition at line 8416 of file qstring.cpp.
References QUnicodeTables::NormalizationCorrectionsVersionMax, QUnicodeTables::NormalizationCorrection::old_mapping, QUnicodeTables::uc_normalization_corrections, QUnicodeTables::NormalizationCorrection::ucs4, and QUnicodeTables::NormalizationCorrection::version.
|
Definition at line 9470 of file qstring.cpp.
|
Definition at line 9501 of file qstring.cpp.
|
static |
Definition at line 7307 of file qstring.cpp.
|
staticnoexcept |
Definition at line 7287 of file qstring.cpp.
References QLocaleData::AddTrailingZeroes, QLocaleData::AlwaysShowSign, QLocaleData::BlankBeforePositive, QLocaleData::ForcePoint, QLocaleData::GroupDigits, QLocaleData::LeftAdjusted, QLocaleData::ShowBase, QLocaleData::ZeroPadded, and QLocaleData::ZeroPadExponent.
|
staticnoexcept |
| Q_DECLARE_TYPEINFO | ( | Part | , |
| Q_PRIMITIVE_TYPE | ) |
|
staticnoexcept |
Definition at line 1598 of file qstring.cpp.
| qsizetype qFindStringBoyerMoore | ( | QStringView | haystack, |
| qsizetype | haystackOffset, | ||
| QStringView | needle, | ||
| Qt::CaseSensitivity | cs ) |
Definition at line 323 of file qstringmatcher.cpp.
|
static |
Definition at line 5567 of file qstring.cpp.
|
static |
Definition at line 5683 of file qstring.cpp.
|
static |
Definition at line 5776 of file qstring.cpp.
References QStringIterator::hasNext(), and QStringIterator::next().
|
static |
Definition at line 5729 of file qstring.cpp.
| qsizetype qt_count_impl | ( | Haystack | haystack, |
| Needle | needle, | ||
| Qt::CaseSensitivity | cs ) |
Definition at line 9656 of file qstring.cpp.
|
noexcept |
Definition at line 9645 of file qstring.cpp.
|
noexcept |
Definition at line 9631 of file qstring.cpp.
|
noexcept |
Definition at line 896 of file qstring.cpp.
|
static |
Definition at line 971 of file qstring.cpp.
Definition at line 1160 of file qstring.cpp.
|
static |
Definition at line 981 of file qstring.cpp.
Definition at line 1165 of file qstring.cpp.
|
static |
Definition at line 1170 of file qstring.cpp.
|
static |
Definition at line 3467 of file qstring.cpp.
|
static |
Definition at line 3658 of file qstring.cpp.
|
static |
Definition at line 8630 of file qstring.cpp.
References ArgEscapeData::min_escape.
|
inlinestatic |
Definition at line 8968 of file qstring.cpp.
References QLatin1Char::QLatin1Char(), and QLatin1Char::unicode().
|
inlinestatic |
Definition at line 8967 of file qstring.cpp.
|
static |
Definition at line 7639 of file qstring.cpp.
|
static |
Definition at line 1331 of file qstring.cpp.
|
static |
Definition at line 1324 of file qstring.cpp.
|
static |
Definition at line 1204 of file qstring.cpp.
References foldCase().
|
static |
Definition at line 1179 of file qstring.cpp.
|
static |
Definition at line 1222 of file qstring.cpp.
References QStringIterator::hasNext().
|
static |
Definition at line 1302 of file qstring.cpp.
|
static |
Definition at line 1249 of file qstring.cpp.