|
| | QHashedString () |
| | QHashedString (const QString &stringstring) |
| | QHashedString (const QString &stringstring, quint32) |
| | QHashedString (const QHashedString &stringstring) |
| QHashedString & | operator= (const QHashedString &stringstring) |
| bool | operator== (const QHashedString &stringstring) const |
| bool | operator== (const QHashedStringRef &stringstring) const |
| quint32 | hash () const |
| quint32 | existingHash () const |
| constexpr | QString () noexcept=default |
| | Constructs a null string.
|
| | QString (const QChar *unicode, qsizetype sizesize=-1) |
| | Constructs a string initialized with the first size characters of the QChar array unicode.
|
| | QString (QChar cc) |
| | Constructs a string of size 1 containing the character ch.
|
| | QString (qsizetype sizesize, QChar c) |
| | Constructs a string of the given size with every character set to ch.
|
| | QString (QLatin1StringView latin1) |
| | Constructs a copy of the Latin-1 string viewed by str.
|
| | QString (QStringView sv) |
| | Constructs a string initialized with the string view's data.
|
| Q_DECL_CONSTEXPR_DTOR | QString (const QString &other) noexcept |
| | Constructs a copy of other.
|
| QString & | operator= (QChar cc) |
| QString & | operator= (const QString &) noexcept |
| | Assigns other to this string and returns a reference to this string.
|
| QString & | operator= (QLatin1StringView latin1) |
| Q_DECL_CONSTEXPR_DTOR | QString (QString &&other) noexcept=default |
| | Move-constructs a QString instance, making it point at the same object that other was pointing to.
|
| Q_DECL_CONSTEXPR_DTOR constexpr void | swap (QString &other) noexcept |
| constexpr qsizetype | size () const noexcept |
| | Returns the number of characters in this string.
|
| constexpr qsizetype | length () const noexcept |
| | Returns the number of characters in this string.
|
| constexpr bool | isEmpty () const noexcept |
| | Returns true if the string has no characters; otherwise returns false.
|
| void | resize (qsizetype sizesize) |
| | Sets the size of the string to size characters.
|
| void | resize (qsizetype size, QChar fillChar) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| void | resizeForOverwrite (qsizetype sizesize) |
| QString & | fill (QChar ch) |
| | Sets every character in the string to character ch.
|
| QString & | fill (QChar c, qsizetype sizesize) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Sets every character in the string to character ch.
|
| void | truncate (qsizetype pos) |
| | Truncates the string starting from, and including, the element at index position.
|
| void | chop (qsizetype nn) |
| | Removes n characters from the end of the string.
|
| QString & | slice (qsizetype pos) |
| QString & | slice (qsizetype pos, qsizetype nn) |
| qsizetype | capacity () const |
| | Returns the maximum number of characters that can be stored in the string without forcing a reallocation.
|
| void | reserve (qsizetype sizesize) |
| | Ensures the string has space for at least size characters.
|
| void | squeeze () |
| | Releases any memory not required to store the character data.
|
| const QChar * | unicode () const |
| | Returns a Unicode representation of the string.
|
| QChar * | data () |
| | Returns a pointer to the data stored in the QString.
|
| const QChar * | data () const |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| const QChar * | constData () const |
| | Returns a pointer to the data stored in the QString.
|
| void | detach () |
| | Ensures that this string's data is no longer \l{Implicit Sharing}{shared} with other instances.
|
| bool | isDetached () const |
| bool | isSharedWith (const QString &other) const |
| Q_DECL_CONSTEXPR_DTOR void | clear () |
| | Clears the contents of the string and makes it null.
|
| constexpr const QChar | at (qsizetype i) const |
| | Returns the character at the given index position in the string.
|
| constexpr const QChar | operator[] (qsizetype i) const |
| QChar & | operator[] (qsizetype i) |
| | Returns the character at the specified position in the string as a modifiable reference.
|
| constexpr QChar | front () const |
| QChar & | front () |
| constexpr QChar | back () const |
| QChar & | back () |
| template<typename T, if_integral_non_char< T > = true> |
| QString | arg (T aa, int fieldWidth=0, int base=10, QChar fillChar=u' ') const |
| template<typename T, if_floating_point< T > = true> |
| QString | arg (T aa, int fieldWidth=0, char formatformat='g', int precisionprecision=-1, QChar fillChar=u' ') const |
| template<typename T, if_string_like< T > = true> |
| QString | arg (const T &aa, int fieldWidth=0, QChar fillChar=u' ') const |
| | Returns a copy of this string with the lowest-numbered place-marker replaced by string a, i.e., %1, %2, ..., %99.
|
| template<typename... Args> |
| std::enable_if< sizeof...(Args)>=2 &&std::conjunction_v< is_string_like< Args >... >, QString >::type | arg (Args &&...args) const |
| static QString static QString | QT_CORE_INLINE_SINCE (6, 8) qsizetype indexOf(QChar c |
| | QT_CORE_INLINE_SINCE (6, 12) qsizetype indexOf(QLatin1StringView s |
| | QT_CORE_INLINE_SINCE (6, 12) qsizetype indexOf(const QString &s |
| qsizetype | indexOf (QStringView ss, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| qsizetype | lastIndexOf (QChar cc, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| | QT_CORE_INLINE_SINCE (6, 8) qsizetype lastIndexOf(QChar c |
| qsizetype | lastIndexOf (QLatin1StringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | QT_CORE_INLINE_SINCE (6, 12) qsizetype lastIndexOf(QLatin1StringView s |
| qsizetype | lastIndexOf (const QString &ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | QT_CORE_INLINE_SINCE (6, 12) qsizetype lastIndexOf(const QString &s |
| qsizetype | lastIndexOf (QStringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| qsizetype | lastIndexOf (QStringView ss, qsizetype from, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| bool | contains (QChar cc, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| bool | contains (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | Returns true if this string contains an occurrence of the string str; otherwise returns false.
|
| bool | contains (QLatin1StringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| bool | contains (QStringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| qsizetype | count (QChar cc, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| qsizetype | count (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | Returns the number of (potentially overlapping) occurrences of the string str in this string.
|
| qsizetype | count (QStringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| QString | section (QChar sep, qsizetype startstart, qsizetype endend=-1, SectionFlags flagsflags=SectionDefault) const |
| | This function returns a section of the string.
|
| QString | section (const QString &in_sep, qsizetype startstart, qsizetype endend=-1, SectionFlags flagsflags=SectionDefault) const |
| QString | left (qsizetype nn) const & |
| QString | left (qsizetype nn) && |
| QString | right (qsizetype nn) const & |
| QString | right (qsizetype nn) && |
| QString | mid (qsizetype position, qsizetype nn=-1) const & |
| QString | mid (qsizetype position, qsizetype nn=-1) && |
| QString | first (qsizetype nn) const & |
| QString | last (qsizetype nn) const & |
| QString | sliced (qsizetype pos) const & |
| QString | sliced (qsizetype pos, qsizetype nn) const & |
| QString | chopped (qsizetype nn) const & |
| QString | first (qsizetype nn) && |
| QString | last (qsizetype nn) && |
| QString | sliced (qsizetype pos) && |
| QString | sliced (qsizetype pos, qsizetype nn) && |
| QString | chopped (qsizetype nn) && |
| bool | startsWith (const QString &ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | Returns true if the string starts with s; otherwise returns false.
|
| bool | startsWith (QStringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| bool | startsWith (QLatin1StringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| bool | startsWith (QChar cc, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| bool | endsWith (const QString &ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | Returns true if the string ends with s; otherwise returns false.
|
| bool | endsWith (QStringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| bool | endsWith (QLatin1StringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| bool | endsWith (QChar cc, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| bool | isUpper () const |
| | Returns true if the string is uppercase, that is, it's identical to its toUpper() folding.
|
| bool | isLower () const |
| | Returns true if the string is lowercase, that is, it's identical to its toLower() folding.
|
| QString | leftJustified (qsizetype widthwidth, QChar fill=u' ', bool trunc=false) const |
| | Returns a string of size width that contains this string padded by the fill character.
|
| QString | rightJustified (qsizetype widthwidth, QChar fill=u' ', bool trunc=false) const |
| | Returns a string of size() width that contains the fill character followed by the string.
|
| QString | toLower () const & |
| QString | toLower () && |
| QString | toUpper () const & |
| QString | toUpper () && |
| QString | toCaseFolded () const & |
| QString | toCaseFolded () && |
| QString | trimmed () const & |
| QString | trimmed () && |
| QString | simplified () const & |
| QString | simplified () && |
| QString | toHtmlEscaped () const |
| QString & | insert (qsizetype i, QChar cc) |
| QString & | insert (qsizetype i, const QChar *uc, qsizetype lenlen) |
| QString & | insert (qsizetype i, const QString &ss) |
| QString & | insert (qsizetype i, QStringView vv) |
| QString & | insert (qsizetype i, QLatin1StringView ss) |
| QString & | insert (qsizetype i, QUtf8StringView ss) |
| QString & | append (QChar cc) |
| QString & | append (const QChar *uc, qsizetype lenlen) |
| QString & | append (const QString &s) |
| | Appends the string str onto the end of this string.
|
| QString & | append (QStringView vv) |
| QString & | append (QLatin1StringView ss) |
| QString & | append (QUtf8StringView ss) |
| QString & | prepend (QChar cc) |
| QString & | prepend (const QChar *uc, qsizetype lenlen) |
| QString & | prepend (const QString &s) |
| | Prepends the string str to the beginning of this string and returns a reference to this string.
|
| QString & | prepend (QStringView vv) |
| QString & | prepend (QLatin1StringView ss) |
| QString & | prepend (QUtf8StringView ss) |
| QString & | assign (QAnyStringView s) |
| QString & | assign (qsizetype nn, QChar cc) |
| template<typename InputIterator, if_compatible_iterator< InputIterator > = true> |
| QString & | assign (InputIterator firstfirst, InputIterator last) |
| QString & | operator+= (QChar cc) |
| QString & | operator+= (const QString &s) |
| | Appends the string other onto the end of this string and returns a reference to this string.
|
| QString & | operator+= (QStringView vv) |
| QString & | operator+= (QLatin1StringView ss) |
| QString & | operator+= (QUtf8StringView ss) |
| QString & | remove (qsizetype i, qsizetype len) |
| | Removes n characters from the string, starting at the given position index, and returns a reference to the string.
|
| QString & | remove (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| | Removes every occurrence of the character ch in this string, and returns a reference to this string.
|
| QString & | remove (QLatin1StringView s, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | remove (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| | Removes every occurrence of the given str string in this string, and returns a reference to this string.
|
| QString & | removeAt (qsizetype pos) |
| QString & | removeFirst () |
| QString & | removeLast () |
| template<typename Predicate> |
| QString & | removeIf (Predicate pred) |
| QString & | replace (qsizetype i, qsizetype lenlen, QChar after) |
| QString & | replace (qsizetype i, qsizetype lenlen, const QChar *ss, qsizetype slen) |
| QString & | replace (qsizetype i, qsizetype len, const QString &after) |
| | Replaces n characters beginning at index position with the string after and returns a reference to this string.
|
| QString & | replace (QChar before, QChar after, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | replace (const QChar *before, qsizetype blen, const QChar *after, qsizetype alen, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | replace (QLatin1StringView before, QLatin1StringView after, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | replace (QLatin1StringView before, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | replace (const QString &before, QLatin1StringView after, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | replace (const QString &before, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | replace (QChar cc, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QString & | replace (QChar cc, QLatin1StringView after, Qt::CaseSensitivity cs=Qt::CaseSensitive) |
| QStringList | split (const QString &sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | Splits the string into substrings wherever sep occurs, and returns the list of those strings.
|
| QStringList | split (QChar sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QStringList | split (const QRegularExpression &sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts) const |
| template<typename Needle, typename... Flags> |
| auto | tokenize (Needle &&needle, Flags...flags) const &noexcept(noexcept(qTokenize(std::declval< const QString & >(), std::forward< Needle >(needle), flags...))) -> decltype(qTokenize(*this, std::forward< Needle >(needle), flags...)) |
| template<typename Needle, typename... Flags> |
| auto | tokenize (Needle &&needle, Flags...flags) const &&noexcept(noexcept(qTokenize(std::declval< const QString >(), std::forward< Needle >(needle), flags...))) -> decltype(qTokenize(std::move(*this), std::forward< Needle >(needle), flags...)) |
| template<typename Needle, typename... Flags> |
| auto | tokenize (Needle &&needle, Flags...flags) &&noexcept(noexcept(qTokenize(std::declval< QString >(), std::forward< Needle >(needle), flags...))) -> decltype(qTokenize(std::move(*this), std::forward< Needle >(needle), flags...)) |
| QString | normalized (NormalizationForm modemode, QChar::UnicodeVersion version=QChar::Unicode_Unassigned) const |
| | Returns the string in the given Unicode normalization mode, according to the given version of the Unicode standard.
|
| QString | repeated (qsizetype times) const |
| const ushort * | utf16 () const |
| | \obsolete [6.11] Use nullTerminate() and cast data() to {const char16_t *}.
|
| QString | nullTerminated () const & |
| QString | nullTerminated () && |
| QString & | nullTerminate () |
| QByteArray | toLatin1 () const & |
| QByteArray | toLatin1 () && |
| QByteArray | toUtf8 () const & |
| QByteArray | toUtf8 () && |
| QByteArray | toLocal8Bit () const & |
| QByteArray | toLocal8Bit () && |
| QList< uint > | toUcs4 () const |
| qsizetype | toWCharArray (wchar_t *arrayarray) const |
| QString & | setRawData (const QChar *unicode, qsizetype sizesize) |
| QString & | setUnicode (const QChar *unicode, qsizetype sizesize) |
| | Resizes the string to size characters and copies unicode into the string.
|
| Q_WEAK_OVERLOAD QString & | setUnicode (const char16_t *utf16, qsizetype sizesize) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setUtf16 (const char16_t *utf16, qsizetype sizesize) |
| Q_WEAK_OVERLOAD QString & | setUtf16 (const ushort *autf16, qsizetype asize) |
| | \obsolete [6.10] Use the char16_t overload instead.
|
| int | compare (const QString &ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| int | compare (QLatin1StringView other, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| int | compare (QStringView ss, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| int | compare (QChar ch, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept |
| int | localeAwareCompare (const QString &ss) const |
| int | localeAwareCompare (QStringView ss) const |
| short | toShort (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to a short using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| ushort | toUShort (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to an {unsigned short} using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| int | toInt (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to an int using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| uint | toUInt (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to an {unsigned int} using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| long | toLong (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to a long using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| ulong | toULong (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to an {unsigned long} using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| qlonglong | toLongLong (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to a {long long} using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| qulonglong | toULongLong (bool *ok=nullptr, int base=10) const |
| | Returns the string converted to an {unsigned long long} using base base, which is 10 by default and must be between 2 and 36, or 0.
|
| float | toFloat (bool *ok=nullptr) const |
| | Returns the string converted to a float value.
|
| double | toDouble (bool *ok=nullptr) const |
| | Returns the string converted to a double value.
|
| QString & | setNum (short, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setNum (ushort, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setNum (int, int base=10) |
| | Sets the string to the printed value of n in the specified base, and returns a reference to the string.
|
| QString & | setNum (uint, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setNum (long, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setNum (ulong, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setNum (qlonglong, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setNum (qulonglong, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| QString & | setNum (float, char formatformat='g', int precisionprecision=6) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets the string to the printed value of n, formatted according to the given format and precision, and returns a reference to the string.
|
| QString & | setNum (double, char formatformat='g', int precisionprecision=6) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets the string to the printed value of n, formatted according to the given format and precision, and returns a reference to the string.
|
| QT_ASCII_CAST_WARN | QString (const char *ch) |
| | Constructs a string initialized with the 8-bit string str.
|
| QT_ASCII_CAST_WARN | QString (const QByteArray &a) |
| | Constructs a string initialized with the byte array ba.
|
| QT_ASCII_CAST_WARN QString & | operator= (const char *ch) |
| QT_ASCII_CAST_WARN QString & | operator= (const QByteArray &aa) |
| QT_ASCII_CAST_WARN QString & | prepend (const char *ss) |
| QT_ASCII_CAST_WARN QString & | prepend (const QByteArray &ss) |
| QT_ASCII_CAST_WARN QString & | append (const char *ss) |
| QT_ASCII_CAST_WARN QString & | append (const QByteArray &ss) |
| QT_ASCII_CAST_WARN QString & | insert (qsizetype i, const char *ss) |
| QT_ASCII_CAST_WARN QString & | insert (qsizetype i, const QByteArray &ss) |
| QT_ASCII_CAST_WARN QString & | operator+= (const char *ss) |
| QT_ASCII_CAST_WARN QString & | operator+= (const QByteArray &ss) |
| iterator | begin () |
| | Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first character in the string.
|
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | constBegin () const |
| | Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first character in the string.
|
| iterator | end () |
| | Returns an \l{STL-style iterators}{STL-style iterator} pointing just after the last character in the string.
|
| const_iterator | end () const |
| const_iterator | cend () const |
| const_iterator | constEnd () const |
| | Returns a const \l{STL-style iterators}{STL-style iterator} pointing just after the last character in the string.
|
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
| const_reverse_iterator | crbegin () const |
| const_reverse_iterator | crend () const |
| void | push_back (QChar cc) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Appends the given ch character onto the end of this string.
|
| void | push_back (const QString &s) |
| | This function is provided for STL compatibility, appending the given other string onto the end of this string.
|
| void | push_front (QChar cc) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Prepends the given ch character to the beginning of this string.
|
| void | push_front (const QString &s) |
| | This function is provided for STL compatibility, prepending the given other string to the beginning of this string.
|
| void | shrink_to_fit () |
| iterator | erase (const_iterator firstfirst, const_iterator last) |
| iterator | erase (const_iterator it) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| constexpr qsizetype | max_size () const noexcept |
| std::string | toStdString () const |
| | Returns a std::string object with the data contained in this QString.
|
| std::wstring | toStdWString () const |
| | Returns a std::wstring object with the data contained in this QString.
|
| std::u16string | toStdU16String () const |
| std::u32string | toStdU32String () const |
| constexpr Q_IMPLICIT | operator std::u16string_view () const noexcept |
| | \target qstring-operator-std-u16string_view
|
| constexpr bool | isNull () const |
| | Returns true if this string is null; otherwise returns false.
|
| bool | isRightToLeft () const |
| | Returns true if the string is read right to left.
|
| bool | isValidUtf16 () const noexcept |
| | QString (qsizetype sizesize, Qt::Initialization) |
| Q_DECL_CONSTEXPR_DTOR | QString (DataPointer &&dd) |
| DataPointer & | data_ptr () |
| const DataPointer & | data_ptr () const |
|
| static bool | compare (const QChar *lhs, const char *rhs, int lengthlength) |
| static bool | compare (const char *lhs, const char *rhs, int lengthlength) |
| static quint32 | stringHash (const QChar *datadata, int lengthlength) |
| static quint32 | stringHash (const char *datadata, int lengthlength) |
| static constexpr qsizetype | maxSize () noexcept |
| static QString | vasprintf (const char *format, va_list ap) Q_ATTRIBUTE_FORMAT_PRINTF(1 |
| static QString static QString | asprintf (const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1 |
| static QString | fromLatin1 (QByteArrayView ba) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static Q_WEAK_OVERLOAD QString | fromLatin1 (const QByteArray &ba) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | fromLatin1 (const char *str, qsizetype sizesize) |
| | Returns a QString initialized with the first size characters of the Latin-1 string str.
|
| static QString | fromUtf8 (QByteArrayView utf8) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static Q_WEAK_OVERLOAD QString | fromUtf8 (const QByteArray &ba) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | fromUtf8 (const char *utf8, qsizetype sizesize) |
| | Returns a QString initialized with the first size bytes of the UTF-8 string str.
|
| static QString | fromLocal8Bit (QByteArrayView ba) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static Q_WEAK_OVERLOAD QString | fromLocal8Bit (const QByteArray &ba) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | fromLocal8Bit (const char *str, qsizetype sizesize) |
| | Returns a QString initialized with the first size characters of the 8-bit string str.
|
| static QString | fromUtf16 (const char16_t *, qsizetype sizesize=-1) |
| static QString | fromUcs4 (const char32_t *, qsizetype sizesize=-1) |
| static QString | fromRawData (const char16_t *unicode, qsizetype sizesize) |
| static QString | fromRawData (const QChar *, qsizetype sizesize) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | fromWCharArray (const wchar_t *stringstring, qsizetype sizesize=-1) |
| static int | compare (const QString &s1s1, const QString &s2, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
| static int | compare (const QString &s1s1, QLatin1StringView s2, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
| static int | compare (QLatin1StringView s1s1, const QString &s2, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
| static int | compare (const QString &s1s1, QStringView s2, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
| static int | compare (QStringView s1s1, const QString &s2, Qt::CaseSensitivity cs=Qt::CaseSensitive) noexcept |
| static int | localeAwareCompare (const QString &s1s1, const QString &s2) |
| | Compares s1 with s2 and returns an integer less than, equal to, or greater than zero if s1 is less than, equal to, or greater than s2.
|
| static int | localeAwareCompare (QStringView s1s1, QStringView s2) |
| static QString | number (int, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | number (uint, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | number (long, int base=10) |
| | Returns a string equivalent of the number n according to the specified base.
|
| static QString | number (ulong, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | number (qlonglong, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | number (qulonglong, int base=10) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| static QString | number (double, char formatformat='g', int precisionprecision=6) |
| | Returns a string representing the floating-point number n.
|
| static QString | fromStdString (const std::string &s) |
| static QString | fromStdWString (const std::wstring &s) |
| | Returns a copy of the str string.
|
| static QString | fromStdU16String (const std::u16string &s) |
| static QString | fromStdU32String (const std::u32string &s) |