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 |
elemental function scan_string_char(string, set, back) result(pos) type(string_type), intent(in) :: string character(len=*), intent(in) :: set logical, intent(in), optional :: back integer :: pos pos = scan(maybe(string), set, pic_optional(back, .false.)) end function scan_string_char