Functions/Subroutines | |
subroutine, public | lower_case (str, n) |
subroutine, public | scalar_lower_case (str) |
character(len=length) function, public | get_lower_case (length, inputstr) |
subroutine, public | scalar_upper_case (str) |
subroutine, public | string_convert_to_datetype (datestr, date) |
integer function, public | logical_convert_to_integer (logvar) |
logical function, public | integer_convert_to_logical (intvar) |
character(len=length) function, public | integer_convert_to_string (intvar, length) |
subroutine, public | write_integer_array_to_string (n, id, outtxt) |
character(len=20) function, public | int_to_str (i) |
character(len=20) function, public | real_to_str (r) |
subroutine, public | convert_string_to_real (strlen, str, output, ierr) |
subroutine, public | convert_string_to_integer (strlen, str, output, ierr) |
subroutine, public | convert_unclean_string_to_integer (str, output, ierr) |
Procedures for transforming between different variable types and between upper and lower case.
subroutine, public convert::convert_string_to_integer | ( | integer, intent(in) | strlen, |
character(len=strlen), intent(inout) | str, | ||
integer, intent(out) | output, | ||
integer, intent(out) | ierr | ||
) |
Read integer value from string.
[in] | strlen | length of string |
[in,out] | str | string to convert |
[out] | output | integer value of string |
[out] | ierr | error status |
subroutine, public convert::convert_string_to_real | ( | integer, intent(in) | strlen, |
character(len=strlen), intent(inout) | str, | ||
real, intent(out) | output, | ||
integer, intent(out) | ierr | ||
) |
Read real value from string.
[in] | strlen | length of string |
[in,out] | str | string to convert |
[out] | output | real value of string |
[out] | ierr | error status |
subroutine, public convert::convert_unclean_string_to_integer | ( | character(len=*), intent(in) | str, |
integer, intent(out) | output, | ||
integer, intent(out) | ierr | ||
) |
Read integer value from unclean string.
[in] | str | string to convert |
[out] | output | integer value of string |
[out] | ierr | error status |
character(len=length) function, public convert::get_lower_case | ( | integer, intent(in) | length, |
character(len=length), intent(in) | inputstr | ||
) |
Transforms a string to all lowercase letters.
[in] | length | character string length |
[in] | inputstr | character string to convert |
character(len=20) function, public convert::int_to_str | ( | integer, intent(in) | i | ) |
[in] | i | integer value to be converted |
logical function, public convert::integer_convert_to_logical | ( | integer, intent(in) | intvar | ) |
Turns integer to logical; 1 is true, other is false.
[in] | intvar | integer value to be converted |
character(len=length) function, public convert::integer_convert_to_string | ( | integer, intent(in) | intvar, |
integer, intent(in) | length | ||
) |
Turns integer (up to 9999) to string.
[in] | intvar | integer value to be converted |
[in] | length | character string length |
integer function, public convert::logical_convert_to_integer | ( | logical, intent(in) | logvar | ) |
Turns logical to integer -1 for true and -2 for false.
[in] | logvar | logical value to be converted |
subroutine, public convert::lower_case | ( | character(len=*), dimension(n), intent(inout) | str, |
integer, intent(in) | n | ||
) |
Transforms a string array of dimension n to all lowercase letters.
[in,out] | str | string-array to convert |
[in] | n | dimension of str |
character(len=20) function, public convert::real_to_str | ( | real, intent(in) | r | ) |
[in] | r | real value to be converted |
subroutine, public convert::scalar_lower_case | ( | character(len=*), intent(inout) | str | ) |
Transforms a string to all lowercase letters.
[in,out] | str | string to convert |
subroutine, public convert::scalar_upper_case | ( | character(len=*), intent(inout) | str | ) |
Transforms a string to capital letters.
[in,out] | str | string to convert |
subroutine, public convert::string_convert_to_datetype | ( | character(len=*), intent(in) | datestr, |
type(datetype), intent(out) | date | ||
) |
Creates DateType object from date stored as string.
Handle date formats: yyyy, yyyy-mm, yyyymm, yyyy-mm-dd, yyyymmdd, yyyy-mm-dd hh:mm, yyyymmddhhmm. For year and months, the date is set ot the first of the year or month.
[in] | datestr | string containing a date |
[out] | date | datetype object corresponding to datestr |
subroutine, public convert::write_integer_array_to_string | ( | integer, intent(in) | n, |
integer, dimension(n), intent(in) | id, | ||
character(len=*), intent(out) | outtxt | ||
) |
Print integer ids to string with blanks in between. Continuation marks for too many integers.
[in] | n | number of data |
[in] | id | id data |
[out] | outtxt | output string |