Android-cuttlefish cvd tool
Namespaces | Functions
parseint.h File Reference
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <limits>
#include <string>
#include <type_traits>
Include dependency graph for parseint.h:

Go to the source code of this file.

Namespaces

namespace  android
 
namespace  android::base
 

Functions

template<typename T >
bool android::base::ParseUint (const char *s, T *out, T max=std::numeric_limits< T >::max(), bool allow_suffixes=false)
 
template<typename T >
bool android::base::ParseUint (const std::string &s, T *out, T max=std::numeric_limits< T >::max(), bool allow_suffixes=false)
 
template<typename T >
bool android::base::ParseByteCount (const char *s, T *out, T max=std::numeric_limits< T >::max())
 
template<typename T >
bool android::base::ParseByteCount (const std::string &s, T *out, T max=std::numeric_limits< T >::max())
 
template<typename T >
bool android::base::ParseInt (const char *s, T *out, T min=std::numeric_limits< T >::min(), T max=std::numeric_limits< T >::max())
 
template<typename T >
bool android::base::ParseInt (const std::string &s, T *out, T min=std::numeric_limits< T >::min(), T max=std::numeric_limits< T >::max())