LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
LC::Util::TaintedString Class Reference

#include "taintedstring.h"

Public Member Functions

template<typename... Args>
requires std::constructible_from< QString, Args &&... > TaintedString (Args &&... args)
 
 TaintedString (const TaintedString &)=default
 
 TaintedString (TaintedString &&)=default
 
TaintedStringoperator= (const TaintedString &)=default
 
TaintedStringoperator= (TaintedString &&)=default
 
QString ToHtmlEscaped () const
 
QString UnsafeGetRaw () const
 
bool IsEmpty () const
 
template<typename... Args>
 requires (std::is_same_v< TaintedString, std::decay_t< Args >> &&...) friend TaintedString Format(const QString &pattern
 
template<typename T >
 requires (!std::same_as< std::decay_t< T >, TaintedString >) &&Concatable< const QString &
 
template<typename T >
 requires (!std::same_as< std::decay_t< T >, TaintedString >) &&Concatable< T &&
 

Public Attributes

Args && args
 

Friends

TaintedString operator+ (const TaintedString &l, const TaintedString &r)
 
T &&friend TaintedString operator+ (const TaintedString &l, T &&r)
 
const QString &friend TaintedString operator+ (T &&l, const TaintedString &r)
 

Detailed Description

Definition at line 18 of file taintedstring.h.

Constructor & Destructor Documentation

◆ TaintedString() [1/3]

template<typename... Args>
requires std::constructible_from<QString, Args&&...> LC::Util::TaintedString::TaintedString ( Args &&...  args)
inlineexplicit

Definition at line 24 of file taintedstring.h.

References args.

◆ TaintedString() [2/3]

LC::Util::TaintedString::TaintedString ( const TaintedString )
default

◆ TaintedString() [3/3]

LC::Util::TaintedString::TaintedString ( TaintedString &&  )
default

Member Function Documentation

◆ IsEmpty()

bool LC::Util::TaintedString::IsEmpty ( ) const
inline

Definition at line 44 of file taintedstring.h.

◆ operator=() [1/2]

TaintedString& LC::Util::TaintedString::operator= ( const TaintedString )
default

◆ operator=() [2/2]

TaintedString& LC::Util::TaintedString::operator= ( TaintedString &&  )
default

◆ requires() [1/3]

template<typename... Args>
LC::Util::TaintedString::requires ( std::is_same_v< TaintedString, std::decay_t< Args >> &&  ...) const &

◆ requires() [2/3]

template<typename T >
LC::Util::TaintedString::requires ( !std::same_as< std::decay_t< T >, TaintedString ) const &

◆ requires() [3/3]

template<typename T >
LC::Util::TaintedString::requires ( !std::same_as< std::decay_t< T >, TaintedString ) &&

◆ ToHtmlEscaped()

QString LC::Util::TaintedString::ToHtmlEscaped ( ) const
inline

Definition at line 34 of file taintedstring.h.

◆ UnsafeGetRaw()

QString LC::Util::TaintedString::UnsafeGetRaw ( ) const
inline

Definition at line 39 of file taintedstring.h.

Friends And Related Function Documentation

◆ operator+ [1/3]

TaintedString operator+ ( const TaintedString l,
const TaintedString r 
)
friend

Definition at line 56 of file taintedstring.h.

◆ operator+ [2/3]

T&& friend TaintedString operator+ ( const TaintedString l,
T &&  r 
)
friend

Definition at line 63 of file taintedstring.h.

◆ operator+ [3/3]

const QString& friend TaintedString operator+ ( T &&  l,
const TaintedString r 
)
friend

Definition at line 70 of file taintedstring.h.

Member Data Documentation

◆ args

Args&& LC::Util::TaintedString::args
Initial value:
{
return TaintedString { pattern.arg (std::forward_like<Args> (args.String_)...) }

Definition at line 52 of file taintedstring.h.

Referenced by TaintedString().


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