Classes | Namespaces | Macros | Typedefs | Functions
ToStringA.hpp File Reference

(7)

Pre-defined universal to-string functions for strings with custom allocators. More...

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

Go to the source code of this file.

Classes

struct  ToString< CharT, AllocatorT >
 Template class based to-string function for use in template classes. More...
 
struct  ToString< char, AllocatorT >
 UTF-8 specialisation of ToString<CharT, AllocatorT>. More...
 
struct  ToString< char16_t, AllocatorT >
 UTF-16 specialisation of ToString<CharT, AllocatorT>. More...
 
struct  ToString< char32_t, AllocatorT >
 UTF-32 specialisation of ToString<CharT, AllocatorT>. More...
 

Namespaces

 Balau
 The root Balau namespace.
 

Macros

#define BALAU_CONTAINER1_TO_STRING16_A(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has a single template parameter. More...
 
#define BALAU_CONTAINER1_TO_STRING32_A(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has a single template parameter. More...
 
#define BALAU_CONTAINER1_TO_STRING_A(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has a single template parameter. More...
 
#define BALAU_CONTAINER2_TO_STRING16_A(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has two template parameters. More...
 
#define BALAU_CONTAINER2_TO_STRING32_A(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has two template parameters. More...
 
#define BALAU_CONTAINER2_TO_STRING_A(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has two template parameters. More...
 
#define BALAU_CONTAINER3_TO_STRING16_A(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has three template parameters. More...
 
#define BALAU_CONTAINER3_TO_STRING32_A(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has three template parameters. More...
 
#define BALAU_CONTAINER3_TO_STRING_A(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has three template parameters. More...
 
#define BALAU_CONTAINER4_TO_STRING16_A(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has four template parameters. More...
 
#define BALAU_CONTAINER4_TO_STRING32_A(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has four template parameters. More...
 
#define BALAU_CONTAINER4_TO_STRING_A(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has four template parameters. More...
 
#define BALAU_CONTAINER5_TO_STRING16_A(CONTAINER_TYPE)
 Define a UTF-16 to-string function for a container that has five template parameters. More...
 
#define BALAU_CONTAINER5_TO_STRING32_A(CONTAINER_TYPE)
 Define a UTF-32 to-string function for a container that has five template parameters. More...
 
#define BALAU_CONTAINER5_TO_STRING_A(CONTAINER_TYPE)
 Define a UTF-8 to-string function for a container that has five template parameters. More...
 

Typedefs

template<typename AllocatorT >
using U16OStringStream = std::basic_ostringstream< char16_t, std::char_traits< char16_t >, AllocatorT >
 UTF-16 output string stream type with selectable allocator. More...
 
template<typename AllocatorT >
using U16String = std::basic_string< char16_t, std::char_traits< char16_t >, AllocatorT >
 UTF-16 string type with selectable allocator. More...
 
template<typename AllocatorT >
using U32OStringStream = std::basic_ostringstream< char32_t, std::char_traits< char32_t >, AllocatorT >
 UTF-32 output string stream type with selectable allocator. More...
 
template<typename AllocatorT >
using U32String = std::basic_string< char32_t, std::char_traits< char32_t >, AllocatorT >
 UTF-32 string type with selectable allocator. More...
 
template<typename AllocatorT >
using U8OStringStream = std::basic_ostringstream< char, std::char_traits< char >, AllocatorT >
 UTF-8 output string stream type with selectable allocator. More...
 
template<typename AllocatorT >
using U8String = std::basic_string< char, std::char_traits< char >, AllocatorT >
 UTF-8 string type with selectable allocator. More...
 

Functions

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

Detailed Description

Pre-defined universal to-string functions for strings with custom allocators.


Class Documentation

◆ ToString

struct ToString

template<typename CharT, typename AllocatorT = std::allocator<CharT>>
struct ToString< CharT, AllocatorT >

Template class based to-string function for use in template classes.

Macro Definition Documentation

◆ BALAU_CONTAINER1_TO_STRING16_A

#define BALAU_CONTAINER1_TO_STRING16_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T> \
inline Balau::U16String<AllocatorT> toString16(const CONTAINER_TYPE<T> & c) { \
return toString16Helper<AllocatorT>(c); \
}
std::basic_string< char16_t, std::char_traits< char16_t >, AllocatorT > U16String
UTF-16 string type with selectable allocator.
Definition: ToStringA.hpp:47
Balau::U16String< AllocatorT > toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:873

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

