int Interface

public interface int

Calls

interface~~int~~CallsGraph interface~int int proc~char_array_to_int char_array_to_int interface~int->proc~char_array_to_int proc~char_to_int char_to_int interface~int->proc~char_to_int proc~char_to_int64 char_to_int64 interface~int->proc~char_to_int64 proc~string_to_int string%string_to_int interface~int->proc~string_to_int proc~char_array_to_int->proc~char_to_int

Module Procedures

private pure elemental function string_to_int(me) result(i)

Basic string to integer routine

Arguments

Type IntentOptional Attributes Name
class(string), intent(in) :: me

Return Value integer

private pure function char_to_int(str) result(i)

Basic string to integer routine

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str

Return Value integer

private pure function char_to_int64(str, kind) result(i)

Basic string to integer(ip) routine. Hacky hack just so we can overload as int()

Arguments

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

Return Value integer(kind=ip)

private pure function char_array_to_int(str_array) result(i)

Character array to integer routine

Arguments

Type IntentOptional Attributes Name
character(len=1), intent(in), dimension(:) :: str_array

example ['1','3'] --> 13

Return Value integer