nx_cloud_storage_sdk  1.0
Cloud Storage SDK
Public Member Functions | Public Attributes | List of all members
nx::kit::test::detail::UniversalString Struct Reference

#include <test.h>

Public Member Functions

 UniversalString (const UniversalString &u, std::false_type)
 
template<size_t len>
 UniversalString (const char(&a)[len], std::true_type)
 
template<size_t len>
 UniversalString (char(&a)[len], std::true_type)
 
 UniversalString (const char *p, std::false_type)
 
 UniversalString (std::string s, std::false_type)
 
template<typename T >
 UniversalString (T &&arg)
 
bool operator== (const UniversalString &u) const
 
bool operator!= (const UniversalString &u) const
 
std::string toString () const
 

Public Attributes

const std::string s
 
const bool isNull
 

Detailed Description

Immutable string with distinct null and empty states, and capable of containing '\0' inside. Fully supported by nx::kit::utils::toString() and nx/kit/test.h ASSERT_STREQ().

Constructor & Destructor Documentation

◆ UniversalString() [1/3]

template<size_t len>
nx::kit::test::detail::UniversalString::UniversalString ( const char(&)  a[len],
std::true_type   
)
inline

Creates from a string literal with possible '\0' inside.

◆ UniversalString() [2/3]

template<size_t len>
nx::kit::test::detail::UniversalString::UniversalString ( char(&)  a[len],
std::true_type   
)
inline

Creates from a string literal with possible '\0' inside.

◆ UniversalString() [3/3]

template<typename T >
nx::kit::test::detail::UniversalString::UniversalString ( T &&  arg)
inline

Required for proper overloading resolution, to prefer array versions over char*.


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