fortplot_doc_files Module

File operations for documentation generation



Functions

public function check_file_exists(dir, filename)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: dir
character(len=*), intent(in) :: filename

Return Value logical

public pure function get_file_extension(filename) result(ext)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename

Return Value character(len=10)

public pure function replace_extension(filename, new_ext) result(new_filename)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
character(len=*), intent(in) :: new_ext

Return Value character(len=FILENAME_MAX_LEN)


Subroutines

public pure subroutine build_file_path(dir, filename, full_path)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: dir
character(len=*), intent(in) :: filename
character(len=PATH_MAX_LEN), intent(out) :: full_path

public subroutine copy_file_content(source_file, target_unit)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: source_file
integer, intent(in) :: target_unit