binaryCompareAsInt128 Function

public function binaryCompareAsInt128(firstString, secondString, output) result(error)

Compare two strings as binary string by parsing them to int128 values first.

This function will return a logical value of .TRUE. if an error has occurred during parsing either one of the input strings. Otherwise, a logical .FALSE. value will be returned.

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.

integer(kind=k_int32), intent(out) :: output

An int32 value of 1 if the firstString is larger than the secondString, 0 if they are both equal, or -1 if the firstString is smaller than the secondString. This value may not be a correct value if an error has occurred during parsing either one of the input strings.

Return Value logical