The string built so far.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string_builder_t), | intent(in) | :: | self |
the builder |
pure function builder_get(self) result(str) !! The string built so far. class(string_builder_t), intent(in) :: self !! the builder character(len=:), allocatable :: str if (allocated(self%buf)) then str = self%buf(1:self%n) else str = '' end if end function builder_get