binaryInt64OrSmaller Function

public pure function binaryInt64OrSmaller(firstString, secondString) result(int32Out)

Compare two strings bases on the content of the strings reference to int64 values. If the strings are valid binary strings that can be parsed to int64 values then they will be compared base on their int64 values. Otherwise, the strings will be compared base on the priority ranking order below.

Priority order ranking: (lo - hi) 0 - invalid format
1 - value too large for data type
2 - empty string (0 length or empty space)
3 - valid int64

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: firstString

A string to be compared to the string secondString.

character(len=*), intent(in) :: secondString

A string to be compared to the string firstString.

Return Value integer(kind=k_int32)