◆ BALAU_CONTAINER1_TO_STRING32_A

#define BALAU_CONTAINER1_TO_STRING32_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T> \
inline Balau::U32String<AllocatorT> toString32(const CONTAINER_TYPE<T> & c) { \
return toString32Helper<AllocatorT>(c); \
}
std::basic_string< char32_t, std::char_traits< char32_t >, AllocatorT > U32String
UTF-32 string type with selectable allocator.
Definition: ToStringA.hpp:53
Balau::U32String< AllocatorT > toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:1267

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

◆ BALAU_CONTAINER1_TO_STRING_A

#define BALAU_CONTAINER1_TO_STRING_A (   CONTAINER_TYPE)
Value:
template <typename T, typename AllocatorT> \
inline Balau::U8String<AllocatorT> toString(const CONTAINER_TYPE<T> & c) { \
return toStringHelper<AllocatorT>(c); \
}
Balau::U8String< AllocatorT > toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:484
std::basic_string< char, std::char_traits< char >, AllocatorT > U8String
UTF-8 string type with selectable allocator.
Definition: ToStringA.hpp:41

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

◆ BALAU_CONTAINER2_TO_STRING16_A

#define BALAU_CONTAINER2_TO_STRING16_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U> \
inline Balau::U16String<AllocatorT> toString16(const CONTAINER_TYPE<T, U> & c) { \
return toString16Helper<AllocatorT>(c); \
}
std::basic_string< char16_t, std::char_traits< char16_t >, AllocatorT > U16String
UTF-16 string type with selectable allocator.
Definition: ToStringA.hpp:47
Balau::U16String< AllocatorT > toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:873

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

◆ BALAU_CONTAINER2_TO_STRING32_A

#define BALAU_CONTAINER2_TO_STRING32_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U> \
inline Balau::U32String<AllocatorT> toString32(const CONTAINER_TYPE<T, U> & c) { \
return toString32Helper<AllocatorT>(c); \
}
std::basic_string< char32_t, std::char_traits< char32_t >, AllocatorT > U32String
UTF-32 string type with selectable allocator.
Definition: ToStringA.hpp:53
Balau::U32String< AllocatorT > toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:1267

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

◆ BALAU_CONTAINER2_TO_STRING_A

#define BALAU_CONTAINER2_TO_STRING_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U> \
inline Balau::U8String<AllocatorT> toString(const CONTAINER_TYPE<T, U> & c) { \
return toStringHelper<AllocatorT>(c); \
}
Balau::U8String< AllocatorT > toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:484
std::basic_string< char, std::char_traits< char >, AllocatorT > U8String
UTF-8 string type with selectable allocator.
Definition: ToStringA.hpp:41

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

◆ BALAU_CONTAINER3_TO_STRING16_A

#define BALAU_CONTAINER3_TO_STRING16_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V> \
inline Balau::U16String<AllocatorT> toString16(const CONTAINER_TYPE<T, U, V> & c) { \
return toString16Helper<AllocatorT>(c); \
}
std::basic_string< char16_t, std::char_traits< char16_t >, AllocatorT > U16String
UTF-16 string type with selectable allocator.
Definition: ToStringA.hpp:47
Balau::U16String< AllocatorT > toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:873

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

◆ BALAU_CONTAINER3_TO_STRING32_A

#define BALAU_CONTAINER3_TO_STRING32_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V> \
inline Balau::U32String<AllocatorT> toString32(const CONTAINER_TYPE<T, U, V> & c) { \
return toString32Helper<AllocatorT>(c); \
}
std::basic_string< char32_t, std::char_traits< char32_t >, AllocatorT > U32String
UTF-32 string type with selectable allocator.
Definition: ToStringA.hpp:53
Balau::U32String< AllocatorT > toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:1267

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

◆ BALAU_CONTAINER3_TO_STRING_A

#define BALAU_CONTAINER3_TO_STRING_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V> \
inline Balau::U8String<AllocatorT> toString(const CONTAINER_TYPE<T, U, V> & c) { \
return toStringHelper<AllocatorT>(c); \
}
Balau::U8String< AllocatorT > toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:484
std::basic_string< char, std::char_traits< char >, AllocatorT > U8String
UTF-8 string type with selectable allocator.
Definition: ToStringA.hpp:41

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

