public interface str
Interface to print a string representation of a number
The output format options can be set using the printOptions class
Example usage
use variableKind
use m_strings
real ( r64 ) :: arr ( 20 )
integer ( i32 ) :: i
integer ( i32 ) :: j ( 5 )
arr = [( dble ( i ), i = 1 , 20 )]
i = 12
j = [ 0 , 1 , 2 , 3 , 4 ]
write ( * , '(a)' ) str ( i ) // str ( j )
write ( * , '(a)' ) str ( j ) // str ( arr )
write ( * , '(a)' ) str ( arr )
printOptions % threshold = 0
write ( * , '(a)' ) str ( arr )
Called By
interface~~str~~CalledByGraph
interface~str
str
program~scaletest_coretran
scaleTest_coretran
program~scaletest_coretran->interface~str
proc~strings_test
strings_test
proc~strings_test->interface~str
proc~random_test
random_test
proc~random_test->interface~str
proc~debug_s
debug_s
proc~debug_s->interface~str
proc~sorting_test
sorting_test
proc~sorting_test->interface~str
proc~read1dble
read1Dble
proc~read1dble->interface~str
program~test_coretran
test_coretran
program~test_coretran->proc~strings_test
program~test_coretran->proc~random_test
program~test_coretran->proc~sorting_test
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Module Procedures
private function str_r1(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
real(kind=r32),
intent(in)
::
this
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_r1D(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
real(kind=r32),
intent(in)
::
this (:)
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_d1(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
real(kind=r64),
intent(in)
::
this
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_d1D(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
real(kind=r64),
intent(in)
::
this (:)
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_d2D(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
real(kind=r64),
intent(in)
::
this (:,:)
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_i1(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
integer(kind=i32),
intent(in)
::
this
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_i1D(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
integer(kind=i32),
intent(in)
::
this (:)
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_id1(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
integer(kind=i64),
intent(in)
::
this
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_id1D(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
integer(kind=i64),
intent(in)
::
this (:)1D array
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_s1(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
character(len=*),
intent(in)
::
this
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_s1D(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
character(len=*),
intent(in)
::
this (:)
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable
private function str_1L(this, delim) result(res)
Interfaced with str()
Arguments
Type
Intent Optional
Attributes Name
logical,
intent(in)
::
this
character(len=*),
intent(in),
optional
::
delim
Return Value character(len=:),
allocatable