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