Loading...
Searching...
No Matches
benchmark_string

Definition

String module

Data Types

module  string
 Represents text as a sequence of ASCII code units. The derived type wraps an allocatable character array. More...
 

Methods

◆ str()

pure recursive character(:) function, allocatable, public str ( class(*), intent(in) value,
character(*), intent(in), optional fmt )

Function to stringify anything.

Parameters
[in]valueThe value of any intrinsic type to be stringified
[in]fmt(optional) The format value

Examples

pure function to_string(this) result(s)
class(arg), intent(in) :: this
character(:), allocatable :: s
if (allocated(this%display)) then
s = this%display
else
s = str(this%value)
end if
end function
Returns
A character array corresponding to the character representation of the value argument.

Remarks

Definition at line 135 of file String.f90.