Checks whether or not c is a whitespace character. That includes the
space, tab, vertical tab, form feed, carriage return, and linefeed
characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=1), | intent(in) | :: | c |
The character to test. |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private | :: | ic |
elemental logical function is_white(c) character(len=1), intent(in) :: c !! The character to test. integer :: ic ic = iachar(c) ! TAB, LF, VT, FF, CR is_white = (c == ' ') .or. (ic >= int(z'09') .and. ic <= int(z'0D')) end function is_white