◆ BALAU_CONTAINER4_TO_STRING16_A

#define BALAU_CONTAINER4_TO_STRING16_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V, typename W> \
inline Balau::U16String<AllocatorT> toString16(const CONTAINER_TYPE<T, U, V, W> & c) { \
return toString16Helper<AllocatorT>(c); \
}
std::basic_string< char16_t, std::char_traits< char16_t >, AllocatorT > U16String
UTF-16 string type with selectable allocator.
Definition: ToStringA.hpp:47
Balau::U16String< AllocatorT > toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:873

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

◆ BALAU_CONTAINER4_TO_STRING32_A

#define BALAU_CONTAINER4_TO_STRING32_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V, typename W> \
inline Balau::U32String<AllocatorT> toString32(const CONTAINER_TYPE<T, U, V, W> & c) { \
return toString32Helper<AllocatorT>(c); \
}
std::basic_string< char32_t, std::char_traits< char32_t >, AllocatorT > U32String
UTF-32 string type with selectable allocator.
Definition: ToStringA.hpp:53
Balau::U32String< AllocatorT > toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:1267

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

◆ BALAU_CONTAINER4_TO_STRING_A

#define BALAU_CONTAINER4_TO_STRING_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V, typename W> \
inline Balau::U8String<AllocatorT> toString(const CONTAINER_TYPE<T, U, V, W> & c) { \
return toStringHelper<AllocatorT>(c); \
}
Balau::U8String< AllocatorT > toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:484
std::basic_string< char, std::char_traits< char >, AllocatorT > U8String
UTF-8 string type with selectable allocator.
Definition: ToStringA.hpp:41

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

◆ BALAU_CONTAINER5_TO_STRING16_A

