Classes | Macros | Functions
ToStringS.hpp File Reference

(5)

Pre-defined universal to-string functions for std::allocator based strings (i.e. More...

#include <Balau/Type/StdTypes.hpp>
#include <Balau/Type/Impl/ToStringImpl.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/locale.hpp>
#include <complex>
#include <forward_list>
#include <list>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <stack>
#include <queue>
Include dependency graph for ToStringS.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ToString< char, std::allocator< char > >
 UTF-8 specialisation of ToString<CharT, AllocatorT> with std::allocator. More...
 
struct  ToString< char16_t, std::allocator< char16_t > >
 UTF-16 specialisation of ToString<CharT, AllocatorT> with std::allocator. More...
 
struct  ToString< char32_t, std::allocator< char32_t > >
 UTF-32 specialisation of ToString<CharT, AllocatorT> with std::allocator. More...
 

Macros

#define BALAU_CONTAINER1_TO_STRING(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has a single template parameter. More...
 
#define BALAU_CONTAINER1_TO_STRING16(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has a single template parameter. More...
 
#define BALAU_CONTAINER1_TO_STRING32(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has a single template parameter. More...
 
#define BALAU_CONTAINER2_TO_STRING(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has two template parameters. More...
 
#define BALAU_CONTAINER2_TO_STRING16(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has two template parameters. More...
 
#define BALAU_CONTAINER2_TO_STRING32(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has two template parameters. More...
 
#define BALAU_CONTAINER3_TO_STRING(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has three template parameters. More...
 
#define BALAU_CONTAINER3_TO_STRING16(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has three template parameters. More...
 
#define BALAU_CONTAINER3_TO_STRING32(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has three template parameters. More...
 
#define BALAU_CONTAINER4_TO_STRING(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has four template parameters. More...
 
#define BALAU_CONTAINER4_TO_STRING16(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has four template parameters. More...
 
#define BALAU_CONTAINER4_TO_STRING32(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has four template parameters. More...
 
#define BALAU_CONTAINER5_TO_STRING(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has five template parameters. More...
 
#define BALAU_CONTAINER5_TO_STRING16(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has five template parameters. More...
 
#define BALAU_CONTAINER5_TO_STRING32(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has five template parameters. More...
 

Functions

template<typename P1 , typename P2 , typename ... P>
std::string toString (const P1 &p1, const P2 &p2, const P &... p)
 Concatenates the to-string values of the input arguments. More...
 
std::string toString (const std::string &value)
 Returns the supplied value as is. More...
 
std::string toString (const std::string_view &value)
 Creates a string from the string view. More...
 
std::string toString (const boost::string_view &value)
 Creates a string from the Boost string view. More...
 
std::string toString (const std::u16string &value)
 Convert the supplied UTF-16 string to a UTF-8 string. More...
 
std::string toString (const std::u16string_view &value)
 Creates a UTF-8 string from the UTF-16 string view. More...
 
std::string toString (const std::u32string &value)
 Convert the supplied UTF-32 string to a UTF-8 string. More...
 
std::string toString (const std::u32string_view &value)
 Creates a UTF-8 string from the UTF-32 string view. More...
 
std::string toString (char value)
 Returns the supplied value as a UTF-8 string. More...
 
std::string toString (char16_t value)
 Convert the supplied code point to a UTF-8 string. More...
 
std::string toString (char32_t value)
 Convert the supplied code point to a UTF-8 string. More...
 
std::string toString (signed char value)
 Convert the supplied signed char to a UTF-8 string. More...
 
std::string toString (short value)
 Convert the supplied short to a UTF-8 string. More...
 
std::string toString (int value)
 Convert the supplied int to a UTF-8 string. More...
 
std::string toString (long value)
 Convert the supplied long to a UTF-8 string. More...
 
std::string toString (long long value)
 Convert the supplied long long to a UTF-8 string. More...
 
std::string toString (unsigned char value)
 Convert the supplied signed char to a UTF-8 string. More...
 
std::string toString (unsigned short value)
 Convert the supplied short to a UTF-8 string. More...
 
std::string toString (unsigned int value)
 Convert the supplied unsigned int to a UTF-8 string. More...
 
std::string toString (unsigned long value)
 Convert the supplied unsigned long to a UTF-8 string. More...
 
std::string toString (unsigned long long value)
 Convert the supplied unsigned long long to a UTF-8 string. More...
 
std::string toString (float value)
 Convert the supplied float to a UTF-8 string. More...
 
std::string toString (double value)
 Convert the supplied double to a UTF-8 string. More...
 
std::string toString (long double value)
 Convert the supplied long double to a UTF-8 string. More...
 
template<typename T >
std::string toString (const std::complex< T > &value)
 Convert the supplied complex to a UTF-8 string. More...
 
std::string toString (bool value)
 Convert the supplied boolean to a UTF-8 string. More...
 
std::string toString (const char *value)
 Returns the supplied const char * as a UTF-8 string. More...
 
std::string toString (const char16_t *value)
 Returns the supplied const char16_t * as a UTF-8 string. More...
 
std::string toString (const char32_t *value)
 Returns the supplied const char32_t * as a UTF-8 string. More...
 
std::string toString (const void *ptr)
 Convert the supplied pointer to a UTF-8 string. More...
 
std::string toString (std::nullptr_t)
 Convert the supplied nullptr value to a UTF-8 string. More...
 
std::string toString (std::type_index value)
 Return the name of the type index. More...
 
std::string toString (const std::function< std::string()> &f)
 A toString function that creates the UTF-8 string by calling the function. More...
 
template<typename F , typename S >
std::string toString (const std::pair< F, S > &p)
 Convert the supplied std::pair value to a UTF-8 string. More...
 
template<typename T , size_t N>
std::string toString (const std::array< T, N > &c)
 Print the supplied array as a UTF-8 string. More...
 
template<typename P1 , typename P2 , typename ... P>
std::u16string toString16 (const P1 &p1, const P2 &p2, const P &... p)
 Concatenates the to-string values of the input arguments. More...
 
std::u16string toString16 (const char16_t *value)
 Returns the supplied const char16_t * as a UTF-16 string. More...
 
std::u16string toString16 (const std::string &value)
 Convert the supplied UTF-8 string to a UTF-16 string. More...
 
std::u16string toString16 (const std::string_view &value)
 Convert the supplied UTF-8 string view to a UTF-16 string. More...
 
std::u16string toString16 (const boost::string_view &value)
 Convert the supplied UTF-8 Boost string view to a UTF-16 string. More...
 
std::u16string toString16 (const std::u16string &value)
 Returns the supplied value as is. More...
 
std::u16string toString16 (const std::u16string_view &value)
 Creates a UTF-16 string from the UTF-16 string view. More...
 
std::u16string toString16 (const std::u32string &value)
 Convert the supplied UTF-32 string to a UTF-16 string. More...
 
std::u16string toString16 (char value)
 Convert the supplied ascii character to a UTF-16 string. More...
 
std::u16string toString16 (char16_t &value)
 Convert the supplied UTF-16 character to a UTF-16 string. More...
 
std::u16string toString16 (char32_t &value)
 Convert the supplied code point to a UTF-16 string. More...
 
std::u16string toString16 (signed char value)
 Convert the supplied signed char to a UTF-16 string. More...
 
std::u16string toString16 (short value)
 Convert the supplied short to a UTF-16 string. More...
 
std::u16string toString16 (int value)
 Convert the supplied int to a UTF-16 string. More...
 
std::u16string toString16 (long value)
 Convert the supplied long to a UTF-16 string. More...
 
std::u16string toString16 (long long value)
 Convert the supplied long long to a UTF-16 string. More...
 
std::u16string toString16 (unsigned char value)
 Convert the supplied unsigned char to a UTF-16 string. More...
 
std::u16string toString16 (unsigned short value)
 Convert the supplied unsigned short to a UTF-16 string. More...
 
std::u16string toString16 (unsigned int value)
 Convert the supplied unsigned int to a UTF-16 string. More...
 
std::u16string toString16 (unsigned long value)
 Convert the supplied unsigned long to a UTF-16 string. More...
 
std::u16string toString16 (unsigned long long value)
 Convert the supplied unsigned long long to a UTF-16 string. More...
 
std::u16string toString16 (float value)
 Convert the supplied float to a UTF-16 string. More...
 
std::u16string toString16 (double value)
 Convert the supplied double to a UTF-16 string. More...
 
std::u16string toString16 (long double value)
 Convert the supplied long double to a UTF-16 string. More...
 
template<typename T >
std::u16string toString16 (const std::complex< T > &value)
 Convert the supplied complex to a UTF-16 string. More...
 
std::u16string toString16 (bool value)
 Convert the supplied boolean to a UTF-16 string. More...
 
std::u16string toString16 (const char *value)
 Returns the supplied const char * as a UTF-16 string. More...
 
std::u16string toString16 (const char32_t *value)
 Returns the supplied const char32_t * as a UTF-16 string. More...
 
std::u16string toString16 (const void *ptr)
 Convert the supplied pointer to a UTF-16 string. More...
 
std::u16string toString16 (std::nullptr_t)
 Convert the supplied nullptr value to a UTF-16 string. More...
 
std::u16string toString16 (std::type_index value)
 Return the name of the type index. More...
 
std::u16string toString16 (const std::function< std::u16string()> &f)
 A toString16 function that creates the UTF-16 string by calling the function. More...
 
template<typename F , typename S >
std::u16string toString16 (const std::pair< F, S > &p)
 Convert the supplied std::pair value to a UTF-16 string. More...
 
template<typename ... T, template< typename ... > class C>
std::u16string toString16Helper (const C< T ... > &c)
 Helper for container to UTF-16 string functions. More...
 
template<typename P1 , typename P2 , typename ... P>
std::u32string toString32 (const P1 &p1, const P2 &p2, const P &... p)
 Concatenates the to-string values of the input arguments. More...
 
std::u32string toString32 (const char32_t *value)
 Returns the supplied const char32_t * as a UTF-32 string. More...
 
std::u32string toString32 (const std::string &value)
 Convert the supplied UTF-8 string to a UTF-32 string. More...
 
std::u32string toString32 (const std::string_view &value)
 Convert the supplied UTF-8 string view to a UTF-32 string. More...
 
std::u32string toString32 (const boost::string_view &value)
 Convert the supplied UTF-8 Boost string view to a UTF-32 string. More...
 
std::u32string toString32 (const std::u16string &value)
 Convert the supplied UTF-16 string to a UTF-8 string. More...
 
std::u32string toString32 (const std::u32string &value)
 Returns the supplied value as is. More...
 
std::u32string toString32 (const std::u32string_view &value)
 Creates a UTF-32 string from the UTF-32 string view. More...
 
std::u32string toString32 (char value)
 Returns the supplied ascii character as a UTF-32 string. More...
 
std::u32string toString32 (char16_t &value)
 Convert the supplied UTF-16 character to a UTF-32 string. More...
 
std::u32string toString32 (char32_t &value)
 Convert the supplied code point to a UTF-32 string. More...
 
std::u32string toString32 (signed char value)
 Convert the supplied signed char to a UTF-32 string. More...
 
std::u32string toString32 (short value)
 Convert the supplied short to a UTF-32 string. More...
 
std::u32string toString32 (int value)
 Convert the supplied int to a UTF-32 string. More...
 
std::u32string toString32 (long value)
 Convert the supplied long to a UTF-32 string. More...
 
std::u32string toString32 (long long value)
 Convert the supplied long long to a UTF-32 string. More...
 
std::u32string toString32 (unsigned char value)
 Convert the supplied unsigned char to a UTF-32 string. More...
 
std::u32string toString32 (unsigned short value)
 Convert the supplied unsigned short to a UTF-32 string. More...
 
std::u32string toString32 (unsigned int value)
 Convert the supplied unsigned int to a UTF-32 string. More...
 
std::u32string toString32 (unsigned long value)
 Convert the supplied unsigned long to a UTF-32 string. More...
 
std::u32string toString32 (unsigned long long value)
 Convert the supplied unsigned long long to a UTF-32 string. More...
 
std::u32string toString32 (float value)
 Convert the supplied float to a UTF-32 string. More...
 
std::u32string toString32 (double value)
 Convert the supplied double to a UTF-32 string. More...
 
std::u32string toString32 (long double value)
 Convert the supplied long double to a UTF-32 string. More...
 
template<typename T >
std::u32string toString32 (const std::complex< T > &value)
 Convert the supplied complex to a UTF-32 string. More...
 
std::u32string toString32 (bool value)
 Convert the supplied boolean to a UTF-32 string. More...
 
std::u32string toString32 (const char *value)
 Returns the supplied const char * as a UTF-32 string. More...
 
std::u32string toString32 (const char16_t *value)
 Returns the supplied const char16_t * as a UTF-32 string. More...
 
std::u32string toString32 (const void *ptr)
 Convert the supplied pointer to a UTF-32 string. More...
 
std::u32string toString32 (std::nullptr_t)
 Convert the supplied nullptr value to a UTF-32 string. More...
 
std::u32string toString32 (std::type_index value)
 Return the name of the type index. More...
 
std::u32string toString32 (const std::function< std::u32string()> &f)
 A toString32 function that creates the UTF-32 string by calling the function. More...
 
template<typename F , typename S >
std::u32string toString32 (const std::pair< F, S > &p)
 Convert the supplied std::pair value to a UTF-32 string. More...
 
template<typename ... T, template< typename ... > class C>
std::u32string toString32Helper (const C< T ... > &c)
 Helper for container to UTF-8 string functions. More...
 
template<typename ... T, template< typename ... > class C>
std::string toStringHelper (const C< T ... > &c)
 Helper for container to UTF-8 string functions. More...
 

Detailed Description

Pre-defined universal to-string functions for std::allocator based strings (i.e.

std::string).

Macro Definition Documentation

◆ BALAU_CONTAINER1_TO_STRING

#define BALAU_CONTAINER1_TO_STRING (   CONTAINER_TYPE)
Value:
template <typename T> \
inline std::string toString(const CONTAINER_TYPE<T> & c) { \
return toStringHelper(c); \
}
std::string toStringHelper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:302
std::string toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:399

Define a UTF-8 to-string function for a container that has a single template parameter.

◆ BALAU_CONTAINER1_TO_STRING16

#define BALAU_CONTAINER1_TO_STRING16 (   CONTAINER_TYPE)
Value:
template <typename T> \
inline std::u16string toString16(const CONTAINER_TYPE<T> & c) { \
return toString16Helper(c); \
}
std::u16string toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:740
std::u16string toString16Helper(const C< T ... > &c)
Helper for container to UTF-16 string functions.
Definition: ToStringS.hpp:652

Define a UTF-16 to-string function for a container that has a single template parameter.

◆ BALAU_CONTAINER1_TO_STRING32

#define BALAU_CONTAINER1_TO_STRING32 (   CONTAINER_TYPE)
Value:
template <typename T> \
inline std::u32string toString32(const CONTAINER_TYPE<T> & c) { \
return toString32Helper(c); \
}
std::u32string toString32Helper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:993
std::u32string toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:1081

Define a UTF-32 to-string function for a container that has a single template parameter.

◆ BALAU_CONTAINER2_TO_STRING

#define BALAU_CONTAINER2_TO_STRING (   CONTAINER_TYPE)
Value:
template <typename T, typename U> \
inline std::string toString(const CONTAINER_TYPE<T, U> & c) { \
return toStringHelper(c); \
}
std::string toStringHelper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:302
std::string toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:399

Define a UTF-8 to-string function for a container that has two template parameters.

◆ BALAU_CONTAINER2_TO_STRING16

#define BALAU_CONTAINER2_TO_STRING16 (   CONTAINER_TYPE)
Value:
template <typename T, typename U> \
inline std::u16string toString16(const CONTAINER_TYPE<T, U> & c) { \
return toString16Helper(c); \
}
std::u16string toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:740
std::u16string toString16Helper(const C< T ... > &c)
Helper for container to UTF-16 string functions.
Definition: ToStringS.hpp:652

Define a UTF-16 to-string function for a container that has two template parameters.

◆ BALAU_CONTAINER2_TO_STRING32

#define BALAU_CONTAINER2_TO_STRING32 (   CONTAINER_TYPE)
Value:
template <typename T, typename U> \
inline std::u32string toString32(const CONTAINER_TYPE<T, U> & c) { \
return toString32Helper(c); \
}
std::u32string toString32Helper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:993
std::u32string toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:1081

Define a UTF-32 to-string function for a container that has two template parameters.

◆ BALAU_CONTAINER3_TO_STRING

#define BALAU_CONTAINER3_TO_STRING (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V> \
inline std::string toString(const CONTAINER_TYPE<T, U, V> & c) { \
return toStringHelper(c); \
}
std::string toStringHelper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:302
std::string toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:399

Define a UTF-8 to-string function for a container that has three template parameters.

◆ BALAU_CONTAINER3_TO_STRING16

#define BALAU_CONTAINER3_TO_STRING16 (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V> \
inline std::u16string toString16(const CONTAINER_TYPE<T, U, V> & c) { \
return toString16Helper(c); \
}
std::u16string toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:740
std::u16string toString16Helper(const C< T ... > &c)
Helper for container to UTF-16 string functions.
Definition: ToStringS.hpp:652

Define a UTF-16 to-string function for a container that has three template parameters.

◆ BALAU_CONTAINER3_TO_STRING32

#define BALAU_CONTAINER3_TO_STRING32 (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V> \
inline std::u32string toString32(const CONTAINER_TYPE<T, U, V> & c) { \
return toString32Helper(c); \
}
std::u32string toString32Helper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:993
std::u32string toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:1081

Define a UTF-32 to-string function for a container that has three template parameters.

◆ BALAU_CONTAINER4_TO_STRING

#define BALAU_CONTAINER4_TO_STRING (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V, typename W> \
inline std::string toString(const CONTAINER_TYPE<T, U, V, W> & c) { \
return toStringHelper(c); \
}
std::string toStringHelper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:302
std::string toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:399

Define a UTF-8 to-string function for a container that has four template parameters.

◆ BALAU_CONTAINER4_TO_STRING16

#define BALAU_CONTAINER4_TO_STRING16 (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V, typename W> \
inline std::u16string toString16(const CONTAINER_TYPE<T, U, V, W> & c) { \
return toString16Helper(c); \
}
std::u16string toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:740
std::u16string toString16Helper(const C< T ... > &c)
Helper for container to UTF-16 string functions.
Definition: ToStringS.hpp:652

Define a UTF-16 to-string function for a container that has four template parameters.

◆ BALAU_CONTAINER4_TO_STRING32

#define BALAU_CONTAINER4_TO_STRING32 (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V, typename W> \
inline std::u32string toString32(const CONTAINER_TYPE<T, U, V, W> & c) { \
return toString32Helper(c); \
}
std::u32string toString32Helper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:993
std::u32string toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:1081

Define a UTF-32 to-string function for a container that has four template parameters.

◆ BALAU_CONTAINER5_TO_STRING

#define BALAU_CONTAINER5_TO_STRING (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V, typename W, typename X> \
inline std::string toString(const CONTAINER_TYPE<T, U, V, W, X> & c) { \
return toStringHelper(c); \
}
std::string toStringHelper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:302
std::string toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:399

Define a UTF-8 to-string function for a container that has five template parameters.

◆ BALAU_CONTAINER5_TO_STRING16

#define BALAU_CONTAINER5_TO_STRING16 (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V, typename W, typename X> \
inline std::u16string toString16(const CONTAINER_TYPE<T, U, V, W, X> & c) { \
return toString16Helper(c); \
}
std::u16string toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:740
std::u16string toString16Helper(const C< T ... > &c)
Helper for container to UTF-16 string functions.
Definition: ToStringS.hpp:652

Define a UTF-16 to-string function for a container that has five template parameters.

◆ BALAU_CONTAINER5_TO_STRING32

#define BALAU_CONTAINER5_TO_STRING32 (   CONTAINER_TYPE)
Value:
template <typename T, typename U, typename V, typename W, typename X> \
inline std::u32string toString32(const CONTAINER_TYPE<T, U, V, W, X> & c) { \
return toString32Helper(c); \
}
std::u32string toString32Helper(const C< T ... > &c)
Helper for container to UTF-8 string functions.
Definition: ToStringS.hpp:993
std::u32string toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringS.hpp:1081

Define a UTF-32 to-string function for a container that has five template parameters.

Function Documentation

◆ toString() [1/35]

std::string toString ( const P1 &  p1,
const P2 &  p2,
const P &...  p 
)
inline

Concatenates the to-string values of the input arguments.

Calls toString on each input argument and concatenates them together to form a single UTF-8 string.

◆ toString() [2/35]

std::string toString ( const std::string &  value)
inline

Returns the supplied value as is.

◆ toString() [3/35]

std::string toString ( const std::string_view &  value)
inline

Creates a string from the string view.

◆ toString() [4/35]

std::string toString ( const boost::string_view &  value)
inline

Creates a string from the Boost string view.

◆ toString() [5/35]

std::string toString ( const std::u16string &  value)
inline

Convert the supplied UTF-16 string to a UTF-8 string.

◆ toString() [6/35]

std::string toString ( const std::u16string_view &  value)
inline

Creates a UTF-8 string from the UTF-16 string view.

◆ toString() [7/35]

std::string toString ( const std::u32string &  value)
inline

Convert the supplied UTF-32 string to a UTF-8 string.

◆ toString() [8/35]

std::string toString ( const std::u32string_view &  value)
inline

Creates a UTF-8 string from the UTF-32 string view.

◆ toString() [9/35]

std::string toString ( char  value)
inline

Returns the supplied value as a UTF-8 string.

◆ toString() [10/35]

std::string toString ( char16_t  value)
inline

Convert the supplied code point to a UTF-8 string.

◆ toString() [11/35]

std::string toString ( char32_t  value)
inline

Convert the supplied code point to a UTF-8 string.

◆ toString() [12/35]

std::string toString ( signed char  value)
inline

Convert the supplied signed char to a UTF-8 string.

◆ toString() [13/35]

std::string toString ( short  value)
inline

Convert the supplied short to a UTF-8 string.

◆ toString() [14/35]

std::string toString ( int  value)
inline

Convert the supplied int to a UTF-8 string.

◆ toString() [15/35]

std::string toString ( long  value)
inline

Convert the supplied long to a UTF-8 string.

◆ toString() [16/35]

std::string toString ( long long  value)
inline

Convert the supplied long long to a UTF-8 string.

◆ toString() [17/35]

std::string toString ( unsigned char  value)
inline

Convert the supplied signed char to a UTF-8 string.

◆ toString() [18/35]

std::string toString ( unsigned short  value)
inline

Convert the supplied short to a UTF-8 string.

◆ toString() [19/35]

std::string toString ( unsigned int  value)
inline

Convert the supplied unsigned int to a UTF-8 string.

◆ toString() [20/35]

std::string toString ( unsigned long  value)
inline

Convert the supplied unsigned long to a UTF-8 string.

◆ toString() [21/35]

std::string toString ( unsigned long long  value)
inline

Convert the supplied unsigned long long to a UTF-8 string.

◆ toString() [22/35]

std::string toString ( float  value)
inline

Convert the supplied float to a UTF-8 string.

◆ toString() [23/35]

std::string toString ( double  value)
inline

Convert the supplied double to a UTF-8 string.

◆ toString() [24/35]

std::string toString ( long double  value)
inline

Convert the supplied long double to a UTF-8 string.

◆ toString() [25/35]

std::string toString ( const std::complex< T > &  value)
inline

Convert the supplied complex to a UTF-8 string.

◆ toString() [26/35]

std::string toString ( bool  value)
inline

Convert the supplied boolean to a UTF-8 string.

◆ toString() [27/35]

std::string toString ( const char *  value)
inline

Returns the supplied const char * as a UTF-8 string.

◆ toString() [28/35]

std::string toString ( const char16_t *  value)
inline

Returns the supplied const char16_t * as a UTF-8 string.

◆ toString() [29/35]

std::string toString ( const char32_t *  value)
inline

Returns the supplied const char32_t * as a UTF-8 string.

◆ toString() [30/35]

std::string toString ( const void *  ptr)
inline

Convert the supplied pointer to a UTF-8 string.

The pointer is converted to an unsigned long long integer value and toString is called on the value.

◆ toString() [31/35]

std::string toString ( std::nullptr_t  )
inline

Convert the supplied nullptr value to a UTF-8 string.

The returned value is zero in order to match the values returned for other pointer to-string functions.

◆ toString() [32/35]

std::string toString ( std::type_index  value)
inline

Return the name of the type index.

◆ toString() [33/35]

std::string toString ( const std::function< std::string()> &  f)
inline

A toString function that creates the UTF-8 string by calling the function.

◆ toString() [34/35]

std::string toString ( const std::pair< F, S > &  p)
inline

Convert the supplied std::pair value to a UTF-8 string.

◆ toString() [35/35]

std::string toString ( const std::array< T, N > &  c)
inline

Print the supplied array as a UTF-8 string.

Returns
the supplied array as a UTF-8 string

◆ toString16() [1/33]

std::u16string toString16 ( const P1 &  p1,
const P2 &  p2,
const P &...  p 
)
inline

Concatenates the to-string values of the input arguments.

Calls toString16 on each input argument and concatenates them together to form a single UTF-16 string.

◆ toString16() [2/33]

std::u16string toString16 ( const char16_t *  value)
inline

Returns the supplied const char16_t * as a UTF-16 string.

◆ toString16() [3/33]

std::u16string toString16 ( const std::string &  value)
inline

Convert the supplied UTF-8 string to a UTF-16 string.

◆ toString16() [4/33]

std::u16string toString16 ( const std::string_view &  value)
inline

Convert the supplied UTF-8 string view to a UTF-16 string.

◆ toString16() [5/33]

std::u16string toString16 ( const boost::string_view &  value)
inline

Convert the supplied UTF-8 Boost string view to a UTF-16 string.

◆ toString16() [6/33]

std::u16string toString16 ( const std::u16string &  value)
inline

Returns the supplied value as is.

◆ toString16() [7/33]

std::u16string toString16 ( const std::u16string_view &  value)
inline

Creates a UTF-16 string from the UTF-16 string view.

◆ toString16() [8/33]

std::u16string toString16 ( const std::u32string &  value)
inline

Convert the supplied UTF-32 string to a UTF-16 string.

◆ toString16() [9/33]

std::u16string toString16 ( char  value)
inline

Convert the supplied ascii character to a UTF-16 string.

◆ toString16() [10/33]

std::u16string toString16 ( char16_t &  value)
inline

Convert the supplied UTF-16 character to a UTF-16 string.

◆ toString16() [11/33]

std::u16string toString16 ( char32_t &  value)
inline

Convert the supplied code point to a UTF-16 string.

◆ toString16() [12/33]

std::u16string toString16 ( signed char  value)
inline

Convert the supplied signed char to a UTF-16 string.

◆ toString16() [13/33]

std::u16string toString16 ( short  value)
inline

Convert the supplied short to a UTF-16 string.

◆ toString16() [14/33]

std::u16string toString16 ( int  value)
inline

Convert the supplied int to a UTF-16 string.

◆ toString16() [15/33]

std::u16string toString16 ( long  value)
inline

Convert the supplied long to a UTF-16 string.

◆ toString16() [16/33]

std::u16string toString16 ( long long  value)
inline

Convert the supplied long long to a UTF-16 string.

◆ toString16() [17/33]

std::u16string toString16 ( unsigned char  value)
inline

Convert the supplied unsigned char to a UTF-16 string.

◆ toString16() [18/33]

std::u16string toString16 ( unsigned short  value)
inline

Convert the supplied unsigned short to a UTF-16 string.

◆ toString16() [19/33]

std::u16string toString16 ( unsigned int  value)
inline

Convert the supplied unsigned int to a UTF-16 string.

◆ toString16() [20/33]

std::u16string toString16 ( unsigned long  value)
inline

Convert the supplied unsigned long to a UTF-16 string.

◆ toString16() [21/33]

std::u16string toString16 ( unsigned long long  value)
inline

Convert the supplied unsigned long long to a UTF-16 string.

◆ toString16() [22/33]

std::u16string toString16 ( float  value)
inline

Convert the supplied float to a UTF-16 string.

◆ toString16() [23/33]

std::u16string toString16 ( double  value)
inline

Convert the supplied double to a UTF-16 string.

◆ toString16() [24/33]

std::u16string toString16 ( long double  value)
inline

Convert the supplied long double to a UTF-16 string.

◆ toString16() [25/33]

std::u16string toString16 ( const std::complex< T > &  value)
inline

Convert the supplied complex to a UTF-16 string.

◆ toString16() [26/33]

std::u16string toString16 ( bool  value)
inline

Convert the supplied boolean to a UTF-16 string.

◆ toString16() [27/33]

std::u16string toString16 ( const char *  value)
inline

Returns the supplied const char * as a UTF-16 string.

◆ toString16() [28/33]

std::u16string toString16 ( const char32_t *  value)
inline

Returns the supplied const char32_t * as a UTF-16 string.

◆ toString16() [29/33]

std::u16string toString16 ( const void *  ptr)
inline

Convert the supplied pointer to a UTF-16 string.

The pointer is converted to an unsigned long long integer value and toString16 is called on the value.

◆ toString16() [30/33]

std::u16string toString16 ( std::nullptr_t  )
inline

Convert the supplied nullptr value to a UTF-16 string.

The returned value is zero in order to match the values returned for other pointer to-string functions.

◆ toString16() [31/33]

std::u16string toString16 ( std::type_index  value)
inline

Return the name of the type index.

◆ toString16() [32/33]

std::u16string toString16 ( const std::function< std::u16string()> &  f)
inline

A toString16 function that creates the UTF-16 string by calling the function.

◆ toString16() [33/33]

std::u16string toString16 ( const std::pair< F, S > &  p)
inline

Convert the supplied std::pair value to a UTF-16 string.

◆ toString16Helper()

std::u16string toString16Helper ( const C< T ... > &  c)
inline

Helper for container to UTF-16 string functions.

This helper function can be used for custom container types if required.

◆ toString32() [1/33]

std::u32string toString32 ( const P1 &  p1,
const P2 &  p2,
const P &...  p 
)
inline

Concatenates the to-string values of the input arguments.

Calls toString32 on each input argument and concatenates them together to form a single UTF-32 string.

◆ toString32() [2/33]

std::u32string toString32 ( const char32_t *  value)
inline

Returns the supplied const char32_t * as a UTF-32 string.

◆ toString32() [3/33]

std::u32string toString32 ( const std::string &  value)
inline

Convert the supplied UTF-8 string to a UTF-32 string.

◆ toString32() [4/33]

std::u32string toString32 ( const std::string_view &  value)
inline

Convert the supplied UTF-8 string view to a UTF-32 string.

◆ toString32() [5/33]

std::u32string toString32 ( const boost::string_view &  value)
inline

Convert the supplied UTF-8 Boost string view to a UTF-32 string.

◆ toString32() [6/33]

std::u32string toString32 ( const std::u16string &  value)
inline

Convert the supplied UTF-16 string to a UTF-8 string.

◆ toString32() [7/33]

std::u32string toString32 ( const std::u32string &  value)
inline

Returns the supplied value as is.

◆ toString32() [8/33]

std::u32string toString32 ( const std::u32string_view &  value)
inline

Creates a UTF-32 string from the UTF-32 string view.

◆ toString32() [9/33]

std::u32string toString32 ( char  value)
inline

Returns the supplied ascii character as a UTF-32 string.

◆ toString32() [10/33]

std::u32string toString32 ( char16_t &  value)
inline

Convert the supplied UTF-16 character to a UTF-32 string.

◆ toString32() [11/33]

std::u32string toString32 ( char32_t &  value)
inline

Convert the supplied code point to a UTF-32 string.

◆ toString32() [12/33]

std::u32string toString32 ( signed char  value)
inline

Convert the supplied signed char to a UTF-32 string.

◆ toString32() [13/33]

std::u32string toString32 ( short  value)
inline

Convert the supplied short to a UTF-32 string.

◆ toString32() [14/33]

std::u32string toString32 ( int  value)
inline

Convert the supplied int to a UTF-32 string.

◆ toString32() [15/33]

std::u32string toString32 ( long  value)
inline

Convert the supplied long to a UTF-32 string.

◆ toString32() [16/33]

std::u32string toString32 ( long long  value)
inline

Convert the supplied long long to a UTF-32 string.

◆ toString32() [17/33]

std::u32string toString32 ( unsigned char  value)
inline

Convert the supplied unsigned char to a UTF-32 string.

◆ toString32() [18/33]

std::u32string toString32 ( unsigned short  value)
inline

Convert the supplied unsigned short to a UTF-32 string.

◆ toString32() [19/33]

std::u32string toString32 ( unsigned int  value)
inline

Convert the supplied unsigned int to a UTF-32 string.

◆ toString32() [20/33]

std::u32string toString32 ( unsigned long  value)
inline

Convert the supplied unsigned long to a UTF-32 string.

◆ toString32() [21/33]

std::u32string toString32 ( unsigned long long  value)
inline

Convert the supplied unsigned long long to a UTF-32 string.

◆ toString32() [22/33]

std::u32string toString32 ( float  value)
inline

Convert the supplied float to a UTF-32 string.

◆ toString32() [23/33]

std::u32string toString32 ( double  value)
inline

Convert the supplied double to a UTF-32 string.

◆ toString32() [24/33]

std::u32string toString32 ( long double  value)
inline

Convert the supplied long double to a UTF-32 string.

◆ toString32() [25/33]

std::u32string toString32 ( const std::complex< T > &  value)
inline

Convert the supplied complex to a UTF-32 string.

◆ toString32() [26/33]

std::u32string toString32 ( bool  value)
inline

Convert the supplied boolean to a UTF-32 string.

◆ toString32() [27/33]

std::u32string toString32 ( const char *  value)
inline

Returns the supplied const char * as a UTF-32 string.

◆ toString32() [28/33]

std::u32string toString32 ( const char16_t *  value)
inline

Returns the supplied const char16_t * as a UTF-32 string.

◆ toString32() [29/33]

std::u32string toString32 ( const void *  ptr)
inline

Convert the supplied pointer to a UTF-32 string.

The pointer is converted to an unsigned long long integer value and toString32 is called on the value.

◆ toString32() [30/33]

std::u32string toString32 ( std::nullptr_t  )
inline

Convert the supplied nullptr value to a UTF-32 string.

The returned value is zero in order to match the values returned for other pointer to-string functions.

◆ toString32() [31/33]

std::u32string toString32 ( std::type_index  value)
inline

Return the name of the type index.

◆ toString32() [32/33]

std::u32string toString32 ( const std::function< std::u32string()> &  f)
inline

A toString32 function that creates the UTF-32 string by calling the function.

◆ toString32() [33/33]

std::u32string toString32 ( const std::pair< F, S > &  p)
inline

Convert the supplied std::pair value to a UTF-32 string.

◆ toString32Helper()

std::u32string toString32Helper ( const C< T ... > &  c)
inline

Helper for container to UTF-8 string functions.

This helper function can be used for custom container types if required.

◆ toStringHelper()

std::string toStringHelper ( const C< T ... > &  c)
inline

Helper for container to UTF-8 string functions.

This helper function can be used for custom container types if required.