Go to the documentation of this file.
39 char *endptr =
nullptr;
41 const intmax_t parsed = ::strtoimax(buf, &endptr, 10);
43 const int val = int(parsed);
47 (parsed < INT_MIN || parsed > INT_MAX)
48 ? parsing::errorType::RANGE
52 if (err != parsing::errorType::NONE)
65 char *endptr =
nullptr;
67 const intmax_t parsed = ::strtoimax(buf, &endptr, 10);
73 (parsed < INT_MIN || parsed > INT_MAX)
label ListType::const_reference val
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
errorType checkConversion(const char *buf, char *endptr)
Sanity check after strtof, strtod, etc.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const Foam::Enum< errorType > errorNames
Strings corresponding to the errorType.
errorType
Enumeration for possible parsing error.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
int readInt(Istream &is)
Read int from stream.