#define BALAU_CONTAINER5_TO_STRING16_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V, typename W, typename X> \
inline Balau::U16String<AllocatorT> toString16(const CONTAINER_TYPE<T, U, V, W, X> & c) { \
return toString16Helper<AllocatorT>(c); \
}
std::basic_string< char16_t, std::char_traits< char16_t >, AllocatorT > U16String
UTF-16 string type with selectable allocator.
Definition: ToStringA.hpp:47
Balau::U16String< AllocatorT > toString16(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:873

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

◆ BALAU_CONTAINER5_TO_STRING32_A

#define BALAU_CONTAINER5_TO_STRING32_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V, typename W, typename X> \
inline Balau::U32String<AllocatorT> toString32(const CONTAINER_TYPE<T, U, V, W, X> & c) { \
return toString32Helper<AllocatorT>(c); \
}
std::basic_string< char32_t, std::char_traits< char32_t >, AllocatorT > U32String
UTF-32 string type with selectable allocator.
Definition: ToStringA.hpp:53
Balau::U32String< AllocatorT > toString32(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:1267

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

◆ BALAU_CONTAINER5_TO_STRING_A

#define BALAU_CONTAINER5_TO_STRING_A (   CONTAINER_TYPE)
Value:
template <typename AllocatorT, typename T, typename U, typename V, typename W, typename X> \
inline Balau::U8String<AllocatorT> toString(const CONTAINER_TYPE<T, U, V, W, X> & c) { \
return toStringHelper<AllocatorT>(c); \
}
Balau::U8String< AllocatorT > toString(const P1 &p1, const P2 &p2, const P &... p)
Concatenates the to-string values of the input arguments.
Definition: ToStringA.hpp:484
std::basic_string< char, std::char_traits< char >, AllocatorT > U8String
UTF-8 string type with selectable allocator.
Definition: ToStringA.hpp:41

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

Function Documentation

◆ toString() [1/36]

Balau::U8String< AllocatorT > 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/36]

Balau::U8String<AllocatorT> toString ( const Balau::U8String< AllocatorT > &  value)
inline

Returns the supplied value as is.

◆ toString() [3/36]

Balau::U8String<AllocatorT> toString ( const std::string &  value)
inline

Converts the supplied string to Balau::U8String<AllocatorT>.

◆ toString() [4/36]

Balau::U8String<AllocatorT> toString ( const std::string_view &  value)
inline

Creates a string from the string view.

◆ toString() [5/36]

Balau::U8String<AllocatorT> toString ( const boost::string_view &  value)
inline

Creates a string from the Boost string view.

◆ toString() [6/36]

Balau::U8String<AllocatorT> toString ( const std::u16string &  value)
inline

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

◆ toString() [7/36]

Balau::U8String<AllocatorT> toString ( const std::u16string_view &  value)
inline

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

◆ toString() [8/36]

Balau::U8String<AllocatorT> toString ( const std::u32string &  value)
inline

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

◆ toString() [9/36]

Balau::U8String<AllocatorT> toString ( const std::u32string_view &  value)
inline

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

◆ toString() [10/36]

Balau::U8String<AllocatorT> toString ( char  value)
inline

Returns the supplied value as a UTF-8 string.

◆ toString() [11/36]

Balau::U8String<AllocatorT> toString ( char16_t  value)
inline

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

◆ toString() [12/36]

Balau::U8String<AllocatorT> toString ( char32_t  value)
inline

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

◆ toString() [13/36]

Balau::U8String<AllocatorT> toString ( signed char  value)
inline

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

◆ toString() [14/36]

Balau::U8String<AllocatorT> toString ( short  value)
inline

Convert the supplied short to a UTF-8 string.

◆ toString() [15/36]

Balau::U8String<AllocatorT> toString ( int  value)
inline

Convert the supplied int to a UTF-8 string.

◆ toString() [16/36]

Balau::U8String<AllocatorT> toString ( long  value)
inline

Convert the supplied long to a UTF-8 string.

◆ toString() [17/36]

Balau::U8String<AllocatorT> toString ( long long  value)
inline

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

◆ toString() [18/36]

Balau::U8String<AllocatorT> toString ( unsigned char  value)
inline

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

◆ toString() [19/36]

Balau::U8String<AllocatorT> toString ( unsigned short  value)
inline

Convert the supplied short to a UTF-8 string.

◆ toString() [20/36]

Balau::U8String<AllocatorT> toString ( unsigned int  value)
inline

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

◆ toString() [21/36]

Balau::U8String<AllocatorT> toString ( unsigned long  value)
inline

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

◆ toString() [22/36]

Balau::U8String<AllocatorT> toString ( unsigned long long  value)
inline

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

◆ toString() [23/36]

Balau::U8String<AllocatorT> toString ( float  value)
inline

Convert the supplied float to a UTF-8 string.

◆ toString() [24/36]

Balau::U8String<AllocatorT> toString ( double  value)
inline

Convert the supplied double to a UTF-8 string.

◆ toString() [25/36]

Balau::U8String<AllocatorT> toString ( long double  value)
inline

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

◆ toString() [26/36]

Balau::U8String<AllocatorT> toString ( const std::complex< T > &  value)
inline

Convert the supplied complex to a UTF-8 string.

◆ toString() [27/36]

Balau::U8String<AllocatorT> toString ( bool  value)
inline

Convert the supplied boolean to a UTF-8 string.

◆ toString() [28/36]

Balau::U8String<AllocatorT> toString ( const char *  value)
inline

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

◆ toString() [29/36]

Balau::U8String<AllocatorT> toString ( const char16_t *  value)
inline

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

◆ toString() [30/36]

Balau::U8String<AllocatorT> toString ( const char32_t *  value)
inline

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

◆ toString() [31/36]

Balau::U8String<AllocatorT> 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() [32/36]

Balau::U8String<AllocatorT> 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() [33/36]

Balau::U8String<AllocatorT> toString ( std::type_index  value)
inline

Return the name of the type index.

◆ toString() [34/36]

Balau::U8String<AllocatorT> toString ( const std::function< Balau::U8String< AllocatorT >()> &  f)
inline

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

◆ toString() [35/36]

Balau::U8String<AllocatorT> toString ( const std::pair< F, S > &  p)
inline

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

◆ toString() [36/36]

Balau::U8String<AllocatorT> 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/36]

Balau::U16String< AllocatorT > 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/36]

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

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

◆ toString16() [3/36]

Balau::U16String<AllocatorT> toString16 ( const Balau::U8String< AllocatorT > &  value)
inline

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

◆ toString16() [4/36]

Balau::U16String<AllocatorT> toString16 ( const std::string &  value)
inline

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

◆ toString16() [5/36]

Balau::U16String<AllocatorT> toString16 ( const std::string_view &  value)
inline

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

