PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Functions/Subroutines
str_utilities Module Reference

Operations on strings. More...

Functions/Subroutines

elemental character(len=max_str_ln) function, public i2str (k)
 Convert an integer to string. More...
 
elemental character(len=max_str_ln) function, public ii2str (k)
 Convert an integer to string. More...
 
elemental character(len=max_str_ln) function, public r2str (k)
 Convert a real (double) to string. More...
 
elemental character(len=max_str_ln) function, public r2strt (k)
 Convert a real (double) to string. More...
 
elemental character(len=max_str_ln) function, public c2str (k)
 Convert a complex (double) to string. More...
 
elemental character(len=max_str_ln) function, public c2strt (k)
 Convert a complex (double) to string. More...
 
character(len(input_string)) function, public strh2l (input_string)
 Convert a string to lowercase. More...
 
character(len(input_string)) function, public strl2h (input_string)
 convert a string to uppercase. More...
 
character((len(input_strings)+2) *size(input_strings)) function, public merge_strings (input_strings)
 Merge array of strings. More...
 

Detailed Description

Operations on strings.

Function/Subroutine Documentation

◆ c2str()

elemental character(len=max_str_ln) function, public str_utilities::c2str ( complex(dp), intent(in)  k)

Convert a complex (double) to string.

Note
See http://www.fortran90.org/src/best-practices.html how to not lose precision.
Parameters
[in]kcomplex to convert

Definition at line 66 of file str_utilities.f90.

+ Here is the caller graph for this function:

◆ c2strt()

elemental character(len=max_str_ln) function, public str_utilities::c2strt ( complex(dp), intent(in)  k)

Convert a complex (double) to string.

Version with less precise output.

See also
See c2str().
Parameters
[in]kcomplex to convert

Definition at line 88 of file str_utilities.f90.

+ Here is the caller graph for this function:

◆ i2str()

elemental character(len=max_str_ln) function, public str_utilities::i2str ( integer, intent(in)  k)

Convert an integer to string.

See also
from http://stackoverflow.com/questions/1262695/converting-integers-to-strings-in-fortran
Parameters
[in]kinteger to convert

Definition at line 18 of file str_utilities.f90.

◆ ii2str()

elemental character(len=max_str_ln) function, public str_utilities::ii2str ( integer(kind=8), intent(in)  k)

Convert an integer to string.

Version with kind 8 integers.

See also
See i2str().
Parameters
[in]kinteger to convert

Definition at line 30 of file str_utilities.f90.

+ Here is the caller graph for this function:

◆ merge_strings()

character((len(input_strings)+2)*size(input_strings)) function, public str_utilities::merge_strings ( character(*), dimension(:), intent(in)  input_strings)

Merge array of strings.

Parameters
[in]input_stringsarray of strings
Returns
merged string

Definition at line 152 of file str_utilities.f90.

+ Here is the caller graph for this function:

◆ r2str()

elemental character(len=max_str_ln) function, public str_utilities::r2str ( real(dp), intent(in)  k)

Convert a real (double) to string.

Note
See http://www.fortran90.org/src/best-practices.html how to not lose precision.
Parameters
[in]kreal to convert

Definition at line 42 of file str_utilities.f90.

+ Here is the caller graph for this function:

◆ r2strt()

elemental character(len=max_str_ln) function, public str_utilities::r2strt ( real(dp), intent(in)  k)

Convert a real (double) to string.

Version with less precise output.

See also
See r2str().
Parameters
[in]kreal to convert

Definition at line 54 of file str_utilities.f90.

+ Here is the caller graph for this function:

◆ strh2l()

character(len(input_string)) function, public str_utilities::strh2l ( character(*), intent(in)  input_string)

Convert a string to lowercase.

See also
from [12], figure 3.5B, pg 80.
Parameters
[in]input_stringinput string
Returns
lowercase version

Definition at line 109 of file str_utilities.f90.

+ Here is the caller graph for this function:

◆ strl2h()

character(len(input_string)) function, public str_utilities::strl2h ( character(*), intent(in)  input_string)

convert a string to uppercase.

See also
See strh2l()
Parameters
[in]input_stringinput string
Returns
uppercase version

Definition at line 131 of file str_utilities.f90.