38 static const int alphaOffset = toupper(
'A') - 10;
40 static const int zeroOffset = int(
'0');
51 if (
isspace(c) || c == 0)
break;
56 <<
"Illegal hex digit: '" << c <<
"'" 64 result += int(c) - zeroOffset;
68 result += toupper(c) - alphaOffset;
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionedScalar c
Speed of light in a vacuum.
T ReadHex(ISstream &)
Read a hex label from an input stream.
ISstream & get(char &)
Low-level get character function.
Read a hex integer from an input stream.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.