Octopus
|
Functions/Subroutines | |
subroutine, public | compact (str) |
Removes all spaces from a string. More... | |
subroutine, public | add_last_slash (str) |
Adds a '/' in the end of the string, only if it missing. Useful for directories. More... | |
subroutine, public | str_trim (str) |
removes leading spaces from string More... | |
character(len=80) function, public | str_center (s_in, l_in) |
puts space around string, so that it is centered More... | |
subroutine, public | print_c_string (iunit, str, pre, advance) |
prints the C string given by the pointer str More... | |
subroutine, public | conv_to_c_string (str) |
converts to c string More... | |
character(kind=c_char, len=1) function, dimension(c_str_len(f_string)), public | string_f_to_c (f_string) |
subroutine, public | string_c_to_f (c_string, f_string) |
subroutine, public | string_c_ptr_to_f (c_string, f_string) |
integer pure function, public | c_str_len (fortran_char) |
Convert fortran character length to C character length. More... | |
subroutine, public string_oct_m::compact | ( | character(len=*), intent(inout) | str | ) |
Removes all spaces from a string.
Definition at line 139 of file string.F90.
subroutine, public string_oct_m::add_last_slash | ( | character(len=*), intent(inout) | str | ) |
Adds a '/' in the end of the string, only if it missing. Useful for directories.
Definition at line 160 of file string.F90.
subroutine, public string_oct_m::str_trim | ( | character (len=*), intent(inout) | str | ) |
removes leading spaces from string
Definition at line 174 of file string.F90.
character(len=80) function, public string_oct_m::str_center | ( | character(len=*), intent(in) | s_in, |
integer, intent(in) | l_in | ||
) |
puts space around string, so that it is centered
Definition at line 196 of file string.F90.
subroutine, public string_oct_m::print_c_string | ( | integer, intent(in) | iunit, |
type(c_ptr), intent(in) | str, | ||
character(len=*), intent(in), optional | pre, | ||
character(len=*), intent(in), optional | advance | ||
) |
prints the C string given by the pointer str
Definition at line 224 of file string.F90.
subroutine, public string_oct_m::conv_to_c_string | ( | character(len=*), intent(out) | str | ) |
converts to c string
Definition at line 251 of file string.F90.
character(kind=c_char,len=1) function, dimension(c_str_len(f_string)), public string_oct_m::string_f_to_c | ( | character(len=*), intent(in) | f_string | ) |
Definition at line 264 of file string.F90.
subroutine, public string_oct_m::string_c_to_f | ( | character(kind=c_char,len=1), dimension(*), intent(in) | c_string, |
character(len=*), intent(out) | f_string | ||
) |
Definition at line 280 of file string.F90.
subroutine, public string_oct_m::string_c_ptr_to_f | ( | type(c_ptr), intent(in) | c_string, |
character(len=*), intent(out) | f_string | ||
) |
Definition at line 296 of file string.F90.
integer pure function, public string_oct_m::c_str_len | ( | character(len=*), intent(in) | fortran_char | ) |
Convert fortran character length to C character length.
C strings end in C_NULL_CHAR, such that they are always 1 character larger than fortran characters
Definition at line 321 of file string.F90.