subroutineflush_textprivate
subroutine flush_text(c, text, first, last)
Add the text between first and last as a text node.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| c | type(fypp_t) | inout | the state | |
| text | character(len=*) | in | the text | |
| first | integer | in | its start | |
| last | integer | in | its end |
Calls
Source
Show the code
subroutine flush_text(c, text, first, last)
type(fypp_t), intent(inout) :: c !! the state
character(len=*), intent(in) :: text !! the text
integer, intent(in) :: first !! its start
integer, intent(in) :: last !! its end
integer :: node
if (last < first) return
node = new_node(c, N_TEXT)
c%nodes(node)%text = text(first:last)
call append(c, node)
end subroutine flush_text