OpenVPN 3 Core Library
Loading...
Searching...
No Matches
number.hpp File Reference
#include <string>
#include <limits>
#include <openvpn/common/size.hpp>
#include <openvpn/common/exception.hpp>
Include dependency graph for number.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openvpn
 

Functions

 openvpn::OPENVPN_EXCEPTION (number_parse_exception)
 
template<typename T >
bool openvpn::parse_number (const char *str, T &retval, const bool nondigit_term=false)
 
template<typename T >
bool openvpn::parse_number (const std::string &str, T &retval)
 
template<typename T >
openvpn::parse_number_throw (const std::string &str, const std::string &error)
 
template<typename T >
openvpn::parse_number_throw (const std::string &str, const char *error)
 
template<typename T >
openvpn::parse_number_throw (const char *str, const char *error)
 
template<typename T >
bool openvpn::parse_number_validate (const std::string &numstr, const size_t max_len, const T minimum, const T maximum, T *value_return=nullptr)
 
bool openvpn::is_number (const char *str)