functionskip_blankspureprivate
pure integer function skip_blanks(text, from) result(at)
The first position from from that is not a blank.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| text | character(len=*) | in | the text | |
| from | integer | in | where to start |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| at | integer |
Calls
Source
Show the code
pure integer function skip_blanks(text, from) result(at)
character(len=*), intent(in) :: text !! the text
integer, intent(in) :: from !! where to start
at = from
do while (at <= len(text))
if (.not. is_blank(text(at:at))) exit
at = at + 1
end do
end function skip_blanks