Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qutf8stringview.h File Reference

(fff6562f8c074d75bda8b80f844dc63c6f2e64d5)

#include <QtCore/qstringalgorithms.h>
#include <QtCore/qstringfwd.h>
#include <QtCore/qarraydata.h>
#include <QtCore/qbytearrayview.h>
#include <QtCore/qcompare.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
 \macro QT_NO_KEYWORDS >
 

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)
inlinenoexcept

Definition at line 428 of file qutf8stringview.h.