◆ toString16() [6/36]

Balau::U16String<AllocatorT> toString16 ( const boost::string_view &  value)
inline

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

◆ toString16() [7/36]

Balau::U16String<AllocatorT> toString16 ( const Balau::U16String< AllocatorT > &  value)
inline

Returns the supplied value as is.

◆ toString16() [8/36]

Balau::U16String<AllocatorT> toString16 ( const std::u16string &  value)
inline

Convert the std::u16string to a Balau::U16String<AllocatorT>.

◆ toString16() [9/36]

Balau::U16String<AllocatorT> toString16 ( const std::u16string_view &  value)
inline

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

◆ toString16() [10/36]

Balau::U16String<AllocatorT> toString16 ( const std::u32string &  value)
inline

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

◆ toString16() [11/36]

Balau::U16String<AllocatorT> toString16 ( char  value)
inline

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

◆ toString16() [12/36]

Balau::U16String<AllocatorT> toString16 ( char16_t &  value)
inline

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

◆ toString16() [13/36]

Balau::U16String<AllocatorT> toString16 ( char32_t &  value)
inline

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

◆ toString16() [14/36]

Balau::U16String<AllocatorT> toString16 ( signed char  value)
inline

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

◆ toString16() [15/36]

Balau::U16String<AllocatorT> toString16 ( short  value)
inline

Convert the supplied short to a UTF-16 string.

◆ toString16() [16/36]

Balau::U16String<AllocatorT> toString16 ( int  value)
inline

Convert the supplied int to a UTF-16 string.

◆ toString16() [17/36]

Balau::U16String<AllocatorT> toString16 ( long  value)
inline

Convert the supplied long to a UTF-16 string.

◆ toString16() [18/36]

Balau::U16String<AllocatorT> toString16 ( long long  value)
inline

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

◆ toString16() [19/36]

Balau::U16String<AllocatorT> toString16 ( unsigned char  value)
inline

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

◆ toString16() [20/36]

Balau::U16String<AllocatorT> toString16 ( unsigned short  value)
inline

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

◆ toString16() [21/36]

Balau::U16String<AllocatorT> toString16 ( unsigned int  value)
inline

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

◆ toString16() [22/36]

Balau::U16String<AllocatorT> toString16 ( unsigned long  value)
inline

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

◆ toString16() [23/36]

Balau::U16String<AllocatorT> toString16 ( unsigned long long  value)
inline

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

◆ toString16() [24/36]

Balau::U16String<AllocatorT> toString16 ( float  value)
inline

Convert the supplied float to a UTF-16 string.

◆ toString16() [25/36]

Balau::U16String<AllocatorT> toString16 ( double  value)
inline

Convert the supplied double to a UTF-16 string.

◆ toString16() [26/36]

Balau::U16String<AllocatorT> toString16 ( long double  value)
inline

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

◆ toString16() [27/36]

Balau::U16String<AllocatorT> toString16 ( const std::complex< T > &  value)
inline

Convert the supplied complex to a UTF-16 string.

◆ toString16() [28/36]

Balau::U16String<AllocatorT> toString16 ( bool  value)
inline

Convert the supplied boolean to a UTF-16 string.

◆ toString16() [29/36]

Balau::U16String<AllocatorT> toString16 ( const char *  value)
inline

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

◆ toString16() [30/36]

Balau::U16String<AllocatorT> toString16 ( const char16_t *  value)
inline

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

◆ toString16() [31/36]

Balau::U16String<AllocatorT> toString16 ( const char32_t *  value)
inline

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

◆ toString16() [32/36]

Balau::U16String<AllocatorT> 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() [33/36]

Balau::U16String<AllocatorT> 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() [34/36]

Balau::U16String<AllocatorT> toString16 ( std::type_index  value)
inline

Return the name of the type index.

◆ toString16() [35/36]

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

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

◆ toString16() [36/36]

Balau::U16String<AllocatorT> 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/36]

Balau::U32String< AllocatorT > 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/36]

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

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

◆ toString32() [3/36]

Balau::U32String<AllocatorT> toString32 ( const std::string &  value)
inline

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

◆ toString32() [4/36]

Balau::U32String<AllocatorT> toString32 ( const Balau::U8String< AllocatorT > &  value)
inline

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

◆ toString32() [5/36]

