Guitar
Public Member Functions | Private Attributes | List of all members
misc::str Class Reference

#include <str.h>

Public Member Functions

 str (char const *s)
 
 str (char const *s, size_t n)
 
 str (char const *begin, char const *end)
 
 str (std::string_view sv)
 
 str (std::vector< char > const &v)
 
 str (QString const &s)
 
 str (char16_t const *begin, char16_t const *end)
 
 str (QByteArray const &ba)
 
bool empty () const
 
bool isEmpty () const
 
 operator bool () const
 
std::string std_string () const
 
std::string_view std_string_view () const
 
std::vector< char > std_vector_char () const
 
QString qstring () const
 
QByteArray qbytearray () const
 
 operator std::string () const
 
 operator std::string_view () const
 
 operator std::vector< char > () const
 
 operator QString () const
 

Private Attributes

std::variant< std::string_view, QString > str_
 

Constructor & Destructor Documentation

◆ str() [1/8]

misc::str::str ( char const *  s)
inlineexplicit

◆ str() [2/8]

misc::str::str ( char const *  s,
size_t  n 
)
inlineexplicit

◆ str() [3/8]

misc::str::str ( char const *  begin,
char const *  end 
)
inlineexplicit

◆ str() [4/8]

misc::str::str ( std::string_view  sv)
inlineexplicit

◆ str() [5/8]

misc::str::str ( std::vector< char > const &  v)
inlineexplicit

◆ str() [6/8]

misc::str::str ( QString const &  s)
inlineexplicit

◆ str() [7/8]

misc::str::str ( char16_t const *  begin,
char16_t const *  end 
)
inlineexplicit

◆ str() [8/8]

misc::str::str ( QByteArray const &  ba)
inlineexplicit

Member Function Documentation

◆ empty()

bool misc::str::empty ( ) const
inline

◆ isEmpty()

bool misc::str::isEmpty ( ) const
inline
Here is the call graph for this function:

◆ operator bool()

misc::str::operator bool ( ) const
inlineexplicit
Here is the call graph for this function:

◆ operator QString()

misc::str::operator QString ( ) const
inline
Here is the call graph for this function:

◆ operator std::string()

misc::str::operator std::string ( ) const
inline
Here is the call graph for this function:

◆ operator std::string_view()

misc::str::operator std::string_view ( ) const
inline
Here is the call graph for this function:

◆ operator std::vector< char >()

misc::str::operator std::vector< char > ( ) const
inline
Here is the call graph for this function:

◆ qbytearray()

QByteArray misc::str::qbytearray ( ) const
inline

◆ qstring()

QString misc::str::qstring ( ) const
inline

◆ std_string()

std::string misc::str::std_string ( ) const
inline

◆ std_string_view()

std::string_view misc::str::std_string_view ( ) const
inline

◆ std_vector_char()

std::vector<char> misc::str::std_vector_char ( ) const
inline

Member Data Documentation

◆ str_

std::variant<std::string_view, QString> misc::str::str_
private

The documentation for this class was generated from the following file: