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
qutf8stringview.h File Reference

(9efcf1457229ef33a4c336b6a8ffd31333f5c105)

#include <QtCore/qstringalgorithms.h>
#include <QtCore/qstringfwd.h>
#include <QtCore/qarraydata.h>
#include <QtCore/qbytearrayview.h>
#include <QtCore/qcompare.h>
#include <QtCore/qcontainerfwd.h>
#include <string>
#include <string_view>
#include <QtCore/q20type_traits.h>
Include dependency graph for qutf8stringview.h:

Go to the source code of this file.

Classes

struct  QtPrivate::IsCompatiblePointer8Helper< Pointer >
struct  QtPrivate::IsCompatiblePointer8Helper< Char * >
struct  QtPrivate::IsContainerCompatibleWithQUtf8StringView< T, Enable >
struct  QtPrivate::IsContainerCompatibleWithQUtf8StringView< T, std::enable_if_t< std::conjunction_v< IsCompatiblePointer8< decltype(std::data(std::declval< const T & >()))>, std::is_convertible< decltype(std::size(std::declval< const T & >())), qsizetype >, IsCompatibleChar8Type< typename std::iterator_traits< decltype(std::begin(std::declval< const T & >()))>::value_type >, std::is_convertible< decltype(std::begin(std::declval< const T & >()) !=std::end(std::declval< const T & >())), bool >, std::negation< std::is_same< std::decay_t< T >, QByteArray > >, std::negation< std::is_same< std::decay_t< T >, QLatin1StringView > >, std::negation< std::disjunction< std::is_same< std::decay_t< T >, QBasicUtf8StringView< true > >, std::is_same< std::decay_t< T >, QBasicUtf8StringView< false > > > > > > >
struct  QtPrivate::hide_char8_t
struct  QtPrivate::wrap_char
class  QBasicUtf8StringView< UseChar8T >

Namespaces

namespace  QtPrivate

Typedefs

template<typename Char>
using QtPrivate::IsCompatibleChar8TypeHelper
template<typename Char>
using QtPrivate::IsCompatibleChar8Type = IsCompatibleChar8TypeHelper<q20::remove_cvref_t<Char>>
template<typename Pointer>
using QtPrivate::IsCompatiblePointer8 = IsCompatiblePointer8Helper<q20::remove_cvref_t<Pointer>>

Functions

template<bool UseChar8T>
 Q_DECLARE_TYPEINFO_BODY (QBasicUtf8StringView< UseChar8T >, Q_PRIMITIVE_TYPE)
template<typename QStringLike, std::enable_if_t< std::is_same_v< QStringLike, QByteArray >, bool > = true>
q_no_char8_t::QUtf8StringView qToUtf8StringViewIgnoringNull (const QStringLike &s) noexcept

Function Documentation

◆ Q_DECLARE_TYPEINFO_BODY()

template<bool UseChar8T>
Q_DECLARE_TYPEINFO_BODY ( QBasicUtf8StringView< UseChar8T > ,
Q_PRIMITIVE_TYPE  )

◆ qToUtf8StringViewIgnoringNull()

template<typename QStringLike, std::enable_if_t< std::is_same_v< QStringLike, QByteArray >, bool > = true>
q_no_char8_t::QUtf8StringView qToUtf8StringViewIgnoringNull ( const QStringLike & s)
inlinenodiscardnoexcept

Definition at line 450 of file qutf8stringview.h.