Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
kstring.h File Reference
#include "../kdwinutils_global.h"
#include <QString>
#include <afxwin.h>
#include <string>
Include dependency graph for kstring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  KString
 The KString class provides a Unicode character string. More...
 

Macros

#define KDWINUTILS_KSTRING_DEFINE_OP_PLUS(StringClass)
 

Functions

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (const char *const &s1, T const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (const wchar_t *const &s1, T const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (CString const &s1, T const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (QLatin1StringView const &s1, T const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (QString const &s1, T const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (T const &s1, const char *const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (T const &s1, const wchar_t *const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (T const &s1, CString const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (T const &s1, QLatin1StringView const &s2)
 
template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KStringoperator+ (T const &s1, QString const &s2)
 

Macro Definition Documentation

◆ KDWINUTILS_KSTRING_DEFINE_OP_PLUS

#define KDWINUTILS_KSTRING_DEFINE_OP_PLUS ( StringClass)
Value:
template <typename T> \
inline std::enable_if_t<std::is_same_v<T, KString>, KString> operator+(T const &s1, StringClass const &s2) \
{ \
return s1 + KString(s2); \
} \
template <typename T> \
inline std::enable_if_t<std::is_same_v<T, KString>, KString> operator+(StringClass const &s1, T const &s2) \
{ \
return KString(s1) + s2; \
}
The KString class provides a Unicode character string.
Definition kstring.h:45
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+(T const &s1, QString const &s2)
Definition kstring.h:363

Function Documentation

◆ operator+() [1/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( const char *const & s1,
T const & s2 )
inline

◆ operator+() [2/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( const wchar_t *const & s1,
T const & s2 )
inline

◆ operator+() [3/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( CString const & s1,
T const & s2 )
inline

◆ operator+() [4/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( QLatin1StringView const & s1,
T const & s2 )
inline

◆ operator+() [5/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( QString const & s1,
T const & s2 )
inline

◆ operator+() [6/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( T const & s1,
const char *const & s2 )
inline

◆ operator+() [7/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( T const & s1,
const wchar_t *const & s2 )
inline

◆ operator+() [8/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( T const & s1,
CString const & s2 )
inline

◆ operator+() [9/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( T const & s1,
QLatin1StringView const & s2 )
inline

◆ operator+() [10/10]

template<typename T >
std::enable_if_t< std::is_same_v< T, KString >, KString > operator+ ( T const & s1,
QString const & s2 )
inline