Scan a string for the presence of a set of characters. Scans a string for any of the characters in a set of characters.
If back is either absent or false, this function returns the position of the leftmost character of string that is in set. If back is true, the rightmost position is returned. If no character of set is found in string, the result is zero.
This method is elemental and returns a default integer scalar value.
Scan a character sequence for any of the characters in a set of characters. In this version both the character sequence and the character set are represented by a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_type), | intent(in) | :: | string | |||
type(string_type), | intent(in) | :: | set | |||
logical, | intent(in), | optional | :: | back |
Scan a character sequence for any of the characters in a set of characters. In this version the character sequences is represented by a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_type), | intent(in) | :: | string | |||
character(len=*), | intent(in) | :: | set | |||
logical, | intent(in), | optional | :: | back |
Scan a character sequence for any of the characters in a set of characters. In this version the set of characters is represented by a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string | |||
type(string_type), | intent(in) | :: | set | |||
logical, | intent(in), | optional | :: | back |