Go to the documentation of this file.
29 character(len=SPEC_LINE_MAX_VAR_LEN) :: name
31 character(len=SPEC_LINE_MAX_VAR_LEN),
allocatable :: data(:)
44 integer,
intent(in) :: n_data
46 if (
allocated(spec_line%data))
deallocate(spec_line%data)
47 allocate(spec_line%data(n_data))
59 character(len=*),
intent(inout) :: string
63 hash_index = index(string,
'#')
64 if (hash_index > 0)
then
65 string = string(1:(hash_index - 1))
77 character(len=*),
intent(inout) :: string
82 if (ichar(string(i:i)) == 9)
then
95 character(len=*),
intent(inout) :: string
99 if (len_trim(string) > 0)
then
100 i = verify(string,
' ')
subroutine spec_line_set_size(spec_line, n_data)
Sets the number of data elements in the line.
A single line of input data, split at whitespace.
integer, parameter spec_line_max_var_len
Maximum size of a variable.
integer, parameter spec_line_max_len
Maximum size of a single line.
subroutine spec_line_tabs_to_spaces(string)
Expand all tabs in a string into single spaces (one tab makes one space).
Common utility subroutines.
subroutine spec_line_strip_comment(string)
Strip the comments from a string. Comments are everything after the first # character.
subroutine spec_line_strip_leading_spaces(string)
Strip leading spaces from a string.
A single line of formatted test for input.