xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Namespaces | Functions
to_string.h File Reference
#include <string>
#include "types.h"

Definition

Contains xtd::to_string methods.

Go to the source code of this file.

Namespaces

 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. More...
 
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. More...
 
template<>
std::string xtd::to_string (const int8_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<>
std::string xtd::to_string (const char8_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char16_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const char32_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::string xtd::to_string (const wchar_t &value, const std::string &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
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. More...
 
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. More...
 
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. More...
 
template<>
std::wstring xtd::to_string (const int8_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<>
std::wstring xtd::to_string (const char8_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char16_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const char32_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
template<>
std::wstring xtd::to_string (const wchar_t &value, const std::wstring &fmt, const std::locale &loc)
 Convert a specified value into a string with specified format and locale. More...
 
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. More...