padl Interface

public interface padl

Left pad the input string Specifications


Contents


Module Procedures

private pure function padl_string_default(string, output_length) result(res)

Left pad the input string with " " (1 whitespace)

Read more…

Arguments

TypeIntentOptionalAttributesName
type(string_type), intent(in) :: string
integer, intent(in) :: output_length

Return Value type(string_type)

private pure function padl_string_pad_with(string, output_length, pad_with) result(res)

Left pad the input string with the 'pad_with' character

Read more…

Arguments

TypeIntentOptionalAttributesName
type(string_type), intent(in) :: string
integer, intent(in) :: output_length
character(len=1), intent(in) :: pad_with

Return Value type(string_type)

private pure function padl_char_default(string, output_length) result(res)

Left pad the input string with " " (1 whitespace)

Read more…

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: string
integer, intent(in) :: output_length

Return Value character(len=max)

private pure function padl_char_pad_with(string, output_length, pad_with) result(res)

Left pad the input string with the 'pad_with' character

Read more…

Arguments

TypeIntentOptionalAttributesName
character(len=*), intent(in) :: string
integer, intent(in) :: output_length
character(len=1), intent(in) :: pad_with

Return Value character(len=max)