escape_module Module


Contents


Variables

Type Visibility Attributes Name Initial
character(len=1), private, parameter :: backslash = '\'
character(len=1), private, parameter :: null_char = achar(0)
character(len=*), private, parameter :: c_escape_chars = 'abfnrtv\?''"0'
integer, private, parameter :: c_escape_ascii(*) = [7, 8, 12, 10, 13, 9, 11, 92, 63, 39, 34, 0]
character(len=1), private, parameter :: fortran_escape_chars(*) = achar(c_escape_ascii)

Functions

public function escape(string) result(ans)

Converting C escape characters to Fortran equivalents

Read more…

Arguments

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

input string

Return Value character(len=:), allocatable

output string