Zserio C++17 runtime library  0.5.0
Built for Zserio 2.17.0
StringConvertUtil.h File Reference
#include <array>
#include <limits>
#include <sstream>
#include <string_view>
#include "zserio/RebindAlloc.h"
#include "zserio/String.h"

Go to the source code of this file.

Namespaces

 zserio
 

Functions

template<typename T , std::enable_if_t< std::is_unsigned_v< T >, int > = 0>
const char * zserio::convertIntToString (std::array< char, 24 > &buffer, T value)
 
void zserio::convertFloatToString (std::array< char, 24 > &integerPartBuffer, std::array< char, 24 > &floatingPartBuffer, float value, const char *&integerPartString, const char *&floatingPartString)
 
const char * zserio::convertBoolToString (bool value)
 
template<typename ALLOC , typename T , std::enable_if_t< std::is_integral_v< T >, int > = 0>
BasicString< RebindAlloc< ALLOC, char > > zserio::toString (T value, const ALLOC &allocator=ALLOC())
 
template<typename ALLOC >
BasicString< RebindAlloc< ALLOC, char > > zserio::toString (bool value, const ALLOC &allocator=ALLOC())
 
template<typename ALLOC >
BasicString< RebindAlloc< ALLOC, char > > zserio::toString (std::string_view value, const ALLOC &allocator=ALLOC())
 
template<typename T >
BasicString< std::allocator< char > > zserio::toString (T value)