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

(ff7e5987ecdd09f87cfcdb4c42039214627dcdb6)

#include <QtCore/qchar.h>
#include <QtCore/qcompare.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qstringliteral.h>
#include <QtCore/qstringalgorithms.h>
#include <string>
#include <string_view>
#include <QtCore/q20type_traits.h>
+ Include dependency graph for qstringview.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QtPrivate::IsCompatibleCharTypeHelper< Char >
 
struct  QtPrivate::IsCompatibleCharType< Char >
 
struct  QtPrivate::IsCompatiblePointerHelper< Pointer >
 
struct  QtPrivate::IsCompatiblePointerHelper< Char * >
 
struct  QtPrivate::IsCompatiblePointer< Pointer >
 
struct  QtPrivate::IsContainerCompatibleWithQStringView< T, Enable >
 
struct  QtPrivate::IsContainerCompatibleWithQStringView< T, std::enable_if_t< std::conjunction_v< IsCompatiblePointer< decltype(std::data(std::declval< const T & >()))>, std::is_convertible< decltype(std::size(std::declval< const T & >())), qsizetype >, IsCompatibleCharType< 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 >, QString > >, std::negation< std::is_same< std::decay_t< T >, QStringView > > > > >
 
class  QStringView
 \inmodule QtCore More...
 

Namespaces

namespace  QtPrivate
 \macro QT_NO_KEYWORDS >
 

Functions

 Q_DECLARE_TYPEINFO (QStringView, Q_PRIMITIVE_TYPE)
 
template<typename QStringLike , typename std::enable_if< std::is_same< QStringLike, QString >::value, bool >::type = true>
QStringView qToStringViewIgnoringNull (const QStringLike &s) noexcept
 

Function Documentation

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QStringView ,
Q_PRIMITIVE_TYPE  )

◆ qToStringViewIgnoringNull()

template<typename QStringLike , typename std::enable_if< std::is_same< QStringLike, QString >::value, bool >::type = true>
template< typename QStringLike > qToStringViewIgnoringNull ( const QStringLike & s)
inlinenoexcept