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
parse.h File Reference
#include <string>
#include "number_styles.h"

Definition

Contains xtd::parse 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 >
value_t xtd::parse (const std::string &str)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, const std::locale &locale)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, const std::string &fmt)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, number_styles)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::string &str, number_styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::wstring &str)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::u16string &str)
 Convert a string into a type. More...
 
template<typename value_t >
value_t xtd::parse (const std::u32string &str)
 Convert a string into a type. More...
 
template<>
bool xtd::parse< bool > (const std::string &str)
 Convert a string into a type. More...
 
template<>
char xtd::parse< char > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
char xtd::parse< char > (const std::string &str)
 Convert a string into a type. More...
 
template<>
double xtd::parse< double > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
double xtd::parse< double > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<>
double xtd::parse< double > (const std::string &str)
 Convert a string into a type. More...
 
template<>
float xtd::parse< float > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
float xtd::parse< float > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<>
float xtd::parse< float > (const std::string &str)
 Convert a string into a type. More...
 
template<>
int xtd::parse< int > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
int xtd::parse< int > (const std::string &str)
 Convert a string into a type. More...
 
template<>
int8_t xtd::parse< int8_t > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
int8_t xtd::parse< int8_t > (const std::string &str)
 Convert a string into a type. More...
 
template<>
long xtd::parse< long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
long xtd::parse< long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
long double xtd::parse< long double > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
long double xtd::parse< long double > (const std::string &str, number_styles styles, const std::locale &locale)
 Convert a string into a type. More...
 
template<>
long double xtd::parse< long double > (const std::string &str)
 Convert a string into a type. More...
 
template<>
long long xtd::parse< long long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
long long xtd::parse< long long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
short xtd::parse< short > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
short xtd::parse< short > (const std::string &str)
 Convert a string into a type. More...
 
template<>
std::string xtd::parse< std::string > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned char xtd::parse< unsigned char > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned int xtd::parse< unsigned int > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned long xtd::parse< unsigned long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned long long xtd::parse< unsigned long long > (const std::string &str)
 Convert a string into a type. More...
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str, number_styles styles)
 Convert a string into a type. More...
 
template<>
unsigned short xtd::parse< unsigned short > (const std::string &str)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value, const std::locale &locale)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, const std::locale &locale)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value, number_styles style)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const std::basic_string< char_t > &str, value_t &value, number_styles style, const std::locale &locale)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, number_styles style)
 Convert a string into a type. More...
 
template<typename value_t , typename char_t >
bool xtd::try_parse (const char_t *str, value_t &value, number_styles style, const std::locale &locale)
 Convert a string into a type. More...