Balau::U32String<AllocatorT> toString32 ( const std::string_view &  value)
inline

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

◆ toString32() [6/36]

Balau::U32String<AllocatorT> toString32 ( const boost::string_view &  value)
inline

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

◆ toString32() [7/36]

Balau::U32String<AllocatorT> toString32 ( const std::u16string &  value)
inline

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

◆ toString32() [8/36]

Balau::U32String<AllocatorT> toString32 ( const Balau::U32String< AllocatorT > &  value)
inline

Returns the supplied value as is.

◆ toString32() [9/36]

Balau::U32String<AllocatorT> toString32 ( const std::u32string &  value)
inline

Convert the std::u32string to a Balau::U32String<AllocatorT>.

◆ toString32() [10/36]

Balau::U32String<AllocatorT> toString32 ( const std::u32string_view &  value)
inline

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

◆ toString32() [11/36]

Balau::U32String<AllocatorT> toString32 ( char  value)
inline

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

◆ toString32() [12/36]

Balau::U32String<AllocatorT> toString32 ( char16_t &  value)
inline

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

◆ toString32() [13/36]

Balau::U32String<AllocatorT> toString32 ( char32_t &  value)
inline

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

◆ toString32() [14/36]

Balau::U32String<AllocatorT> toString32 ( signed char  value)
inline

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

◆ toString32() [15/36]

Balau::U32String<AllocatorT> toString32 ( short  value)
inline

Convert the supplied short to a UTF-32 string.

◆ toString32() [16/36]

Balau::U32String<AllocatorT> toString32 ( int  value)
inline

Convert the supplied int to a UTF-32 string.

◆ toString32() [17/36]

Balau::U32String<AllocatorT> toString32 ( long  value)
inline

Convert the supplied long to a UTF-32 string.

◆ toString32() [18/36]

Balau::U32String<AllocatorT> toString32 ( long long  value)
inline

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

◆ toString32() [19/36]

Balau::U32String<AllocatorT> toString32 ( unsigned char  value)
inline

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

◆ toString32() [20/36]

Balau::U32String<AllocatorT> toString32 ( unsigned short  value)
inline

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

◆ toString32() [21/36]

Balau::U32String<AllocatorT> toString32 ( unsigned int  value)
inline

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

◆ toString32() [22/36]

Balau::U32String<AllocatorT> toString32 ( unsigned long  value)
inline

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

◆ toString32() [23/36]

Balau::U32String<AllocatorT> toString32 ( unsigned long long  value)
inline

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

◆ toString32() [24/36]

Balau::U32String<AllocatorT> toString32 ( float  value)
inline

Convert the supplied float to a UTF-32 string.

◆ toString32() [25/36]

Balau::U32String<AllocatorT> toString32 ( double  value)
inline

Convert the supplied double to a UTF-32 string.

◆ toString32() [26/36]

Balau::U32String<AllocatorT> toString32 ( long double  value)
inline

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

◆ toString32() [27/36]

Balau::U32String<AllocatorT> toString32 ( const std::complex< T > &  value)
inline

Convert the supplied complex to a UTF-32 string.

◆ toString32() [28/36]

Balau::U32String<AllocatorT> toString32 ( bool  value)
inline

Convert the supplied boolean to a UTF-32 string.

◆ toString32() [29/36]

Balau::U32String<AllocatorT> toString32 ( const char *  value)
inline

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

◆ toString32() [30/36]

Balau::U32String<AllocatorT> toString32 ( const char16_t *  value)
inline

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

◆ toString32() [31/36]

Balau::U32String<AllocatorT> toString32 ( const char32_t *  value)
inline

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

◆ toString32() [32/36]

Balau::U32String<AllocatorT> 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() [33/36]

Balau::U32String<AllocatorT> 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() [34/36]

Balau::U32String<AllocatorT> toString32 ( std::type_index  value)
inline

Return the name of the type index.

◆ toString32() [35/36]

Balau::U32String<AllocatorT> toString32 ( const std::function< Balau::U32String< AllocatorT >()> &  f)
inline

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

◆ toString32() [36/36]

Balau::U32String<AllocatorT> toString32 ( const std::pair< F, S > &  p)
inline

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

◆ toString32Helper()

Balau::U32String<AllocatorT> 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()

Balau::U8String<AllocatorT> 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.