public pure subroutine hexToInt64TrueError(input, output, error, startpos, endpos)
Parse the input
string as bits represented by hexadecimal digits to an int64 value.
This subroutine ignores leading and trailing whitespaces.
Error codes:
0 - none
1 - empty strings
2 - invalid format
3 - value too large for data type
5 - Invalid argument endpos/startpos
Note
This subroutine may take longer on unsuccessful parse cases.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input | A string to be parsed as a hexadecimal string to an int64 value. | ||
integer(kind=k_int64), | intent(out) | :: | output | An int64 value of the | ||
integer(kind=k_int32), | intent(out) | :: | error | An int32 value of 0 on successful parse cases or a true error code on unsuccessful parse cases. | ||
integer(kind=k_int32), | intent(in), | optional | :: | startpos | An int32 value of the position(inclusive) of where to start parsing. | |
integer(kind=k_int32), | intent(in), | optional | :: | endpos | An int32 value of the position(inclusive) of where to end parsing. |