parse_int_int64_char Subroutine

private pure subroutine parse_int_int64_char(str, value, err)

Parse a character string into a 64 bit integer.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str
integer(kind=int64), intent(out) :: value

Fixed width on purpose: this is the widest integer the parser accumulates in, and the narrower specific procedure range checks against it.

type(error_t), intent(out) :: err

Calls

proc~~parse_int_int64_char~~CallsGraph proc~parse_int_int64_char parse_int_int64_char proc~parse_integer_wide parse_integer_wide proc~parse_int_int64_char->proc~parse_integer_wide interface~strip strip proc~parse_integer_wide->interface~strip proc~error_set error_t%error_set proc~parse_integer_wide->proc~error_set proc~strip_char strip_char interface~strip->proc~strip_char proc~strip_string strip_string interface~strip->proc~strip_string proc~strip_string->interface~strip

Called by

proc~~parse_int_int64_char~~CalledByGraph proc~parse_int_int64_char parse_int_int64_char interface~parse_int parse_int interface~parse_int->proc~parse_int_int64_char proc~cli_get_int32 cli_t%cli_get_int32 proc~cli_get_int32->interface~parse_int proc~cli_get_int64 cli_t%cli_get_int64 proc~cli_get_int64->interface~parse_int

Source Code

   pure subroutine parse_int_int64_char(str, value, err)
      !! Parse a character string into a 64 bit integer.
      character(len=*), intent(in) :: str
      integer(int64), intent(out) :: value
         !! Fixed width on purpose: this is the widest integer the parser
         !! accumulates in, and the narrower specific procedure range checks
         !! against it.
      type(error_t), intent(out) :: err

      call parse_integer_wide(str, value, err)

   end subroutine parse_int_int64_char