Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ base/

or-tools/src/base/strtoint.h File Reference

#include <stdlib.h>
#include <string>
#include "base/basictypes.h"

Go to the source code of this file.

Namespaces

namespace  operations_research

Functions

int32 operations_research::strto32 (const char *nptr, char **endptr, int base)
 Conversions to a 32-bit integer can pass the call to strto[u]l on 32-bit platforms, but need a little extra work on 64-bit platforms.
uint32 operations_research::strtou32 (const char *nptr, char **endptr, int base)
int64 operations_research::strto64 (const char *nptr, char **endptr, int base)
 For now, long long is 64-bit on all the platforms we care about, so these functions can simply pass the call to strto[u]ll.
uint64 operations_research::strtou64 (const char *nptr, char **endptr, int base)
int32 operations_research::atoi32 (const char *nptr)
 Although it returns an int, atoi() is implemented in terms of strtol, and so has differing overflow and underflow behavior.
int64 operations_research::atoi64 (const char *nptr)
int32 operations_research::atoi32 (const std::string &s)
 Convenience versions of the above that take a string argument.
int64 operations_research::atoi64 (const std::string &s)