Right adjust a string by removing leading spaces (character output).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(string), | intent(in) | :: | self | The string. |
Adjusted string.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
pure function sadjustr_character(self) result(adjusted)
!---------------------------------------------------------------------------------------------------------------------------------
!< Right adjust a string by removing leading spaces (character output).
!---------------------------------------------------------------------------------------------------------------------------------
class(string), intent(in) :: self !< The string.
character(kind=CK, len=len(self%raw)) :: adjusted !< Adjusted string.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (allocated(self%raw)) adjusted = adjustr(self%raw)
return
!---------------------------------------------------------------------------------------------------------------------------------
endfunction sadjustr_character