libsim  Versione6.3.0

◆ align_center()

elemental character(len=len(input_string)) function, public char_utilities::align_center ( character(len=*), intent(in)  input_string)

Returns input_string centered, i.e. with an equal number of leading and trailing blanks (±1 if they are odd).

The needed number of leading/trailing blanks is added or removed at the beginning and/or at the end in order to keep the length of the resulting string equal to the input length.

Parametri
[in]input_stringstring to be aligned

Definizione alla linea 872 del file char_utilities.F90.

872 END FUNCTION line_split_new
873 
874 
875 ! Cleanly destroy a \a line_split object, deallocating all the
876 ! dynamically allocated space. Use the generic name \a delete rather
877 ! than this specfoc subroutine.
878 SUBROUTINE line_split_delete(this)
879 TYPE(line_split), INTENT(inout) :: this ! object to be destroyed
880 
881 IF (ASSOCIATED(this%paragraph)) DEALLOCATE(this%paragraph)
882 IF (ASSOCIATED(this%word_start)) DEALLOCATE(this%word_start)
883 IF (ASSOCIATED(this%word_end)) DEALLOCATE(this%word_end)

Generated with Doxygen.