Returns the length of the character sequence without trailing spaces represented by the string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
elemental function len_trim_string(string) result(length) type(string_type), intent(in) :: string integer :: length length = merge(len_trim(string%raw), 0, allocated(string%raw)) end function len_trim_string