public function isUnsignedBase(input, base, output) result(error)
Check if the input
string is a valid unsigned integer string of the numbering system with the radix that is defined by the value of the argument base
.
This function ignores leading and trailing whitespaces.
This function support numbering system with radix from 2 to 36.
This function returns a logical value of .TRUE.
on error. Otherwise, a logical value of .FALSE.
is returned.
This function considers an error to has occurred when the value of the argument base
is smaller than 2 or larger than 36.
Arguments
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | input | A string. | ||
integer(kind=k_int32), | intent(in) | :: | base | An int32 value that define the radix. | ||
logical, | intent(out) | :: | output |
|