Last byte of the name starting at i, stopping before inline fypp ${.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | src |
source text |
||
| integer, | intent(in) | :: | i |
first byte of the name |
integer function name_end(src, i) result(j) !! Last byte of the name starting at `i`, stopping before inline fypp `${`. character(len=*), intent(in) :: src !! source text integer, intent(in) :: i !! first byte of the name j = i do while (is_name_char(peek(src, j + 1))) if (peek(src, j + 1) == '$' .and. peek(src, j + 2) == '{') exit ! inline fypp: name_${x}$ j = j + 1 end do end function name_end