Last byte of the dot operator at i, including a kind suffix on .true._lk / .false._lk.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | src |
source text |
||
| integer, | intent(in) | :: | i |
byte of the opening |
integer function dotop_end(src, i) result(j) !! Last byte of the dot operator at `i`, including a kind suffix on `.true._lk` / `.false._lk`. character(len=*), intent(in) :: src !! source text integer, intent(in) :: i !! byte of the opening `.` character(len=:), allocatable :: word j = i + 1 do while (peek(src, j) /= '.') j = j + 1 end do word = lowercase(src(i:j)) if ((word == '.true.' .or. word == '.false.') .and. peek(src, j + 1) == '_' .and. & is_name_char(peek(src, j + 2))) j = name_end(src, j + 2) end function dotop_end