OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::StringTempl Namespace Reference

Functions

bool empty (std::nullptr_t)
 
bool empty (const char *str)
 
bool empty (const std::string &str)
 
std::string to_string (std::nullptr_t)
 
std::string to_string (const char *str)
 
std::string to_string (std::string &&str)
 
const std::string & to_string (const std::string &str)
 
const char * to_cstring (const std::string &str)
 
const char * to_cstring (const char *str)
 
template<typename T >
auto empty (const T &t) -> decltype(t.empty())
 
template<typename T , typename std::enable_if< std::is_arithmetic< T >::value, int >::type = 0>
bool empty (T value)
 
template<typename T >
auto to_string (const T &t) -> decltype(t.to_string())
 
template<typename T , typename std::enable_if< std::is_arithmetic< T >::value, int >::type = 0>
std::string to_string (T value)
 

Function Documentation

◆ empty() [1/5]

bool openvpn::StringTempl::empty ( const char *  str)
inline

Definition at line 34 of file stringtempl.hpp.

◆ empty() [2/5]

bool openvpn::StringTempl::empty ( const std::string &  str)
inline

Definition at line 39 of file stringtempl.hpp.

◆ empty() [3/5]

template<typename T >
auto openvpn::StringTempl::empty ( const T &  t) -> decltype(t.empty())
inline

Definition at line 26 of file stringtempl2.hpp.

◆ empty() [4/5]

bool openvpn::StringTempl::empty ( std::nullptr_t  )
inline

Definition at line 29 of file stringtempl.hpp.

Here is the caller graph for this function:

◆ empty() [5/5]

template<typename T , typename std::enable_if< std::is_arithmetic< T >::value, int >::type = 0>
bool openvpn::StringTempl::empty ( value)
inline

Definition at line 34 of file stringtempl2.hpp.

◆ to_cstring() [1/2]

const char * openvpn::StringTempl::to_cstring ( const char *  str)
inline

Definition at line 76 of file stringtempl.hpp.

◆ to_cstring() [2/2]

const char * openvpn::StringTempl::to_cstring ( const std::string &  str)
inline

Definition at line 71 of file stringtempl.hpp.

Here is the caller graph for this function:

◆ to_string() [1/6]

std::string openvpn::StringTempl::to_string ( const char *  str)
inline

Definition at line 51 of file stringtempl.hpp.

◆ to_string() [2/6]

const std::string & openvpn::StringTempl::to_string ( const std::string &  str)
inline

Definition at line 64 of file stringtempl.hpp.

◆ to_string() [3/6]

template<typename T >
auto openvpn::StringTempl::to_string ( const T &  t) -> decltype(t.to_string())
inline

Definition at line 43 of file stringtempl2.hpp.

◆ to_string() [4/6]

std::string openvpn::StringTempl::to_string ( std::nullptr_t  )
inline

Definition at line 46 of file stringtempl.hpp.

Here is the caller graph for this function:

◆ to_string() [5/6]

std::string openvpn::StringTempl::to_string ( std::string &&  str)
inline

Definition at line 59 of file stringtempl.hpp.

◆ to_string() [6/6]

template<typename T , typename std::enable_if< std::is_arithmetic< T >::value, int >::type = 0>
std::string openvpn::StringTempl::to_string ( value)
inline

Definition at line 51 of file stringtempl2.hpp.