Represents text as a sequence of ASCII code units. The derived type wraps an allocatable character array.
Initializes a new instance of the string class
type(string) function string(character(:) chars)
[in] | chars |
Examples
Definition at line 37 of file String.f90.
Variables | |
character(:), allocatable | chars |
Variable length character array. | |
generic, public assignment | ( | class(string), intent(inout) | lhs, |
character(*), intent(in) | rhs ) |
Assignment overloading. Assign a character array to a string.
[in,out] | lhs | string |
[in] | rhs | character(*) |
Examples
Remarks
Definition at line 43 of file String.f90.
generic, public assignment | ( | character(*), intent(inout), allocatable | lhs, |
class(string), intent(in) | rhs ) |
Assignment overloading. Assign a string to a character array.
[in,out] | lhs | character(*), allocatable |
[in] | rhs | string |
Examples
Remarks
Definition at line 43 of file String.f90.
procedure, pass, public len | ( | class(string), intent(in) | this | ) |
Length of the string entity.
[in] | this | string |
Examples
Definition at line 40 of file String.f90.