Advance pos past a leading + or - if one is present.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | text | |||
| integer(kind=default_int), | intent(inout) | :: | pos |
pure subroutine skip_sign(text, pos) !! Advance `pos` past a leading `+` or `-` if one is present. character(len=*), intent(in) :: text integer(default_int), intent(inout) :: pos if (pos > len(text)) return if (index(SIGNS, text(pos:pos)) > 0) pos = pos + 1 end subroutine skip_sign