xtd 1.0.0
Loading...
Searching...
No Matches
parse.hpp File Reference
#include "number_styles.hpp"
#include "types.hpp"
#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>
auto xtd::parse (const std::string &str) -> value_t
 Convert a string into a type.
template<typename value_t>
auto xtd::parse (const std::string &str, const std::locale &locale) -> value_t
 Convert a string into a type.
template<typename value_t>
auto xtd::parse (const std::string &str, const std::string &fmt) -> value_t
 Convert a string into a type.
template<>
auto xtd::parse< std::string > (const std::string &str) -> std::string
 Convert a string into a type.
template<typename value_t>
auto xtd::parse (const std::string &str, number_styles) -> value_t
 Convert a string into a type.
template<typename value_t>
auto xtd::parse (const std::string &str, number_styles, const std::locale &locale) -> value_t
 Convert a string into a type.
template<>
auto xtd::parse< xtd::sbyte > (const std::string &str, number_styles styles) -> xtd::sbyte
 Convert a string into a type.
template<>
auto xtd::parse< char > (const std::string &str, number_styles styles) -> char
 Convert a string into a type.
template<>
auto xtd::parse< xtd::byte > (const std::string &str, number_styles styles) -> xtd::byte
 Convert a string into a type.
template<>
auto xtd::parse< xtd::int16 > (const std::string &str, number_styles styles) -> xtd::int16
 Convert a string into a type.
template<>
auto xtd::parse< xtd::uint16 > (const std::string &str, number_styles styles) -> xtd::uint16
 Convert a string into a type.
template<>
auto xtd::parse< xtd::int32 > (const std::string &str, number_styles styles) -> xtd::int32
 Convert a string into a type.
template<>
auto xtd::parse< xtd::uint32 > (const std::string &str, number_styles styles) -> xtd::uint32
 Convert a string into a type.
template<>
auto xtd::parse< xtd::int64 > (const std::string &str, number_styles styles) -> xtd::int64
 Convert a string into a type.
template<>
auto xtd::parse< xtd::uint64 > (const std::string &str, number_styles styles) -> xtd::uint64
 Convert a string into a type.
template<>
auto xtd::parse< xtd::slong > (const std::string &str, number_styles styles) -> xtd::slong
 Convert a string into a type.
template<>
auto xtd::parse< xtd::ulong > (const std::string &str, number_styles styles) -> xtd::ulong
 Convert a string into a type.
template<>
auto xtd::parse< xtd::single > (const std::string &str, number_styles styles) -> xtd::single
 Convert a string into a type.
template<>
auto xtd::parse< xtd::single > (const std::string &str, number_styles styles, const std::locale &locale) -> xtd::single
 Convert a string into a type.
template<>
auto xtd::parse< double > (const std::string &str, number_styles styles) -> double
 Convert a string into a type.
template<>
auto xtd::parse< double > (const std::string &str, number_styles styles, const std::locale &locale) -> double
 Convert a string into a type.
template<>
auto xtd::parse< xtd::decimal > (const std::string &str, number_styles styles) -> xtd::decimal
 Convert a string into a type.
template<>
auto xtd::parse< xtd::decimal > (const std::string &str, number_styles styles, const std::locale &locale) -> xtd::decimal
 Convert a string into a type.
template<>
auto xtd::parse< xtd::sbyte > (const std::string &str) -> xtd::sbyte
 Convert a string into a type.
template<>
auto xtd::parse< char > (const std::string &str) -> char
 Convert a string into a type.
template<>
auto xtd::parse< xtd::byte > (const std::string &str) -> xtd::byte
 Convert a string into a type.
template<>
auto xtd::parse< xtd::int16 > (const std::string &str) -> xtd::int16
 Convert a string into a type.
template<>
auto xtd::parse< xtd::uint16 > (const std::string &str) -> xtd::uint16
 Convert a string into a type.
template<>
auto xtd::parse< xtd::int32 > (const std::string &str) -> xtd::int32
 Convert a string into a type.
template<>
auto xtd::parse< xtd::uint32 > (const std::string &str) -> xtd::uint32
 Convert a string into a type.
template<>
auto xtd::parse< xtd::int64 > (const std::string &str) -> xtd::int64
 Convert a string into a type.
template<>
auto xtd::parse< xtd::uint64 > (const std::string &str) -> xtd::uint64
 Convert a string into a type.
template<>
auto xtd::parse< xtd::slong > (const std::string &str) -> xtd::slong
 Convert a string into a type.
template<>
auto xtd::parse< xtd::ulong > (const std::string &str) -> xtd::ulong
 Convert a string into a type.
template<>
auto xtd::parse< xtd::single > (const std::string &str) -> xtd::single
 Convert a string into a type.
template<>
auto xtd::parse< double > (const std::string &str) -> double
 Convert a string into a type.
template<>
auto xtd::parse< xtd::decimal > (const std::string &str) -> xtd::decimal
 Convert a string into a type.
template<>
auto xtd::parse< bool > (const std::string &str) -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::parse (const std::wstring &str) -> value_t
 Convert a string into a type.
template<typename value_t>
auto xtd::parse (const std::u16string &str) -> value_t
 Convert a string into a type.
template<typename value_t>
auto xtd::parse (const std::u32string &str) -> value_t
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< char > &str, value_t &value) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< char > &str, value_t &value, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t, typename char_t>
auto xtd::try_parse (const char_t *str, value_t &value) noexcept -> bool
 Convert a string into a type.
template<typename value_t, typename char_t>
auto xtd::try_parse (const char_t *str, value_t &value, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< char > &str, value_t &value, number_styles style) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value, number_styles style) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value, number_styles style) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value, number_styles style) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value, number_styles style) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< char > &str, value_t &value, number_styles style, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char16 > &str, value_t &value, number_styles style, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char32 > &str, value_t &value, number_styles style, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::char8 > &str, value_t &value, number_styles style, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t>
auto xtd::try_parse (const std::basic_string< xtd::wchar > &str, value_t &value, number_styles style, const std::locale &locale) noexcept -> bool
 Convert a string into a type.
template<typename value_t, typename char_t>
auto xtd::try_parse (const char_t *str, value_t &value, number_styles style) noexcept -> bool
 Convert a string into a type.
template<typename value_t, typename char_t>
auto xtd::try_parse (const char_t *str, value_t &value, number_styles style, const std::locale &locale) noexcept -> bool
 Convert a string into a type.