neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
string_numeric.hpp File Reference
#include <neolib/neolib.hpp>
#include <string>
#include <string_view>
#include <boost/spirit/include/qi_parse.hpp>
#include <boost/spirit/include/qi_numeric.hpp>
#include <neolib/core/variant.hpp>

Go to the source code of this file.

Classes

struct  neolib::string_to_number_failure
 

Namespaces

namespace  neolib
 

Typedefs

typedef variant< double, int32_t, uint32_t, int64_t, uint64_tneolib::number_t
 

Functions

template<typename CharT , typename Traits >
int32_t neolib::string_to_int32 (const std::basic_string_view< CharT, Traits > &aStringView)
 
template<typename CharT , typename Traits , typename Alloc >
int32_t neolib::string_to_int32 (const std::basic_string< CharT, Traits, Alloc > &aString, int aBase=10)
 
template<typename CharT , typename Traits >
int64_t neolib::string_to_int64 (const std::basic_string_view< CharT, Traits > &aStringView)
 
template<typename CharT , typename Traits , typename Alloc >
int64_t neolib::string_to_int64 (const std::basic_string< CharT, Traits, Alloc > &aString, int aBase=10)
 
template<typename CharT , typename Traits >
uint32_t neolib::string_to_uint32 (const std::basic_string_view< CharT, Traits > &aStringView)
 
template<typename CharT , typename Traits , typename Alloc >
uint32_t neolib::string_to_uint32 (const std::basic_string< CharT, Traits, Alloc > &aString, int aBase=10)
 
template<typename CharT , typename Traits >
uint64_t neolib::string_to_uint64 (const std::basic_string_view< CharT, Traits > &aStringView)
 
template<typename CharT , typename Traits , typename Alloc >
uint64_t neolib::string_to_uint64 (const std::basic_string< CharT, Traits, Alloc > &aString, int aBase=10)
 
template<typename CharT , typename Traits >
number_t neolib::string_to_number (const std::basic_string_view< CharT, Traits > &aStringView)
 
template<typename CharT , typename Traits >
double neolib::string_to_double (const std::basic_string_view< CharT, Traits > &aStringView)
 
template<typename CharT , typename Traits , typename Alloc >
double neolib::string_to_double (const std::basic_string< CharT, Traits, Alloc > &aString)
 
template<typename CharT , typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT>>
std::basic_string< CharT, Traits, Allocneolib::int32_to_string (int32_t aint32, int aBase=10, std::size_t aWidth=0, CharT aFill='0')
 
template<typename CharT , typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT>>
std::basic_string< CharT, Traits, Allocneolib::int64_to_string (int64_t aint32, int aBase=10, std::size_t aWidth=0, CharT aFill='0')
 
template<typename CharT , typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT>>
std::basic_string< CharT, Traits, Allocneolib::uint32_to_string (uint32_t aint32, int aBase=10, std::size_t aWidth=0, CharT aFill='0')
 
template<typename CharT , typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT>>
std::basic_string< CharT, Traits, Allocneolib::uint64_to_string (uint64_t aint32, int aBase=10, std::size_t aWidth=0, CharT aFill='0')
 
template<typename CharT , typename Traits = std::char_traits<CharT>, typename Alloc = std::allocator<CharT>>
std::basic_string< CharT, Traits, Allocneolib::double_to_string (double aDouble, std::size_t aPrecision=0, bool aFixed=true, std::size_t aWidth=0, CharT aFill='0')