Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string), | intent(in) | :: | self | The string. |
Adjusted string.
Left adjust a string by removing leading spaces (character output).
pure function sadjustl_character(self) result(adjusted)
!---------------------------------------------------------------------------------------------------------------------------------
!< Left 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 = adjustl(self%raw)
return
!---------------------------------------------------------------------------------------------------------------------------------
endfunction sadjustl_character