xtd 0.2.0
Loading...
Searching...
No Matches
parse.h File Reference
#include "number_styles.h"
#include "types.h"
#include <string>

Definition

Contains xtd::parse methods.

Go to the source code of this file.

Namespaces

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