verify Interface

public interface verify

Scan a string for the absence of a set of characters. Verifies that all the characters in string belong to the set of characters in set.

If back is either absent or false, this function returns the position of the leftmost character of string that is not in set. If back is true, the rightmost position is returned. If all characters of string are found in set, the result is zero.

This method is elemental and returns a default integer scalar value.


Contents


Module Procedures

private elemental function verify_object_object(string, set, back) result(pos)

Verify a character sequence for the absence any of the characters in a set of characters.

Arguments

Type IntentOptional AttributesName
class(string_class), intent(in) :: string
class(string_class), intent(in) :: set
logical, intent(in), optional :: back

Return Value integer

private elemental function verify_object_string(string, set, back) result(pos)

Verify a character sequence for the absence any of the characters in a set of characters.

Arguments

Type IntentOptional AttributesName
class(string_class), intent(in) :: string
type(string_type), intent(in) :: set
logical, intent(in), optional :: back

Return Value integer

private elemental function verify_object_char(string, set, back) result(pos)

Verify a character sequence for the absence any of the characters in a set of characters.

Arguments

Type IntentOptional AttributesName
class(string_class), intent(in) :: string
character(len=*), intent(in) :: set
logical, intent(in), optional :: back

Return Value integer

private elemental function verify_string_object(string, set, back) result(pos)

Verify a character sequence for the absence any of the characters in a set of characters.

Arguments

Type IntentOptional AttributesName
type(string_type), intent(in) :: string
class(string_class), intent(in) :: set
logical, intent(in), optional :: back

Return Value integer

private elemental function verify_char_object(string, set, back) result(pos)

Verify a character sequence for the absence any of the characters in a set of characters.

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: string
class(string_class), intent(in) :: set
logical, intent(in), optional :: back

Return Value integer