xtd 0.2.0
Loading...
Searching...
No Matches
to_string.hpp File Reference
#include "generic_stream_output.hpp"
#include "register_any_stringer.hpp"
#include "types.hpp"
#include <string>

Definition

Contains xtd::to_string methods.

Go to the source code of this file.

Classes

struct  xtd::__xtd_tuple_stringer< type_t, n_t, last_t >
 
struct  xtd::__xtd_tuple_stringer< type_t, n_t, n_t >
 

Namespaces

namespace  xtd
 The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
 

Functions

template<typename value_t >
std::string xtd::to_string (const value_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const bool &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const sbyte &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const char &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const unsigned char &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const short &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const unsigned short &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const int &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const unsigned int &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const unsigned long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const long long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const unsigned long long &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const float &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const double &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const long double &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const std::chrono::system_clock::time_point &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const std::tm &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<typename type_t , typename Period >
std::string xtd::to_string (const std::chrono::duration< type_t, Period > &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const char8 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const char16 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const char32 &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::string xtd::to_string (const wchar &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<typename value_t >
std::string xtd::to_string (const value_t &value, const std::string &fmt)
 Convert a specified value into a string with specified format.
 
template<>
std::string xtd::to_string (const std::partial_ordering &value, const std::string &fmt, const std::locale &loc)
 
template<>
std::string xtd::to_string (const std::strong_ordering &value, const std::string &fmt, const std::locale &loc)
 
template<>
std::string xtd::to_string (const std::weak_ordering &value, const std::string &fmt, const std::locale &loc)
 
template<typename value_t >
std::string xtd::to_string (const value_t *value, const std::string &fmt, const std::locale &loc)
 
template<typename value_t >
std::string xtd::to_string (value_t *const value, const std::string &fmt, const std::locale &loc)
 
template<typename type_t >
std::string xtd::to_string (const std::shared_ptr< type_t > &value, const std::string &fmt, const std::locale &loc)
 
template<typename type_t >
std::string xtd::to_string (const std::unique_ptr< type_t > &value, const std::string &fmt, const std::locale &loc)
 
template<>
std::string xtd::to_string (const std::any &value, const std::string &fmt, const std::locale &loc)
 
template<typename type_t >
std::string xtd::to_string (const std::optional< type_t > &value, const std::string &fmt, const std::locale &loc)
 
template<>
std::string xtd::to_string (const std::nullopt_t &value, const std::string &fmt, const std::locale &loc)
 
template<typename type1_t , typename type2_t >
std::string xtd::to_string (const std::pair< type1_t, type2_t > &value, const std::string &fmt, const std::locale &loc)
 
template<typename ... types_t>
std::string xtd::to_string (const std::tuple< types_t ... > &value, const std::string &fmt, const std::locale &loc)
 
template<typename iterator_t >
std::string xtd::__xtd_iterator_to_string (const std::string &str, iterator_t iterator, const iterator_t &begin, const iterator_t &end, const std::string &fmt, const std::locale &loc)
 
template<typename iterator_t >
std::string xtd::__xtd_sequence_container_to_string (const iterator_t &begin, const iterator_t &end, const std::string &fmt, const std::locale &loc)
 
template<typename type_t , size_t size>
std::string xtd::to_string (const std::array< type_t, size > &values, const std::string &fmt, const std::locale &loc)
 
template<typename type_t , typename allocator_t >
std::string xtd::to_string (const std::deque< type_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename type_t , typename allocator_t >
std::string xtd::to_string (const std::forward_list< type_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename type_t >
std::string xtd::to_string (const std::initializer_list< type_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename type_t , typename allocator_t >
std::string xtd::to_string (const std::list< type_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename type_t >
std::string xtd::to_string (const std::valarray< type_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename type_t , typename allocator_t >
std::string xtd::to_string (const std::vector< type_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename iterator_t >
std::string xtd::__xtd_associative_container_to_string (const iterator_t &begin, const iterator_t &end, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename value_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::map< key_t, value_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename value_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::multimap< key_t, value_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::multiset< key_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::set< key_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename value_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::unordered_map< key_t, value_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename value_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::unordered_multimap< key_t, value_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::unordered_multiset< key_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename key_t , typename compare_t , typename allocator_t >
std::string xtd::to_string (const std::unordered_set< key_t, compare_t, allocator_t > &values, const std::string &fmt, const std::locale &loc)
 
template<typename value_t >
std::wstring xtd::to_string (const value_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const bool &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const sbyte &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const char &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const unsigned char &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const short &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const unsigned short &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const int &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const unsigned int &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const unsigned long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const long long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const unsigned long long &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const float &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const double &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const long double &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const std::chrono::system_clock::time_point &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const std::tm &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<typename type_t , typename Period >
std::wstring xtd::to_string (const std::chrono::duration< type_t, Period > &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const std::wstring &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const char8 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const char16 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const char32 &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<>
std::wstring xtd::to_string (const wchar &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale.
 
template<typename value_t >
std::wstring xtd::to_string (const value_t &value, const std::wstring &fmt)
 Convert a specified value into a string with specified format.