Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string), | intent(in) | :: | self |
elemental function sadjustl(self) result(adjusted) !< Left adjust a string by removing leading spaces. !< !<```fortran !< type(string) :: astring !< astring = ' Hello World!' !< print "(L1)", astring%adjustl()//''=='Hello World! ' !<``` !=> T <<< class(string), intent(in) :: self !< The string. type(string) :: adjusted !< Adjusted string. adjusted = self if (allocated(adjusted%raw)) adjusted%raw = adjustl(adjusted%raw) endfunction sadjustl