Last byte of inline fypp (${...}$, @{...}@, #{...}#) starting at i, or 0.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | src |
source text |
||
| integer, | intent(in) | :: | i |
byte to look at |
integer function fypp_inline_end(src, i) result(j) !! Last byte of inline fypp (`${...}$`, `@{...}@`, `#{...}#`) starting at `i`, or 0. character(len=*), intent(in) :: src !! source text integer, intent(in) :: i !! byte to look at character :: c integer :: k j = 0 c = src(i:i) if (index('$@#', c) == 0 .or. peek(src, i + 1) /= '{') return k = index(src(i + 2:), '}'//c) if (k > 0) j = i + 2 + k end function fypp_inline_end